Data structure MCQs:-
- Which notation is also known as "Reverse Polish notation"? a) Infix notation b) Prefix notation c) Postfix notation d) None of the above
Answer: c) Postfix notation
- Which notation has the operator written in-between its operands? a) Infix notation b) Prefix notation c) Postfix notation d) None of the above
Answer: a) Infix notation
- Which notation has the operator written before its operands? a) Infix notation b) Prefix notation c) Postfix notation d) None of the above
Answer: b) Prefix notation
- What is the time complexity of the Tower of Hanoi puzzle with n disks? a) O(n) b) O(2n) c) O(n^2) d) O(2^n)
Answer: d) O(2^n)
- In a queue, which operation adds an item to the queue? a) Enqueue b) Dequeue c) Front d) Rear
Answer: a) Enqueue
- Which data structure follows the First In First Out (FIFO) order? a) Stack b) Queue c) Binary tree d) Graph
Answer: b) Queue
- In the Tower of Hanoi puzzle, how many moves are required for n disks? a) n - 1 b) 2n c) 2n - 1 d) 2^n
Answer: c) 2n - 1
- Which operation in a queue removes an item from the queue? a) Enqueue b) Dequeue c) Front d) Rear
Answer: b) Dequeue
- Which notation has the operator written after its operands? a) Infix notation b) Prefix notation c) Postfix notation d) None of the above
Answer: c) Postfix notation
- Which operation in a queue gets the last item from the queue? a) Enqueue b) Dequeue c) Front d) Rear
Answer: d) Rear
Similar posts:-
- C-programming MCQs part-1
- C-programming MCQs part-2
- C-programming MCQs part-3
- C-programming MCQs part-4
- C-programming MCQs part-5
- C-programming MCQs part-6
- COA MCQs part-1
- COA MCQs part-2
- COA MCQs part-3
- COA MCQs part-4
- Microprocessor 8085 MCQs part-1
- Microprocessor 8085 MCQs part-2
- Microprocessor 8085 MCQs part-3
- CSS MCQs part-1
- CSS MCQs part-2
- CSS MCQs part-3
- CSS MCQs part-4
- CSS MCQs part-5
- Engineering Mathematics -II MCQs part-1
- Engineering Mathematics -II MCQs part-2
- Engineering Mathematics -II MCQs part-3
- Engineering Mathematics -II MCQs part-4
- Engineering Mathematics -II MCQs part-5
- Operating system MCQs part-1
- Operating system MCQs part-2
- Operating system MCQs part-3
- Operating system MCQs part-4
- Operating system MCQs part-5
0 Comments