GATE 2023 Computer Science and Information Technology (CS) Questions with Solutions

GATE 2023

65 questions

MCQ 34 · MSQ 15 · NAT 161-mark 30 · 2-mark 35

Questions 11–15 of 65

Q11Intermediate Code Generation1 markMCQ−0.33 if wrong
Consider the following statements regarding the front-end and back-end of a compiler.

S1: The front-end includes phases that are independent of the target hardware.
S2: The back-end includes phases that are specific to the target hardware.
S3: The back-end includes phases that are specific to the programming language used in the source code.

Identify the CORRECT option.

Q12Heap Tree1 markMCQ−0.33 if wrong
Which one of the following sequences when stored in an array at locations A[1], . . . , A[10] forms a max-heap?

Q14Regular Expression1 markMCQ−0.33 if wrong
Consider the Deterministic Finite-state Automaton (DFA) AA shown below. The DFA runs on the alphabet {0, 1}, and has the set of states {s, p, q, r}, with s being the start state and p being the only final state.
s p q r 1 0 1 1 0 0 0,1
Which one of the following regular expressions correctly describes the language accepted by AA?

Q15Recurrence1 markMCQ−0.33 if wrong
The Lucas sequence LnL_n is defined by the recurrence relation:
Ln=Ln−1+Ln−2,  for  n≥3,L_n=L_{n-1}+L_{n-2}, \; for \; n\geq 3,
with L1=1  and  L2=3L_1=1 \; and \; L_2=3
Which one of the options given is TRUE?