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 46–50 of 64

Q47Matrix Algebra2 marksMCQ−0.67 if wrong
For two n-dimensional real vectors PP and QQ, the operation s(P,Q)s(P,Q) is defined as follows:

s(P,Q)=∑i=1n(P[i]⋅Q[i])s(P,Q) = \displaystyle \sum_{i=1}^n (P[i] \cdot Q[i])

Let L\mathcal{L} be a set of 10-dimensional non-zero real vectors such that for every pair of distinct vectors P,Q∈L,s(p,Q)=0P,Q \in \mathcal{L}, s(p,Q)=0. What is the maximum cardinality possible for the set L\mathcal{L}?

Q48Intermediate Code Generation2 marksMCQ−0.67 if wrong
For a statement S in a program, in the context of liveness analysis, the following sets are defined:

USE(S) : the set of variables used in S
IN(S) : the set of variables that are live at the entry of S
OUT(S) : the set of variables that are live at the exit of S

Consider a basic block that consists of two statements, S1 followed by S2. Which one of the following statements is correct?

Q49Recurrence Relation2 marksMCQ−0.67 if wrong
For constants a≥1a\geq 1 and b>1b \gt 1, consider the following recurrence defined on the non-negative integers:

T(n)=a⋅T(nb)+f(n)T(n) = a \cdot T \left(\dfrac{n}{b} \right) + f(n)

Which one of the following options is correct about the recurrence T(n)T(n)?

Q50Normal Form2 marksMSQ
Suppose the following functional dependencies hold on a relation U with attributes P,Q,R,S, and TP, Q, R, S, \text{ and } T:

P→QRRS→TP \rightarrow QR \\ RS \rightarrow T

Which of the following functional dependencies can be inferred from the above functional dependencies?

One or more options are correct.

Q51Context Free Language2 marksMSQ
For a string ww, we define wRw^R to be the reverse of ww. For example, if w=01101w=01101 then wR=10110w^R=10110.
Which of the following languages is/are context-free?

One or more options are correct.