Top 350+ Solved Data Structures (DS) MCQ Questions Answer

From 196 to 210 of 370

Q. The postfix form of the expression (A+ B)*(C*D- E)*F / G is?

a. AB+ CD*E – FG /**

b. AB + CD* E – F **G /

c. AB + CD* E – *F *G /

d. AB + CDE * – * F *G /

  • c. AB + CD* E – *F *G /

Q. The postfix form of A*B+C/D is?

a. *AB/CD+

b. AB*CD/+

c. A*BC+/D

d. ABCD+/*

  • b. AB*CD/+

Q. The prefix form of A-B/ (C * D ^ E) is?

a. -/*^ACBDE

b. -ABCD*^DE

c. -A/B*C^DE

d. -A/BC*^DE

  • c. -A/B*C^DE

Q. The prefix form of an infix expression (p + q) – (r * t) is?

a. + pq – *rt

b. – +pqr * t

c. – +pq * rt

d. – + * pqrt

  • c. – +pq * rt

Q. Which data structure is used for implementing recursion?

a. Queue

b. Stack

c. Array

d. List

  • b. Stack

Q. When an operand is read, which of the following is done?

a. It is placed on to the output

b. It is placed in operator stack

c. It is ignored

d. Operator stack is emptied

  • a. It is placed on to the output

Q. What should be done when a left parenthesis ‘(‘ is encountered?

a. It is ignored

b. It is placed in the output

c. It is placed in the operator stack

d. The contents of the operator stack is emptied

  • c. It is placed in the operator stack

Q. Which of the following is an infix expression?

a. (a+b)*(c+d)

b. ab+c*

c. +ab

d. abc+*

  • a. (a+b)*(c+d)
Subscribe Now

Get All Updates & News