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

GATE 2021 (Session 1)

65 questions

MCQ 34 · MSQ 13 · NAT 181-mark 30 · 2-mark 35

Questions 16–20 of 65

Q16Number System1 markMCQ−0.33 if wrong
Let the representation of a number in base 3 be 210. What is the hexadecimal representation of the number?

Q17Propositional Logic1 markMCQ−0.33 if wrong
Let p and q be two propositions. Consider the following two formulae in propositional logic.

S1:(¬p∧(p∨q))→qS1: (\neg p\wedge(p\vee q))\rightarrow q
S2:q→(¬p∧(p∨q))S2: q\rightarrow(\neg p\wedge(p\vee q))

Which one of the following choices is correct?

Q19Sorting1 markMCQ−0.33 if wrong
Consider the following array.

2332456972738997\begin{array}{|l|l|l|l|l|l|l|l|} \hline 23&32&45&69&72&73&89&97 \\ \hline\end{array}

Which algorithm out of the following options uses the least number of comparisons (among the array elements) to sort the above array in ascending order?

Q20Binary Search Tree1 markMCQ−0.33 if wrong
A binary search tree T contains n distinct elements. What is the time complexity of picking an element in T that is smaller than the maximum element in T?