GATE 2026 (Session 1)
65 questions
MCQ 28 · MSQ 24 · NAT 131-mark 30 · 2-mark 35
Questions 56–60 of 65
An ISP having an address block assigns a block of IP addresses to a client, using the classless internet domain routing (CIDR) super-netting approach. Which of the following address blocks can be assigned by the ISP?
One or more options are correct.
Answer: (A), (B), (C)
The ISP block covers two full class-B-sized blocks. It runs from up to .
To give addresses with CIDR super-netting, the block must hold at least addresses. A prefix gives addresses, and this is enough. A would give only .
A valid sub-block must follow two rules. (a) It must lie fully inside the range to . (b) Its network address must be a multiple of in the needed octet. Here leaves host bits, so each block has addresses. So the 3rd octet must be a multiple of : .
- : is a multiple of and it is in range. Valid.
- : is a multiple of , and is in the /15 range. Valid.
- : is a multiple of . Valid.
- : is not a multiple of . The valid boundaries are . So this is not a properly aligned block. Invalid.
Answer: 202.16.0.0/19, 202.17.64.0/19, and 202.16.32.0/19 can be assigned.
To give addresses with CIDR super-netting, the block must hold at least addresses. A prefix gives addresses, and this is enough. A would give only .
A valid sub-block must follow two rules. (a) It must lie fully inside the range to . (b) Its network address must be a multiple of in the needed octet. Here leaves host bits, so each block has addresses. So the 3rd octet must be a multiple of : .
- : is a multiple of and it is in range. Valid.
- : is a multiple of , and is in the /15 range. Valid.
- : is a multiple of . Valid.
- : is not a multiple of . The valid boundaries are . So this is not a properly aligned block. Invalid.
Answer: 202.16.0.0/19, 202.17.64.0/19, and 202.16.32.0/19 can be assigned.
Let be an undirected graph, which is a path on vertices. The number of matchings in is ________. (answer in integer)
Answer: 34
Let be the number of matchings (the empty matching is counted too) in a path graph with edges. Look at the last edge of the path. Either it is not used in the matching, so the rest has choices. Or it is used, so the adjacent edge cannot be used, and the rest has choices. This gives a Fibonacci-like recurrence:
, with (no edges, so only the empty matching) and (one edge, which is either included or not).
Values from the recurrence:
A path on vertices has edges, so the number of matchings is .
Answer: 34
, with (no edges, so only the empty matching) and (one edge, which is either included or not).
Values from the recurrence:
A path on vertices has edges, so the number of matchings is .
Answer: 34
Let be a random variable which takes values in the set . Further, and .
The expected value of , denoted by , is equal to ________. (rounded off to two decimal places)
The expected value of , denoted by , is equal to ________. (rounded off to two decimal places)
Answer: 4.24 to 4.26
Formula for expected value:
Put in the probabilities:
Add the values:
Final value:
Answer: 4.25
Put in the probabilities:
Add the values:
Final value:
Answer: 4.25
Consider a hard disk with a rotational speed of rpm. The time to move the read/write head from a track to its adjacent track is millisecond. Initially, the head is on track . The number of sectors per track is . The sector size is bytes. It is necessary to transfer data from randomly located sectors in each of the following tracks in the order: and .
The total time for the data transfer (in milliseconds) from the hard disk is ________. (rounded off to one decimal place)
The total time for the data transfer (in milliseconds) from the hard disk is ________. (rounded off to one decimal place)
Answer: 77.3
Rotation time: One revolution takes ms. The average rotational latency (half a revolution) ms. The time to read one sector ms.
Seek time: The head needs ms to move to an adjacent track. It follows the path .
: tracks ms. : tracks ms. : tracks ms. Total seek time ms.
Data transfer on each track: The sectors needed are at random places. So every sector access needs a new average rotational latency of ms before the sector reaches the head. Then reading the sector takes ms.
Time for one track ms. For tracks: ms.
Total time seek transfer ms.
Answer: 77.3
Seek time: The head needs ms to move to an adjacent track. It follows the path .
: tracks ms. : tracks ms. : tracks ms. Total seek time ms.
Data transfer on each track: The sectors needed are at random places. So every sector access needs a new average rotational latency of ms before the sector reaches the head. Then reading the sector takes ms.
Time for one track ms. For tracks: ms.
Total time seek transfer ms.
Answer: 77.3
The EX stage of a pipelined processor performs the memory read operations for LOAD instructions, and the operations for the arithmetic and logic instructions. Let denote the time taken by the EX stage to perform the operation for an instruction. For each instruction type, the values of and (the number of instructions of that type in a sequence of instructions for a program P ), are given in the table below.
The duration of the pipeline clock cycle is nanosecond. Assume that the latch time for the interstage buffers in the pipeline is negligible.
When program is executed, the number of clock cycles for which the pipeline is stalled due to structural hazards in the EX stage is ________. (answer in integer)
The duration of the pipeline clock cycle is nanosecond. Assume that the latch time for the interstage buffers in the pipeline is negligible.
When program is executed, the number of clock cycles for which the pipeline is stalled due to structural hazards in the EX stage is ________. (answer in integer)
Answer: 95
The EX stage has one shared functional unit. Only one instruction can be in the EX stage in a clock cycle (cycle time ns). Suppose the real execution time is more than ns. Then the instruction stays in the EX stage for clock cycles. This gives stall cycles from structural hazard, for each instruction of that type.
Total stall cycles: .
Answer: 95
Total stall cycles: .
Answer: 95