Data Structures
Quiz-summary
0 of 56 questions completed
Questions:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
Information
- You will be given 180 seconds ( 3 minutes) for every question.
- Every question may contain multiple answers.Once you click the submit button you can not change your answer. You cannot go back to the same question once you click the submit button.
- Every question carries the marks equal to its difficulty level ( from 1 to 5).
- There is a negative marking of -1 for every wrong answer.
- Once a set of questions is complete, you can wait for another set of questions or you can try some other category.
- Your total marks will be displayed after every question.
- For any doubts/comments/suggestions on the question you can go to same question in untimed section.
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading...
You must sign in or sign up to start the quiz.
You have to finish following quiz, to start this quiz:
Results
0 of 56 questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 points, (0)
Categories
- Not categorized 0%
- Data Structures 0%
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- Answered
- Review
-
Question 1 of 56
1. Question
5 pointsWhich if the following operation is the easiest in terms of time as a resource
Correct
Incorrect
-
Question 2 of 56
2. Question
5 pointsAn array is not full, The time complexity of Insertion in an array at a specific position is
Correct
Incorrect
-
Question 3 of 56
3. Question
5 pointsBill has an algorithm, find2D, to find an element x in an nXn array A. The algorithm find2D iterates over the rows of A & calls the algorithm arrayFind on each row, until x is found or it has reached all rows of A. What is the worst case running time of find2D in terms of n?
Correct
Incorrect
-
Question 4 of 56
4. Question
5 pointsThe sum of the smallest sqrt(n) elements in an unsorted array of n distinct numbers can be found in O(n) time
Correct
Incorrect
-
Question 5 of 56
5. Question
5 pointsWhich of the following is true about arrays
Correct
Incorrect
-
Question 6 of 56
6. Question
5 pointsWhile inserting a new array, if the array is full, then we need to extend the array by some size, what is the best policy to be exercised in such a case
Correct
Incorrect
-
Question 7 of 56
7. Question
5 pointsWe have two arrays of size m and n. What will be the time complexity to merge two arrays
Correct
Incorrect
-
Question 8 of 56
8. Question
5 pointsTo find an element x in an nXn array A, until x is found or it has reached all rows of A. What is the worst case running time in terms of n
Correct
Incorrect
-
Question 9 of 56
9. Question
5 pointsAn array of size 100 is given and the memory addressing is byte by byte. If The base address of the array is 1000 and every record consists of 40 bytes then address of array[10] will be
Correct
Incorrect
-
Question 10 of 56
10. Question
5 pointsWe interchange values of variables m and n, using replacement notation by t= m, m= n, n= t. So we use three assignments. If we want to rearrange (a,b,c,d) to (b,c,d,a) by a sequence of replacements. The new value of a is to be the original value of b & so on. How many assignments are required
Correct
Incorrect
-
Question 11 of 56
11. Question
5 pointsIn a circular linked list organization, insertion of a record involves modification of
Correct
Incorrect
-
Question 12 of 56
12. Question
5 pointsMatch the following in the given sequence
i) Stack a. LIFO ii)Queue b. FIFO iii) Array c. continuous memory iv) Link List d. uses pointers Correct
Incorrect
-
Question 13 of 56
13. Question
5 pointsThe basic operation which takes most of the time in link list operations is
Correct
Incorrect
-
Question 14 of 56
14. Question
5 pointsBackward movement is not possible in
Correct
Incorrect
-
Question 15 of 56
15. Question
5 pointsWhich of the following is false?
Correct
Incorrect
-
Question 16 of 56
16. Question
5 pointsTime complexity to access an element in a link list is
Correct
Incorrect
-
Question 17 of 56
17. Question
5 pointsThe Time Complexity for Intersection of two arrays, Union of two arrays, Intersection of two link lists, Union of two link lists in respectively
Correct
Incorrect
-
Question 18 of 56
18. Question
5 pointsStack does not have one of the following methods
Correct
Incorrect
-
Question 19 of 56
19. Question
5 pointsWhich of the following permutation can be obtained in the output (in the same order) using a stack assuming that the input is the sequence 1, 2, 3, 4, 5 in that order
Correct
Incorrect
-
Question 20 of 56
20. Question
5 pointsWhat will be the result of the LAST operation in the given sequence of operations: PUSH($); PUSH($); PUSH(@);TOP(); POP(); PUSH(#); POP();POP(); PUSH(%); POP();
Correct
Incorrect
-
Question 21 of 56
21. Question
5 points1,2,3,4,5 is pushed in an empty stack in the given order, then four times pop operation is done. After each pop operation element is enqued in an empty queue. Then two deque operations are done and after each dequeue elements are pushed in the stack. Topofstack() will return
Correct
Incorrect
-
Question 22 of 56
22. Question
5 pointsTrain numbers X12, Y23, Z34, A45, B56 enter in the given sequence in a rail yard Q which is closed at one end, two of the trains are serviced and go for their trip to another city M and stay in the yard S over there. Two more trains from yard Q leave to city N and stay in the yard T. One train C67 comes from the city F and enters the yard Q. At this stage which is the first train which will come out first from the yard Q
Correct
Incorrect
-
Question 23 of 56
23. Question
5 pointsA stack S is initially empty. Find out which of the given axioms is equal to the axiom TOP(POP(PUSH(PUSH(S,12),15)))
Correct
Incorrect
-
Question 24 of 56
24. Question
5 pointsWhich of the following are application of stacks
Correct
Incorrect
-
Question 25 of 56
25. Question
5 pointsFor the following axioms
a) pop(push(S,v))=S
b)Top(push(S,v))=vCorrect
Incorrect
-
Question 26 of 56
26. Question
5 pointsTime complexity of Push() and pop() operations is
Correct
Incorrect
-
Question 27 of 56
27. Question
5 pointsDeque(Enque(Enque(Q,w),v))=Enque(Deque(Enque(Q,w)),v)
Correct
Incorrect
-
Question 28 of 56
28. Question
5 pointsReplace ? with a proper option
Front(Enqueue(New(),v))=?Correct
Incorrect
-
Question 29 of 56
29. Question
5 pointsWhich of the following permutation can be obtained in the output (in the same order) using a queue assuming that the input is the sequence 1, 2, 3, 4, 5 in that order?
Correct
Incorrect
-
Question 30 of 56
30. Question
5 pointsQueue has one of the following methods
Correct
Incorrect
-
Question 31 of 56
31. Question
5 pointsWhat will be the result of last result of given priority queue if number 1 is the highest priority Enqueue(3), enqueue(6), enqueue(2),dequeue, dequeue, enqueue(5),enqueue(1),dequeue, dequeue
Correct
Incorrect
-
Question 32 of 56
32. Question
5 pointsWhich of the following is true about the following axioms
a) Front(Enqueue(Enqueue(Q,w),v))=front(Enqueue(Q,w))
b) Deque(Enque(Enque(Q,w),v))=Enque(Deque(Enque(Q,w)),v)Correct
Incorrect
-
Question 33 of 56
33. Question
5 pointsWhich of the following is not the application of queues
Correct
Incorrect
-
Question 34 of 56
34. Question
5 pointsIf we use the selection sort for the priority queue then the priority queue property is maintained at
Correct
Incorrect
-
Question 35 of 56
35. Question
5 pointsIn case of heap sort Priority Queue addition and removal will take the following complexity
Correct
Incorrect
-
Question 36 of 56
36. Question
5 pointsConvert (A-B)*(D/E) into a postfix expression
Correct
Incorrect
-
Question 37 of 56
37. Question
5 points
What is true about the above tree
Correct
Incorrect
-
Question 38 of 56
38. Question
5 points
What is not true about the above tree
Correct
Incorrect
-
Question 39 of 56
39. Question
5 points
What is true about the given tree
Correct
Incorrect
-
Question 40 of 56
40. Question
5 points
In relation to the given figure what is true
Correct
Incorrect
-
Question 41 of 56
41. Question
5 points
What is the successor of 7 in the given binary tree
Correct
Incorrect
-
Question 42 of 56
42. Question
5 points
What is the successor of 10 in the given binary tree
Correct
Incorrect
-
Question 43 of 56
43. Question
5 points
What is the predecesor of 8 in the given binary tree
Correct
Incorrect
-
Question 44 of 56
44. Question
5 points
If we have to insert 12 then it will be inserted at
Correct
Incorrect
-
Question 45 of 56
45. Question
5 points
If we have to delete 6
Correct
Incorrect
-
Question 46 of 56
46. Question
5 pointsInsertion in a binary search tree is commutative. That is, inserting x and then y into a binary search tree leaves the same tree as inserting y and then x.
Correct
Incorrect
-
Question 47 of 56
47. Question
5 pointsSuppose that we have numbers between 1 and 1000 in a binary search tree, and we want to search for the number 363. Which of the following sequences could not be the sequences of nodes examined.
Correct
Incorrect
-
Question 48 of 56
48. Question
5 pointsInternal Node is best described by
Correct
Incorrect
-
Question 49 of 56
49. Question
5 pointsA binary search tree is generated by inserting in order the following integers:
50, 15, 62, 5, 20, 58, 91, 3, 8, 37, 60, 24
The number of nodes in the left sub-tree and right sub-tree of the root is respectively isCorrect
Incorrect
-
Question 50 of 56
50. Question
5 pointsWhich of the following statements is false?
Correct
Incorrect
-
Question 51 of 56
51. Question
5 pointsIn Preorder traversal
Correct
Incorrect
-
Question 52 of 56
52. Question
5 pointsThe maximum number of nodes in a binary tree of level k, k ≥ 1 is
Correct
Incorrect
-
Question 53 of 56
53. Question
5 pointsA binary tree T has n leaf nodes. The number of nodes of degree 2 in T is
Correct
Incorrect
-
Question 54 of 56
54. Question
5 pointsIf we are given two out of the a)preorder traversal
b) postorder traversal
c) inorder traversal
then the binary search tree cannot be constructed whenCorrect
Incorrect
-
Question 55 of 56
55. Question
5 pointsIf n is the total number of nodes in a complete binary tree, e and i are number of external nodes and internal nodes respectively then which of the following expressions are true
Correct
Incorrect
-
Question 56 of 56
56. Question
5 pointsIf an in-place sorting algorithm is given a sorted array, it will always output an unchanged array in the same sequence
Correct
Incorrect