Algorithm_MCQ_Questions
Algorithm_MCQ_Questions
A. A programming language
Answer: B
A. Finiteness
B. Ambiguity
C. Input
D. Output
Answer: B
A. Flowchart
B. Bar graph
C. Pie chart
D. Venn diagram
Answer: A
A. Rectangle
B. Diamond
C. Circle
D. Oval
Answer: B
B. Dynamic Programming
C. Compilation
D. Greedy Method
Answer: C
A. Code readability
C. Syntax errors
D. Variable names
Answer: B
A. Worst-case
B. Average-case
C. Best-case
D. Dynamic-case
Answer: D
C. Memory usage
D. CPU speed
Answer: B
D. Compiling programs
Answer: C
A. Big-O
B. Big-Omega
C. Big-Theta
D. None
Answer: C
A. Iteration
C. Memory allocation
D. Data storage
Answer: B
B. Sorting data
C. Memory allocation
D. Flowchart creation
Answer: A
13. What method solves a recurrence by guessing and proving the result?
A. Iterative Method
B. Master Theorem
C. Substitution Method
D. Binary Search
Answer: C
A. Substitution
B. Iterative
C. Greedy
D. Backtracking
Answer: B
A. Stack
B. Tree
C. Queue
D. Array
Answer: B
16. Which theorem provides a direct way to get time complexity of divide-and-conquer algorithms?
A. Pythagorean Theorem
B. Substitution Method
C. Master Theorem
D. Greedy Method
Answer: C
A. Space complexity
C. Stack usage
D. Base case
Answer: B
18. Which of the following is used to simplify a recurrence by changing variable form?
A. Recursion Tree
B. Heap Sort
C. Variable Substitution
D. Greedy Algorithm
Answer: C
A. O(n log n)
B. O(n)
C. O(n^2)
D. O(log n)
Answer: A
A. Stack
B. Queue
C. Heap
D. Tree
Answer: C
A. O(n^2)
B. O(n)
C. O(n log n)
D. O(log n)
Answer: C
A. Binary Heap
B. Fibonacci Heap
C. Min-Heap
D. Max-Heap
Answer: D
A. Heap Sort
B. Merge Sort
C. Insertion Sort
D. Bubble Sort
Answer: B
A. O
B. Theta
C. Omega
D. infinity
Answer: B
A. Loops to conditionals
B. Recursion to iteration
C. Arrays to stacks
D. Strings to numbers
Answer: B
A. Diamond
B. Parallelogram
C. Rectangle
D. Oval
Answer: C
Answer: B
A. O
B. Theta
C. Omega
D. pi
Answer: C
B. Program syntax
D. User interface
Answer: C
A. Merge Sort
B. Heap Sort
C. Bubble Sort
D. Quick Sort
Answer: B