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

GATE 2022

65 questions

MCQ 32 · MSQ 15 · NAT 181-mark 30 · 2-mark 35

Questions 51–55 of 65

Q51Recurrence2 marksMSQ
Consider the following recurrence:
f(1)=1;f(2n)=2f(n)−1,for n≥1;f(2n+1)=2f(n)+1,for n≥1.\begin{aligned} f(1)&=1; \\ f(2n)&=2f(n)-1, & \text{for }n \geq 1; \\ f(2n+1)&=2f(n)+1, & \text{for }n \geq 1. \end{aligned}
Then, which of the following statements is/are TRUE?

One or more options are correct.

Q52Graph Theory2 marksMSQ
Which of the properties hold for the adjacency matrix AA of a simple undirected unweighted graph having nn vertices?

One or more options are correct.

Q53Eigenvalues and Eigenvectors2 marksMSQ
Which of the following is/are the eigenvector(s) for the matrix given below?
(−9−6−2−4−8−6−3−12015853221712)\begin{pmatrix} -9 &-6 &-2 &-4 \\ -8& -6 & -3 & -1 \\ 20 & 15 & 8 & 5 \\ 32& 21& 7&12 \end{pmatrix}

One or more options are correct.

Q54Cache Memory2 marksMSQ
Consider a system with 2 KB direct mapped data cache with a block size of 64 bytes. The system has a physical address space of 64 KB and a word length of 16 bits. During the execution of a program, four data words P, Q, R, and S are accessed in that order 10 times (i.e., PQRSPQRS...). Hence, there are 40 accesses to data cache altogether. Assume that the data cache is initially empty and no other data words are accessed by the program. The addresses of the first bytes of P, Q, R, and S are 0xA248, 0xC28A, 0xCA8A, and 0xA262, respectively. For the execution of the above program, which of the following statements is/are TRUE with respect to the data cache?

One or more options are correct.

Q55Network Layer Protocol2 marksMSQ
Consider routing table of an organization's router shown below:
SubnetNumberSubnetMaskNextHop12.20.164.0255.255.252.0R112.20.170.0255.255.254.0R212.20.168.0255.255.254.0Interface012.20.166.0255.255.254.0Interface1default R3\begin{array}{|l|l|l|} Subnet Number & Subnet Mask & Next Hop \\ 12.20.164.0 & 255.255.252.0 & R1 \\ 12.20.170.0 & 255.255.254.0 & R2 \\ 12.20.168.0 & 255.255.254.0 & Interface 0 \\ 12.20.166.0 & 255.255.254.0 & Interface 1 \\ default & ~ & R3 \\ \hline \end{array}
Which of the following prefixes in CIDR notation can be collectively used to correctly aggregate all of the subnets in the routing table?

One or more options are correct.