Time Left - 12:00 mins

GATE 2022 Toppers Quiz 28

Attempt now to get your rank among 116 students!

Question 1

What will be the time complexity of the below program?

Question 2

Consider the following, five binary string each of length 8 bits:
11111011, 01101010, 01010010, 11011011, 10011010
A hash table of size S = 8 (0 to 7) using open addressing for hashing the binary strings. Assume finding an empty slot is a successful probe, while non-empty is a unsuccessful probe. The total number of unsuccessful probes needed using linear probing to hash all strings are ________.

Question 3

Consider two binary operator ‘+’ and ‘–’ with the precedence of ‘+’ being lower than that of operator ‘–’. Operator ‘–’ is right associative while operator ‘+’ to left associative. Which one of the following represents the parse tree for expression (5 + 2 – 7 + 3 – 4)

Question 4

Consider a push down automata (PDA) below which runs over the input alphabet (a, b). It has the stack alphabet {z0, X} where z0 is the bottom of stack marker. The set of states of PDA is {q0, q1} where q0 is the start state and final state.

δ{q0, b, z0} = {(q0, Xz0)}

δ{q0, b, X} = {(q0, XX)}

δ{q0, a, X} = {(q1, X)}

δ{q0, ϵ, z0} = {(q0, ϵ)}

δ{q0, b, X} = {(q1, ϵ)}

δ{q1, a, z0} = {(q0, z0)}

The language accepted by PDA is

Question 5

The 2’s complement representation of (—539)10 is hexadecimal is

Question 6

Consider the size of congestion window of a TCP connection be 36 KB when a timeout occurs. The RTT for the connection is 200 microseconds and the maximum segment size is 2KB. What is the time taken by the TCP connection to get back to 36 KB congestion window ?

Question 7

Number of the grammars which is/are ambiguous?

I. S0S1|01

II. S+SS|−SS | a

III. SS(S)S|ϵ

IV. SaSbS | bSaS | ϵ

Question 8

What will be the 10’s complement of (715)base 8 is
  • 116 attempts
  • 0 upvotes
  • 0 comments
Jan 7GATE & PSU CS