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 16–20 of 65

Q16Relational Schema1 markMCQ−0.33 if wrong
Which one of the options given below refers to the degree (or arity) of a relation in relational database systems?

Q18Matrix Algebra1 markMCQ−0.33 if wrong
Let A=[1234412334122341]A=\begin{bmatrix} 1 & 2 & 3 &4 \\ 4& 1& 2 &3 \\ 3& 4 & 1 &2 \\ 2 &3 &4 &1 \end{bmatrix} and B=[3412412312342341]B=\begin{bmatrix} 3& 4 & 1 &2 \\ 4& 1& 2 &3 \\ 1 & 2 & 3 &4 \\ 2 &3 &4 &1 \end{bmatrix}
Let det(A) and det(B) denote the determinants of the matrices A and B, respectively.
Which one of the options given below is TRUE?

Q19Regular Expression1 markMCQ−0.33 if wrong
Consider the following definition of a lexical token idid for an identifier in a programming language, using extended regular expressions:

letter→[A−Za−z]letter \rightarrow [A-Za-z]
digit→[0−9]digit \rightarrow [0-9]
id→letter(letter  ∣  digit)∗id \rightarrow letter (letter\;| \;digit)^*


Which one of the following Non-deterministic Finite-state Automata with - transitions accepts the set of valid identifiers? (A double-circle denotes a final state)
letter ε letter digit (A) letter ε ε letter digit (B) letter letter digit ε ε ε ε ε (C) letter letter digit ε (D)

Q20Hashing1 markMCQ−0.33 if wrong
An algorithm has to store several keys generated by an adversary in a hash table. The adversary is malicious who tries to maximize the number of collisions. Let kk be the number of keys, mm be the number of slots in the hash table, and k>mk \gt m.
Which one of the following is the best hashing strategy to counteract the adversary?