Data Structure MCQ
Data Structure MCQ
A. Managing function@CSEnigenneringGyan
calls
B. The stock span problem
C. Arithmetic expression evaluation
D. All of the above
Data Structure| Important MCQ
Learn and revise Easily
A. When a resource@CSEnigenneringGyan
is shared among multiple consumers.
B. When data is transferred asynchronously (data not
necessarily received at same rate as sent) between two
processes
C. Load Balancing
D. All of the above
Data Structure| Important MCQ
Learn and revise Easily
A. 2Logn (Assume@CSEnigenneringGyan
base of log is 2)
B. 1.44log n (Assume base of log is 2)
C. Depends upon implementation
D. Theta (n)
Data Structure| Important MCQ
Learn and revise Easily
A. Only A
B. A and C @CSEnigenneringGyan
C. A,B and C
D. Only B
Data Structure| Important MCQ
Learn and revise Easily
Q18 Consider a complete binary tree where the left and the
right sub-trees of the root are max-heaps. The lower bound
for the number of operations to convert the tree to a heap is
@CSEnigenneringGyan
A. Ω(logn)
B. Ω(n)
C. Ω(nlogn)
D. Ω(n2)
Data Structure| Important MCQ
Learn and revise Easily
A. 80 @CSEnigenneringGyan
B. 0.0125
C. 8000
D. 1.25
Data Structure| Important MCQ
Learn and revise Easily
A. the lengths of the paths from the root to all leaf nodes are
all equal.
@CSEnigenneringGyan
B. the lengths of the paths from the root to all leaf nodes
differ from each other by at most 1.
C. the number of children of any two non-leaf sibling nodes
differ by at most 1.
D. the number of records in any two leaf nodes differ by at
most 1
Data Structure| Important MCQ
Learn and revise Easily
Q23 When searching for the key value 60 in a binary search tree,
nodes containing the key values 10, 20, 40, 50, 70 80, 90 are
traversed, not necessarily in the order given. How many different
orders are possible in which these key values can occur on the search
path from the root to the node containing the value 60?
@CSEnigenneringGyan
A. 35
B. 64
C. 128
D. 5040
Data Structure| Important MCQ
Learn and revise Easily
@CSEnigenneringGyan
A. Worst case complexity of search operations is less
B. Space used is less
C. Deletion is easier
D. None of the above
Data Structure| Important MCQ
Learn and revise Easily
A. 3 @CSEnigenneringGyan
B. 1
C. 2
D. 4
Data Structure| Important MCQ
Learn and revise Easily
A. &A[0][0][0] + w(y * z * q + z * p + r)
B. &A[0][0][0] + w(y * z * p + z*q + r)
C. &A[0][0][0] + w(x * y * p + z * q+ r)
D. &A[0][0][0] + w(x * y * q + z * p + r)
Data Structure| Important MCQ
Learn and revise Easily
Q35 Consider the following conditions: (a)The solution must be feasible, i.e. it
must satisfy all the supply and demand constraints. (b)The number of
positive allocations must be equal to m1n21, where m is the number of rows
and n is the number of columns. (c)All the positive allocations must be in
independent positions. The initial solution of a transportation problem is
said to be non-degenerate@CSEnigenneringGyan
basic feasible solution if it satisfies: Codes:
A. O(n0.5) @CSEnigenneringGyan
B. O(n)
C. O(log n)
D. O(n log n)
Data Structure| Important MCQ
Learn and revise Easily
A. n nodes
@CSEnigenneringGyan
B. log2 n nodes
C. 2n-1
D. 2n
Data Structure| Important MCQ
Learn and revise Easily
A. Int geeks[20];
@CSEnigenneringGyan
B. Int geeks;
C. Geeks{20};
D. Array geeks[20];
Data Structure| Important MCQ
Learn and revise Easily
A. b a c
B. b c a
C. c a b
D. a b c
Data Structure| Important MCQ
Learn and revise Easily
Q42 The five items: A,B,C,D and E are pushed in a stack, one after
other starting from A. The stack is popped four items and each
element is inserted in a queue. The two elements are deleted
from the queue and pushed back on the stack. Now one item is
popped from the stack. The popped item is _________
@CSEnigenneringGyan
A. A
B. B
C. C
D. D
Data Structure| Important MCQ
Learn and revise Easily
Q45 Consider a hash table of size seven, with starting index zero, and
a hash function (7x+3) mod 4. Assuming the hash table is initially
empty, which of the following is the contents of the table when the
sequence 1, 3, 8, 10 is inserted into the table using closed hashing ?
Here “__” denotes an empty location in the table.
@CSEnigenneringGyan
A. 3, 10, 1, 8, __ , __ , __
B. 1, 3, 8, 10, __ , __ , __
C. 1, __ , 3, __ , 8, __ , 10
D. 3, 10, __ , __ , 8, __ , __
Data Structure| Important MCQ
Learn and revise Easily
A. Treap
@CSEnigenneringGyan
B. Binomial Tree
C. 2-3 Tree
D. Digital Tree
Data Structure| Important MCQ
Learn and revise Easily
A. Θ(n4) @CSEnigenneringGyan
B. Θ(n2)
C. Θ(n2 log n)
D. Θ(n3)
Data Structure| Important MCQ
Learn and revise Easily