MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

DATA STRUCTURES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
In ____ notation, the operator is placed between the operands.
A
infix
B
prefix
C
postfix
D
none of above
Explanation: 

Detailed explanation-1: -This type of notation is referred to as infix since the operator is in between the two operands that it is working on. Consider another infix example, A + B * C. The operators + and * still appear between the operands, but there is a problem.

Detailed explanation-2: -Prefix Notation In this notation, operator is prefixed to operands, i.e. operator is written ahead of operands. For example, +ab. This is equivalent to its infix notation a + b. Prefix notation is also known as Polish Notation.

Detailed explanation-3: -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-4: -The postfix expression is an expression in which the operator is written after the operands. For example, the postfix expression of infix notation ( 2+3) can be written as 23+.

Detailed explanation-5: -infix operator (plural infix operators) (computing) an operator that is placed in between the operands like it is commonly used in arithmetical and logical formulae and statements. The plus sign in “2 + 2” is placed as an infix operator in arithmetic.

There is 1 question to complete.