Computer Science & IT

Download Q&A
Q. Which of the following sorting algorithms has the best average-case time complexity?
  • A. Bubble Sort
  • B. Insertion Sort
  • C. Quick Sort
  • D. Selection Sort
Q. Which of the following sorting algorithms has the worst-case time complexity of O(n^2)?
  • A. Merge Sort
  • B. Quick Sort
  • C. Bubble Sort
  • D. Heap Sort
Q. Which of the following sorting algorithms is based on the divide and conquer approach?
  • A. Bubble Sort
  • B. Insertion Sort
  • C. Merge Sort
  • D. Selection Sort
Q. Which of the following sorting algorithms is not a comparison-based sort?
  • A. Merge Sort
  • B. Quick Sort
  • C. Heap Sort
  • D. Counting Sort
Q. Which of the following sorting algorithms is not based on comparisons?
  • A. Quick Sort
  • B. Merge Sort
  • C. Bubble Sort
  • D. Counting Sort
Q. Which of the following sorting algorithms is not in-place?
  • A. Quick Sort
  • B. Merge Sort
  • C. Bubble Sort
  • D. Insertion Sort
Q. Which of the following sorting algorithms is not stable?
  • A. Bubble Sort
  • B. Merge Sort
  • C. Quick Sort
  • D. Insertion Sort
Q. Which of the following sorting algorithms is stable?
  • A. Quick Sort
  • B. Heap Sort
  • C. Merge Sort
  • D. Selection Sort
Q. Which of the following statements about AVL and Red-Black trees is true?
  • A. AVL trees are always faster than Red-Black trees
  • B. Red-Black trees are more memory efficient than AVL trees
  • C. AVL trees provide faster lookups than Red-Black trees
  • D. Both trees are equally efficient in all scenarios
Q. Which of the following statements about AVL trees is false?
  • A. They are a type of self-balancing binary search tree
  • B. They can become unbalanced after insertion
  • C. They require more rotations than Red-Black trees
  • D. They can have nodes with two children only
Q. Which of the following statements about AVL trees is true?
  • A. They can become unbalanced after every insertion
  • B. They require more rotations than Red-Black trees
  • C. They are always perfectly balanced
  • D. They are faster for search operations than Red-Black trees
Q. Which of the following statements about BFS and DFS is false?
  • A. BFS can find the shortest path in unweighted graphs
  • B. DFS can be more memory efficient than BFS
  • C. BFS uses a stack
  • D. DFS can be implemented recursively
Q. Which of the following statements about BFS and DFS is true?
  • A. BFS is always faster than DFS
  • B. DFS can be more memory efficient than BFS
  • C. BFS can be used for topological sorting
  • D. DFS is used for finding the shortest path
Q. Which of the following statements about BFS is true?
  • A. BFS can be implemented recursively.
  • B. BFS is not suitable for large graphs.
  • C. BFS guarantees the shortest path in weighted graphs.
  • D. BFS explores nodes level by level.
Q. Which of the following statements about binary search is false?
  • A. It can be implemented recursively
  • B. It requires a sorted array
  • C. It can be used on linked lists
  • D. It is faster than linear search
Q. Which of the following statements about binary search is true?
  • A. It can be used on linked lists
  • B. It requires the array to be sorted
  • C. It is always faster than linear search
  • D. It can find multiple occurrences of an element
Q. Which of the following statements about binary trees is true?
  • A. A binary tree can have at most two children per node.
  • B. A binary tree must be balanced.
  • C. A binary tree can only have integer values.
  • D. A binary tree cannot be empty.
Q. Which of the following statements about Decision Trees is true?
  • A. They can only be used for classification tasks.
  • B. They are sensitive to small changes in the data.
  • C. They require feature scaling.
  • D. They cannot handle missing values.
Q. Which of the following statements about DFS is true?
  • A. It can be implemented using a queue
  • B. It is not suitable for large graphs
  • C. It can be implemented using recursion
  • D. It always finds the shortest path
Q. Which of the following statements about Dijkstra's algorithm is true?
  • A. It can handle negative weight edges.
  • B. It always finds the shortest path.
  • C. It is a depth-first search algorithm.
  • D. It can be used for unweighted graphs only.
Q. Which of the following statements about Heap Sort is true?
  • A. It is a stable sort
  • B. It is an in-place sort
  • C. It is faster than Quick Sort
  • D. It requires O(n^2) time in the worst case
Q. Which of the following statements about intermediate code is true?
  • A. It is always in a high-level programming language
  • B. It is specific to the target architecture
  • C. It can be optimized before final code generation
  • D. It is not used in modern compilers
Q. Which of the following statements about K-means clustering is true?
  • A. It can only be applied to spherical clusters
  • B. It is guaranteed to find the global optimum
  • C. It can be sensitive to the initial placement of centroids
  • D. It does not require any distance metric
Q. Which of the following statements about Quick Sort is true?
  • A. It is stable
  • B. It can be implemented using a linked list
  • C. It always selects the median as pivot
  • D. It has a worst-case time complexity of O(n log n)
Q. Which of the following statements about Random Forests is true?
  • A. They can only be used for regression tasks.
  • B. They are less interpretable than single decision trees.
  • C. They require more computational resources than a single decision tree.
  • D. All of the above.
Q. Which of the following statements about Red-Black trees is true?
  • A. They are always perfectly balanced.
  • B. They can have a maximum of two consecutive red nodes.
  • C. They are faster for search operations than AVL trees.
  • D. They require more memory than AVL trees.
Q. Which of the following statements about RNNs is true?
  • A. RNNs can only process fixed-length sequences.
  • B. RNNs are not suitable for language modeling.
  • C. RNNs can learn from past information in sequences.
  • D. RNNs do not require any training.
Q. Which of the following statements about stacks is true?
  • A. Stacks can be implemented using arrays or linked lists.
  • B. Stacks allow random access to elements.
  • C. Stacks are FIFO data structures.
  • D. Stacks can only store integers.
Q. Which of the following statements about SVM is true?
  • A. SVM can only be used for binary classification
  • B. SVM is sensitive to outliers
  • C. SVM does not require feature scaling
  • D. SVM is a type of unsupervised learning
Q. Which of the following statements is false regarding AVL trees?
  • A. They are a type of self-balancing binary search tree.
  • B. They can become unbalanced after insertion or deletion.
  • C. They require more rotations than Red-Black trees.
  • D. They can have duplicate values.
Showing 2971 to 3000 of 3237 (108 Pages)
Soulshift Feedback ×

On a scale of 0–10, how likely are you to recommend The Soulshift Academy?

Not likely Very likely