Data Structure Test 2
Q1. Organization of data means ______.
Q2. Write the full form of the following:
a. LIFO
b. FIFO
Q3. Which data structure is represented as FIFO?
Q4. Insertion into stack is called ______ (push/pop)
Q5. Giving printing command to printer is an example of _____
Q1. Organization of data means ______.
Q2. Write the full form of the following:
a. LIFO
b. FIFO
Q3. Which data structure is represented as FIFO?
Q4. Insertion into stack is called ______ (push/pop)
Q5. Giving printing command to printer is an example of _____
(stack/queue)
Q6. Reversing a number or a word/string is an example of
Q6. Reversing a number or a word/string is an example of
______(stack or queue)
Q7. In stack addition or removal of elements takes place at ___
(one/both) end of the list.
Q8. In queue, addition of elements take place at one end and
Q7. In stack addition or removal of elements takes place at ___
(one/both) end of the list.
Q8. In queue, addition of elements take place at one end and
removal of elements takes place at other end. (T/F)
Q9. If the elements "A", "B", "C" are added in the queue in the
Q9. If the elements "A", "B", "C" are added in the queue in the
following order,
first A then B and in last C.
In what order, it will come out of
queue?
Q10. _________ function is used to add an element in stack.
first A then B and in last C.
In what order, it will come out of
queue?
Q10. _________ function is used to add an element in stack.
SOLUTIONS
Ans 1. Data Structure
Ans 2.
a. Last In First Out
b. First In First Out
Ans 3. Queue
Ans 4. Push
Ans 5. Queue
Ans 6. Stack
Ans 7. One
Ans 8. True
Ans 9. A, B, C
Ans 10. Append
No comments:
Post a Comment