1. The prefix form of A-B/ (C * D ^ E) is ?
a) -A/B*C^DE
b) -A/BC*^DE
c) -ABCD*^DE
d) -/*^ACBDE
2. Consider a linked list of n elements. What is the time taken to insert an element after an element pointed by some pointer ?
a) O(1)
b) O(log2 n)
c) O(n)
d) O (n log2 n)
3. Which of the following is a linear data structure ?
a) Array
b) AVL Tress
c) Binary Tress
d) Graphs
4. In simple chaining, what data structure is appropriate?
a) Doubly linked list
b) Circular linked list
c) Singly linked list
d) Binary trees
5. What is a data structure?
a) A programming language
b) A collection of algorithms
c) A way to store and organize data
d) A type of computer hardware
6. The insertion operation in the stack is known as:
a) Insert
b) Add
c) Interpolate
d) Push
7. How can array elements be accessed ?
a) logarithmically
b) randomly
c) exponentially
d) sequentially
8. Which of the following cases does not exist in complexity theory ?
a) Best case
b) Worst case
c) Average case
d) Empty Case
9. Which data structure is based on the First In Last Out (FILO) principle ?
a) Queue
b) Tree
c) Graph
d) Stack
10. The prefix form of ((a/b)+c)-(d+(e*f)) is ?
a) - + / a b c + d * e f
b) + - / a b c + d * e f
c) - + a / b c d + * e f
d) - / a b + c + d * e f
11. Which of the following applications uses a circular linked list ?
a) Allocating CPU to resources
b) Recursive function calls
c) Undo operation in a text editor
d) Implement Hash Tables
12. What's the worst-case scenario in a linear search algorithm ?
a) The element is somewhere in the middle of the array
b) The element is not present in the array
c) The element is the last in the array
d) Either the element is the last in the array or is not there
13. Which of the following is not a balanced binary tree ?
a) Red-black tree
b) AVL tree
c) B-tree
d) Splay tree
14. Which of the following is not a type of queue ?
a) Priority queue
b) Circular queue
c) Single-ended queue
d) Ordinary queue
15. The complexity of the average case of an algorithm is
a) more complicated to analyze than the worst-case
b) Sometimes more complicated and some other times simpler than the worst-case
c) Much simpler to analyze than the worst-case
d) None of the above