1
GATE CSE 2022
Numerical
+2
-0

Consider the following grammar along with translation rules.

S $$\to$$ S1 # T {S.val = S1.val * T.val}

S $$\to$$ T {S.val = T.val}

T $$\to$$ T1 %R {T.val = T1.val $$ \div $$ R.val}

T $$\to$$ R {T.val = R.val}

R $$\to$$ id {R.val = id.val}

Here # and % are operators and id is a token that represents an integer and id.val represents the corresponding integer value. The set of non-terminals is {S, T, R, P} and a subscripted non-terminal indicates an instance of the non-terminal. Using this translation scheme, the computed value of S.val for root of the parse tree for the expression 20#10%5#8%2%2 is ___________.

Your input ____
2
GATE CSE 2022
MCQ (Single Correct Answer)
+1
-0.33

Consider an enterprise network with two Ethernet segments, a web server and a firewall, connected via three routers as shown below.

GATE CSE 2022 Computer Networks - Network Layer Question 9 English

What is the number of subnets inside the enterprise network?

A
3
B
12
C
6
D
8
3
GATE CSE 2022
Numerical
+1
-0.33

Consider the resolution of the domain name www.gate.org.in by a DNS resolver. Assume that no resource records are cached anywhere across the DNS servers and that iterative query mechanism is used in the resolution. The number of DNS query-response pairs involved in completely resolving the domain name is __________.

Your input ____
4
GATE CSE 2022
MCQ (More than One Correct Answer)
+2
-0.67

Consider routing table of an organization's router shown below :

Subnet number Subnet mask Next hop
12.20.164.0 255.255.252.0 R1
12.20.170.0 255.255.254.0 R2
12.20.168.0 255.255.254.0 Interface 0
12.20.166.0 255.255.254.0 Interface 1
default R3

Which of the following prefixes in CIDR notation can be collectively used to correctly aggregate all of the subnets in the routing table?

A
12.20.164.0/20
B
12.20.164.0/22
C
12.20.164.0/21
D
12.20.168.0/22
EXAM MAP
Medical
NEETAIIMS
Graduate Aptitude Test in Engineering
GATE CSEGATE ECEGATE EEGATE MEGATE CEGATE PIGATE IN
Civil Services
UPSC Civil Service
Defence
NDA
Staff Selection Commission
SSC CGL Tier I
CBSE
Class 12