MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

DATA STRUCTURES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What would be the solution to the given prefix notation?
A
2
B
5
C
7
D
10
Explanation: 

Detailed explanation-1: -What would be the solution to the given prefix notation? Explanation: The infix notation to the given prefix notation is 16/4/2/1 which gives us 2 as our answer. The infix notation is got from the prefix notation by traversing the equation from the right. = 2 (2/1=2).

Detailed explanation-2: -Prefix notation is a mathematical notation. It is a way to write down equations and other mathematical formulae. Prefix notation is also known as Polish notation. The notation was invented by Jan Ɓukasiewicz in 1920.

Detailed explanation-3: -A Prefix expression prints the operator operand 1, and operand 2 respectively. Explanation: The given prefix is +, -, *, 3, 2, /, 8, 4, 1. Hence the correct answer is 5.

There is 1 question to complete.