...
Disk-scheduling
October 8, 2023
NIC-NIELIT STA 2020
October 8, 2023
Disk-scheduling
October 8, 2023
NIC-NIELIT STA 2020
October 8, 2023

GATE 2000

Question 44

Given the following expression grammar:

    E → E * F | F + E | F
    F → F - F | id  

which of the following is true?

A
* has higher precedence than +
B
– has higher precedence than *
C
+ and – have same precedence
D
+ has higher precedence than *
Question 44 Explanation: 
The operator which is in low level that can have high preference.
Order of precedence is *, +, -.
Here * and + have equal preference, ‘-‘ can have higher precedence than + and *.
Correct Answer: B
Question 44 Explanation: 
The operator which is in low level that can have high preference.
Order of precedence is *, +, -.
Here * and + have equal preference, ‘-‘ can have higher precedence than + and *.

Leave a Reply

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