Contents

The process of accessing data stored in a serial access memory is similar to manipulating data on a……
a) Heap                                
b) Binary Tree
c) Array                                
d) Stack

d

Explanation: In serial access memory data records are stored one after the other in which they are created and are accessed sequentially. In stack data structure, elements are accessed sequentially. Stack data structure resembles the serial access memory.


The postfix form of A*B+C/D is?
a) *AB/CD+                        
b) AB*CD/+
c) A*BC+/D                         
d) ABCD+/*

b

Explanation: Infix expression is (A*B)+(C/D)
AB*+(C/D)
AB*CD/+. Thus postfix expression is AB*CD/+.


Which data structure is needed to convert infix notation to postfix notation?
a) Branch                             
b) Tree
c) Queue                                               
d) Stack

d

What is the result of the following operation?
Top (Push (S, X))
a) X                                       
b) X+S
c) S                                                        
d) XS

a

Explanation: The function Push(S,X) pushes the value X in the stack S. Top() function gives the value which entered last. X entered into stack S at last.


The prefix form of an infix expression (p + q) – (r * t) is?
a) + pq – *rt                         
b) – +pqr * t
c) – +pq * rt                         
d) – + * pqrt

c

Explanation: Given Infix Expression is ((p+q)-(r*t))
(+pq)-(r*t)
(-+pq)(r*t)
-+pq*rt. Thus prefix expression is -+pq*rt.


Which data structure is used for implementing recursion?
a) Queue                                               
b) Stack
c) Array                                
d) List

b

Explanation: Stacks are used for the implementation of Recursion.