GATE 2021 (Session 2) Computer Science and Information Technology (CS) Questions with Solutions

GATE 2021 (Session 2)

64 questions

MCQ 33 · MSQ 13 · NAT 181-mark 29 · 2-mark 35

Questions 21–25 of 64

Q22Context Free Language1 markMSQ
Let L1L_1 be a regular language and L2L_2 be a context-free language. Which of the following languages is/are context-free?

One or more options are correct.

Q23Intermediate Code Generation1 markMSQ
In the context of compilers, which of the following is/are NOT an intermediate representation of the source program?

One or more options are correct.

Q24CPU Scheduling1 markMSQ
Which of the following statement(s) is/are correct in the context of CPU scheduling?

One or more options are correct.

Q25Propositional Logic1 markMSQ
Choose the correct choice(s) regarding the following proportional logic assertion S:

S:((P∧Q)→R)→((P∧Q)→(Q→R))S: (( P \wedge Q) \rightarrow R) \rightarrow (( P \wedge Q) \rightarrow (Q \rightarrow R))

One or more options are correct.

Q26Binary Tree1 markNAT
Consider a complete binary tree with 7 nodes. Let A denote the set of first 3 elements obtained by performing Breadth-First Search (BFS) starting from the root. Let B denote the set of first 3 elements obtained by performing Depth-First Search (DFS) starting from the root.

The value of |A-B| is _____________