GATE CS 2021 : National champion Quiz-4 (App update required to attempt this test)
Attempt now to get your rank among 237 students!
Question 1
The output of 2 * 4 # 7 # 1 * 5 # 2 * 8 # 3 expression is ________.
Question 2
What is the missing translation (1) and (2), if the string “2 × 3 + 5 × 3 + 1 × 3” produces 160 instead of 24?
Question 3
E → TE’ E’.y = E.x
E.x = E’.y
E1’ → + TE2’ E2’.y = E1’.y + T.x
E1’.x = E2’.x
Which of the following is true?
Question 4
Question 5
I. Pointer variables are allocated on the stack.
II. Optimal use of registers in the code generation is NP complete and possibly intractable.
III. LEX compiler transforms the input patterns into a transition diagram and generates code in a file.
IV. YACC is a representation of an LALR parser written in C.
The number of correct statements is:
Question 6
A) Static allocation bindings do not changes at run time
B) Heap allocation allocates and de-allocates storage at run time.
C) Recursion in programming languages cannot be implemented with dynamic storage allocation.
How many of the above statements are false?
Question 7
I. L(M) L(M’) =
II. L(M) L(M’) =
What is the validity of the above statements with respect to DFAs and NFAs?
Question 8Multiple Correct Options
Question 9
Question 10Multiple Correct Options
Question 11Multiple Correct Options
P1: {<M, x, k> | M is a TM and M does not halt on x with in k steps}
P2: {<M> | M is a TM and. M accepts atleast two strings of different length}
P3 : {<M> | M is a TM and there exist an input whose length is less than 100, on which M halts}
The problem which is/are RE but not REC is _______.(Multiple Select Question)
Question 12
L1 = {<M> |M is TM, M0 is TM that halts on all inputs, and M ϵ L(M0)}
L2 = {<M>} | M is TM, M0is TM that halts on all inputs, and M0ϵ L(M)}
Which of the following is correct above languages?
- 237 attempts
- 1 upvote
- 5 comments
Tags :
GATE & PSU CSGeneral