Free Shipping over ₹1199

Data Structure & Algorithm Quiz

Data Structure & Algorithm Qiuz

1 / 100

In a Binary Search Tree (BST), the left subtree has:

2 / 100

How many passes are required to sort an array of n elements using Bubble Sort (worst case)?

3 / 100

What happens when you dequeue from an empty queue?

4 / 100

Which traversal method is best for copying a tree?

5 / 100

What does a node in a singly linked list contain?

6 / 100

Which of these is not a limitation of Radix Sort?

7 / 100

What is a leaf node?

8 / 100

What is the total number of comparisons in Selection Sort for an array of 4 elements?

9 / 100

In Merge Sort, what happens during the merge step?

10 / 100

Which operation is used to insert an element into the stack?

11 / 100

Which of these is true about Quick Sort?

12 / 100

Which of the following is not an application of stack?

13 / 100

How many comparisons are needed in the worst case to insert the last element in an array of size n using Insertion Sort?

14 / 100

Which operation is more efficient in a linked list than in an array?

15 / 100

What is the time complexity of push and pop operations?

16 / 100

Which of the following is a type of queue?

17 / 100

What happens in each step of binary search?

18 / 100

What is an AVL Tree?

19 / 100

What does the last node in a singly linked list point to?

20 / 100

Which of the following rotations is used to fix Right-Right (RR) imbalance?

21 / 100

Array elements are stored in ?

22 / 100

What is returned if the element is not found?

23 / 100

What happens if you forget to update the mid index inside the loop?

24 / 100

What will happen if you access arr[1000] when size is arr[10]?

25 / 100

What will be the array after the first pass of Selection Sort on [5, 2, 8, 4]?

26 / 100

Which data structure is used to implement recursion?

27 / 100

What is the time complexity of Radix Sort?

28 / 100

Linear search is also known as:

29 / 100

What is the index of the first element in an array?

30 / 100

Is Selection Sort a stable algorithm?

31 / 100

Which of the following can lead to worst-case behavior in Quick Sort?

32 / 100

Quick Sort follows which programming paradigm?

33 / 100

What is the best-case time complexity of binary search?

34 / 100

What is the average-case time complexity of Quick Sort?

35 / 100

In a binary tree, each node can have at most:

36 / 100

What is the time complexity of searching in a balanced binary search tree?

37 / 100

What is the time complexity of Counting Sort?

38 / 100

How can we find the size of an array in C?

39 / 100

Queue follows which principle?

40 / 100

What is the time complexity of binary search in the worst case?

41 / 100

Radix Sort is based on which principle?

42 / 100

In how many swaps does Bubble Sort sort [3, 2, 1]?

43 / 100

Merge Sort requires:

44 / 100

What is the default value of an uninitialized int array ?

45 / 100

Which of the following is true about Counting Sort?

46 / 100

Which data structure is used to implement queue efficiently?

47 / 100

When does Merge Sort perform better than Quick Sort?

48 / 100

What is the rear of a queue?

49 / 100

Bubble Sort works by repeatedly ?

50 / 100

Radix Sort is most effective when:

51 / 100

Bubble Sort is a type of ?

52 / 100

Which of the following is true about Selection Sort?

53 / 100

What is the time complexity to insert a node at the beginning of a singly linked list?

54 / 100

Which header file is required for using sizeof() operator?

55 / 100

Merge Sort is best suited for:

56 / 100

Which sorting algorithm is typically used as a subroutine in Radix Sort?

57 / 100

Is Insertion Sort a stable sorting algorithm?

58 / 100

In the worst case, Quick Sort's time complexity is:

59 / 100

Merge Sort follows which algorithmic strategy?

60 / 100

Which type of linked list allows traversal in both directions?

61 / 100

Which part of the array is considered sorted during Selection Sort?

62 / 100

Which sorting technique inserts each element into its correct position?

63 / 100

Binary search works only on:

64 / 100

What will be the final sorted array after applying Bubble Sort on [6, 2, 8, 4]?

65 / 100

Linear search can be applied to:

66 / 100

Which rotation is used to fix Left-Right (LR) imbalance?

67 / 100

What is the time complexity of Selection Sort in the worst case?

68 / 100

What is the correct way to declare an array of 10 integers in C?

69 / 100

What is the allowed balance factor for any node in AVL tree?

70 / 100

In-order traversal of BST gives elements in:

71 / 100

What is the time complexity of Insertion Sort in the worst case?

72 / 100

Bubble Sort is an in-place algorithm. What does that mean?

73 / 100

Counting Sort is best suited for:

74 / 100

What is the best-case time complexity of Bubble Sort (optimized)?

75 / 100

What happens when all elements in the array are equal?

76 / 100

What is the topmost node of a tree called?

77 / 100

What is the time complexity of Bubble Sort in the worst case?

78 / 100

In which direction does Insertion Sort scan the sorted portion?

79 / 100

What is the best pivot in Quick Sort?

80 / 100

Which is true about arrays in C?

81 / 100

What is a tree in data structures?

82 / 100

In binary search, how do you calculate the mid index?

83 / 100

Which operation inserts an element into the queue?

84 / 100

What happens if the input range is significantly larger than the number of elements?

85 / 100

How many passes are required to fully sort an array of size n using Selection Sort?

86 / 100

Which operation is used to remove the top element of the stack?

87 / 100

Which is safer to calculate mid index to avoid overflow?

88 / 100

What is the worst-case time complexity of linear search?

89 / 100

What will be the best-case time complexity of linear search?

90 / 100

If a stack is empty and we call pop(), what happens?

91 / 100

Insertion Sort is best suited for:

92 / 100

Selection Sort repeatedly :

93 / 100

Which of the following linked lists doesn’t contain NULL as a next pointer in any node?

94 / 100

Linear search works on which data type(s)?

95 / 100

Which of the following is true about linear search?

96 / 100

What is the time complexity of Merge Sort in all cases (best, average, worst)?

97 / 100

Which of these conditions is used to stop the binary search loop?

98 / 100

What will be the array after the first pass of Bubble Sort on [5, 3, 4, 1]?

99 / 100

Which of the following makes Bubble Sort more efficient in best case?

100 / 100

Which operation removes an element from the queue?

Your score is

The average score is 6%

0%

    Leave a Reply

    Your email address will not be published. Required fields are marked *


    Need Help?