Time Left - 15:00 mins

TOC Rapid Quiz - 1

Attempt now to get your rank among 793 students!

Question 1

Consider the following PDA for L = anbn :
 
We want to check whether the string a4b4 belongs to the language L or not. A single move in PDA causes 5 nanoseconds delay. Find the total delay in nanoseconds to check the membership of the string.

Question 2

Consider the following grammar G.
A A + B |B
B int|(A)
Which of the following grammar is equivalent to the above grammar G?

Question 3

Identify the language, L which is not a CFL.

Question 4

Consider the regular expression , what is the total number of strings generated by the language with length less than 3 ?

Question 5

Let ′r′ be a regular expression, then which of the following statements is/are TRUE for every ′r′?

S1:There exists 'x' which satisfies property r+x=x

S2:There exists 'y' which satisfies property r.y=y

Question 6

Assume X1 will always be the symbol 0, X2 will be 1, and X3 will be B, the blank
Refer the direction L as and direction R as
Encode the transition rule,
(, ) = (, ) for some integers i, j, k, l, m by the string

Let the TM M =
If the transition function 𝛿 of a given TM consists of the rules
q1
(q1, 1) = (q3, 0, R)
(q1, 0) = (q2, 1, R)
(q2, B) = (q3, 1, R)
(q3, B) = (q3, 1, L)
Then which of the following is a valid code of a transition rule of the TM?
  • 793 attempts
  • 0 upvotes
  • 3 comments
May 18GATE & PSU CS