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

GATE 2024 (Session 1)

65 questions

MCQ 29 · MSQ 20 · NAT 161-mark 30 · 2-mark 35

Questions 31–35 of 65

Q31Network Layer Protocol1 markMSQ
Which of the following fields is/are modified in the IP header of a packet going out of a network address translation (NAT) device from an internal network to an external network?

One or more options are correct.

Q32Functions1 markNAT
Let AA and BB be non-empty finite sets such that there exist one-to-one and onto functions (i) from AA to BB and (ii) from A×AA \times A to A∪BA \cup B. The number of possible values of ∣A∣|A| is ___

Q33Stack1 markNAT
Consider the operator precedence and associativity rules for the integer arithmetic operators given in the table below.
OperatorPrecedenceAssociativity+HighestLeft−HighRight∗MediumRight/LowRight\begin{array}{|c|l|l|} \hline Operator & Precedence & Associativity \\ \hline+ & Highest & Left \\ \hline- & High & Right \\ \hline* & Medium & Right \\ \hline / & Low & Right \\ \hline \end{array}
The value of the expression 3+1+5∗2/7+2−4−7−6/23+1+5 * 2 / 7+2-4-7-6 / 2 as per the above rules is _____

Q34Minimum Spanning Tree1 markNAT
The number of spanning trees in a complete graph of 4 vertices labelled A, B, C, and D is _________

Q35Tuple Calculus1 markNAT
Consider the following two relations, R(A,B)R(A, B) and S(A,C)S(A, C) :
RAB10202030304030505095\boldsymbol{R} \begin{array}{|c|c|} \hline \boldsymbol{A} & \boldsymbol{B} \\ \hline 10 & 20 \\ \hline 20 & 30 \\ \hline 30 & 40 \\ \hline 30 & 50 \\ \hline 50 & 95 \\ \hline \end{array}


SAC109030454080\boldsymbol{S} \begin{array}{|c|c|} \hline \boldsymbol{A} & \boldsymbol{C} \\ \hline 10 & 90 \\ \hline 30 & 45 \\ \hline 40 & 80 \\ \hline \end{array}
The total number of tuples obtained by evaluating the following expression σB<C(R⋈R.A=S.AS)\sigma_{B \lt C}\left(R \bowtie_{R . A=S . A} S\right) is ____