C Interview Questions 151-160

This post contains 151-160 questions of c program. It will helpful to solve c aptitude questions, c quiz , c objective type questions etc in interview.

151-160 Questions

Q1:
The prefix equivalent for the postfix ab+cd+* is 
a) a+b*c+d 
b) +ab*+cd 
c) *+ab+cd 
d) *++abcd
Answer:

Q2:
The postfix equivalent for the prefix *++abcd is 
a) ab+c+d* 
b) abcd++* 
c) ab+cd+* 
d) ab+c*d+
Answer:

Q3:
The infix equivalent to the postfix expression abc+d-*e%f/ is 
a) a+b*c-d%f/f 
b) a*(b+c-d)%e/f 
c) a*b+c-d%e/f 
d) a*(b-c+d)%e/f
Answer:

Q4:
Evaluate the expression 2*3/5+6-4 
a) 1 
b) 2 
c) 3 
d) 4
Answer:

Q5:
The value of the prefix expression +/*2-5 6 4 3 is 
a) 1 
b) 2 
c) 3 
d) 4
Answer:  

Q6:
The value of the postfix expression 1 4 +3 / 2 * 6 4 % - is 
a) 1 
b) -1 
c) 0 
d) 4
Answer:

Q7:
Towers of Hanoi is an application of
a) stack 
b) queue 
c) linked list 
d) dequeue
Answer:

Q8:
The data structure used in railway reservation is 
a) stacks 
b) queues 
c) priority queues 
d) binary tree
Answer:

Q9:
The data structure applicable for a fully packed bus is 
a) stacks 
b) queues 
c) priority queues 
d) binary tree
Answer:

Q10:
The recursive functions are evaluated using 
a) stacks 
b) queues 
c) priority queues 
d) binary tree
Answer:

Comments are closed.