MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

DATA STRUCTURES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
+ 5y / 6c is an example of a ____ Notation.
A
Infix
B
Post fix
C
Either A or B
D
None of the above
Explanation: 

Detailed explanation-1: -Infix notation: X + Y Operators are written in-between their operands. The expression: A * ( B + C ) / D translates to “Add B and C together, multiply the result by A, then divide by D to give the final answer."

Detailed explanation-2: -Infix notation is the notation commonly used in arithmetical and logical formulae and statements. It is characterized by the placement of operators between operands-"infixed operators"-such as the plus sign in 2 + 2.

Detailed explanation-3: -For example, the infix expression (2+3)*(4+5) in postfix notation is 23+45+* and the infix expression 2+3*4+5 in postfix notation is 234*+5+. Also, since our four operators are left associative, 2 + 3 + 4 translates to 23+4+ and not 234++.

Detailed explanation-4: -Infix notation: X + Y. Operators are written in-between their operands. This is the usual way we write expressions. An expression such as A * ( B + C ) / D is usually taken to mean something like: “First add B and C together, then multiply the result by A, then divide by D to give the final answer."

There is 1 question to complete.