Stack Questions

These questions are generally asked in university exam

infix, prefix based stack question





Also try these question


find Postfix & Prefix Expression of given infix expression in all question (89 to 108)

89. Infix Expression: ( A + B ) * ( C - D );
Postfix Expression:
Prefix Expression:

Answer:

Postfix: AB+CD-*
Prefix: *+AB-CD

90. Infix Expression: A * ( B + C ) / D;
Postfix Expression:
Prefix Expression:

Answer:

Postfix: ABC+*D/
Prefix: /*A+BCD

91. Infix Expression: ( A + B ) - ( C * D );
Postfix Expression:
Prefix Expression:

Answer:

Postfix: AB+CD*-
Prefix: -+AB*CD

92. Infix Expression: A + ( B * C ) - D;
Postfix Expression:
Prefix Expression:

Answer:

Postfix: ABC*+D-
Prefix: -+A*BCD

93. Infix Expression: ( A - B ) * ( C + D );
Postfix Expression:
Prefix Expression:

Answer:

Postfix: AB-CD+*
Prefix: *-AB+CD

94. Infix Expression: ( A + B * C ) / D;
Postfix Expression:
Prefix Expression:

Answer:

Postfix: ABC*+D/
Prefix: /+A*BCD

95. Infix Expression: A * ( B + C ) / ( D - E );
Postfix Expression:
Prefix Expression:

Answer:

Postfix: ABC+*DE-/
Prefix: /*A+BC-DE

96. Infix Expression: A + B * ( C - D );
Postfix Expression:
Prefix Expression:

Answer:

Postfix: ABCD-*+
Prefix: +A*B-CD

97. Infix Expression: ( A + B ) * ( C - D / E );
Postfix Expression:
Prefix Expression:

Answer:

Postfix: AB+CD*E/-
Prefix: *+AB-CD/E

98. Infix Expression: ( A - B ) + ( C * D / E );
Postfix Expression:
Prefix Expression:

Answer:

Postfix: AB-CD*E/+
Prefix: +-AB*CD/E

99. Infix Expression: ( A * B ) + ( C / D );
Postfix Expression:
Prefix Expression:

Answer:

Postfix: AB*CD/+
Prefix: +*AB/CD

100. Infix Expression: ( A + B ) / ( C - D ) * E;
Postfix Expression:
Prefix Expression:

Answer:

Postfix: AB+CD-/E*
Prefix: *+/AB-CD E

101. Infix Expression: ( A + B ) * ( C / D ) - E;
Postfix Expression:
Prefix Expression:

Answer:

Postfix: AB+CD/*E-
Prefix: -*+AB/CD E

102. Infix Expression: A * ( B + C - D ) / E;
Postfix Expression:
Prefix Expression:

Answer:

Postfix: ABC+ D-* E/
Prefix: /* A+ BC -D E

103. Infix Expression: A + B * C - D / E;
Postfix Expression:
Prefix Expression:

Answer:

Postfix: ABC*+ D E/-
Prefix: -+A* B C / D E

104. Infix Expression: ( A / B ) + ( C - D );
Postfix Expression:
Prefix Expression:

Answer:

Postfix: AB/C D-+
Prefix: + /A B - C D

105. Infix Expression: ( A + B ) * C - D / E;
Postfix Expression:
Prefix Expression:

Answer:

Postfix: AB+C* D E/-
Prefix: - *+ A B C /D E

106. Infix Expression: ( A * B - C ) / D + E;
Postfix Expression:
Prefix Expression:

Answer:

Postfix: AB*C-D/E+
Prefix: + / - *A B C D E

107. Infix Expression: ( A - B ) + C * D / E;
Postfix Expression:
Prefix Expression:

Answer:

Postfix: AB- CD*E/+
Prefix: + -AB * C D /E

108. Infix Expression: ( A / B ) - ( C + D ) * E;
Postfix Expression:
Prefix Expression:

Answer:

Postfix: AB/ CD+ E*-
Prefix: - /A B * + C D E

Also try these question