CS/IT Gate Yearwise
CS/IT Gate 2026 (Set 2)
CS/IT Gate 2025 (Set 1)
CS/IT Gate 2025 (Set 2)
CS/IT Gate 2024 (Set 1)
CS/IT Gate 2024 (Set 2)
CS/IT Gate 2023
CS/IT Gate 2022
CS/IT Gate 2021 (Set 1)
CS/IT Gate 2021 (Set 2)
CS/IT Gate 2020
CS/IT Gate 2019
CS/IT Gate 2018
CS/IT Gate 2017 (Set 1)
CS/IT Gate 2017 (Set 2)
CS/IT Gate 2016 (Set 1)
CS/IT Gate 2016 (Set 2)
CS/IT Gate 2015 (Set 1)
CS/IT Gate 2015 (Set 2)
CS/IT Gate 2015 (Set 3)
CS/IT Gate 2014 (Set 1)
CS/IT Gate 2014 (Set 2)
CS/IT Gate 2014 (Set 3)
CS and IT Gate 2024 Set-2 Questions with Answer
Ques 27 GATE 2024 Set-2
Which one of the following CIDR prefixes exactly represents the range of IP addresses from 10.12.2.0 to 10.12.3.255?
To determine which CIDR prefix exactly represents the given range of IP addresses, let us convert the changing portions of the IP addresses into binary form.
1. Analyze the Constant and Changing Octets:
Looking at the start and end of the address block:
• Start IP: 10.12.2.0
• End IP: 10.12.3.255
The first two octets (10.12) remain completely constant across the entire range. Since each octet represents 8 bits, this gives us 16 matching network bits right away.
2. Convert the 3rd Octet to Binary:
Let us look at the binary structure of the 3rd octet for the boundary values:
• Decimal 2 in binary: 0 0 0 0 0 0 1 0
• Decimal 3 in binary: 0 0 0 0 0 0 1 1
Let's align them to find the matching network prefix length:
1st & 2nd Octet 3rd Octet 10 . 12 . 0 0 0 0 0 0 1 0 (For 10.12.2.0) 10 . 12 . 0 0 0 0 0 0 1 1 (For 10.12.3.255) --------------------------------- <- 16 bits -> <- 7 bits -> -> The first 7 bits match perfectly.Counting the total number of identical, continuous bits from left to right:
• First two octets = 16 bits
• Third octet matching bits = 7 bits
• Total network prefix length = 16 + 7 = 23 bits.
3. Determine the Network Address: The common prefix up to the 23rd bit gives us the base network address. Setting all remaining host bits (the last bit of the 3rd octet and all 8 bits of the 4th octet) to 0 results in:
• 3rd Octet:
00000010 → 2• 4th Octet:
00000000 → 0This creates the full CIDR identifier: 10.12.2.0/23.
4. Verify Total Addresses: A
/23 network leaves $32 - 23 = 9$ bits for host allocation. The total number of addresses in this block is $2^9 = 512$.
Our target range spans from
10.12.2.0 to 10.12.3.255, which contains exactly 256 addresses from the .2 block and 256 addresses from the .3 block ($256 + 256 = 512$). This confirms the block calculation is correct.
Conclusion: The prefix that exactly matches the address block is 10.12.2.0/23, corresponding to option (a).
Ques 28 GATE 2024 Set-2
You are given a set V of distinct integers. A binary search tree T is created by inserting all elements of V one by one, starting with an empty tree. The tree T follows the convention that, at each node, all values stored in the left subtree of the node are smaller than the value stored at the node. You are not aware of the sequence in which these values were inserted into T, and you do not have access to T. Which one of the following statements is TRUE?
Ques 29 GATE 2024 Set-2
Consider the following context-free grammar where the start symbol is S and the set of terminals is {a,b,c,d}.


Ques 30 GATE 2024 Set-2
Let x and y be random variables, not necessarily independent, that take real values in the interval. Let z = xy and let the mean values of x, y, z be x̅, ȳ, z̅ respectively. Which one of the following statements is TRUE?
Ques 31 GATE 2024 Set-2
The relation schema, Person(pid, city), describes the city of residence for every person uniquely identified by pid. The following relational algebra operators are available: selection, projection, cross product, and rename.
To find the list of cities where at least 3 persons reside, using the above operators, the minimum number of cross product operations that must be used is
Ques 32 GATE 2024 Set-2
Let A be an n x n matrix with real number entries, where n > 2. Let B be a matrix obtained by interchanging two rows of A. Which of the following statements is/are always TRUE?
Ques 33 GATE 2024 Set-2
Which of the following is/are EQUAL to 224 in radix-5 (i.e., base-5) notation?
Ques 34 GATE 2024 Set-2
Let G be an undirected connected graph in which every edge has a positive integer weight. Suppose that every spanning tree in G has even weight. Which of the following statements is/are TRUE for every such graph G?
Ques 35 GATE 2024 Set-2
Consider a context-free grammar G with the following 3 rules.
S → aS,
S → aSbS,
S → c
Let w ∈ L(G). Let na(w), nb(w), nc(w) denote the number of times a, b, c occur in w, respectively. Which of the following statements is/are TRUE?
Ques 36 GATE 2024 Set-2
Consider a disk with the following specifications: rotation speed of 6000 RPM, average seek time of 5 milliseconds, 500 sectors/track, 512-byte sectors. A file has content stored in 3000 sectors located randomly on the disk. Assuming average rotational latency, the total time (in seconds, rounded off to 2 decimal places) to read the entire file from the disk is
Ques 37 GATE 2024 Set-2
Consider a TCP connection operating at a point of time with the congestion window of size 12 MSS (Maximum Segment Size), when a timeout occurs due to packet loss. Assuming that all the segments transmitted in the next two RTTs (Round Trip Time) are acknowledged correctly, the congestion window size (in MSS) during the third RTT will be
Ques 38 GATE 2024 Set-2
Consider an Ethernet segment with a transmission speed of 108 bits/sec and a maximum segment length of 500 meters. If the speed of propagation of the signal in the medium is 2 x 108 meters/sec, then the minimum frame size (in bits) required for collision detection is
Ques 39 GATE 2024 Set-2
A functional dependency F:X → Y is termed as a 'useful functional dependency' if and only if it satisfies all the following three conditions:
• X is not the empty set.
• Y is not the empty set.
• Intersection of X and Y is the empty set.
For a relation R with 4 attributes, the total number of possible useful functional dependencies is
Total Unique Visitors