...
Question 1919 – Data-Structures
November 28, 2023
Application-Layer-Protocol
November 28, 2023
Question 1919 – Data-Structures
November 28, 2023
Application-Layer-Protocol
November 28, 2023

Question 1976 – Data-Structures

The expression 5-2-3*5-2 will evaluate to 19, if:

Correct Answer: C

Question 363 Explanation: 
Evaluation procedure:
Step-1: 5-2-3*5-2 will be 19.
Step-2: if it is treated as (5-(2-3))*(5-2)
Step-3: – has precedence over * and if it associates from the right.
A
‘-‘ is left associative and ‘*’ has precedence over ‘-‘
B
‘-‘ is right associative and ‘*’ has precedence over ‘-‘
C
‘-‘ is right associative and ‘-‘ has precedence over ‘*’
D
‘-‘ is left associative and ‘-‘ has precedence over ‘*’

Leave a Reply

Your email address will not be published. Required fields are marked *