1
GATE CSE 2026 Set 2
Numerical
+2
-0

A system has a Translation Lookaside Buffer (TLB) that has a reach of 1 MB . TLB reach is defined as the total amount of physical memory that can be accessed through the TLB entries. The paging system uses pages of size 4 KB . The virtual address space is 64 GB and physical address space is 1 GB . If each TLB entry stores a 4-bit process id, page number, frame number, and a 2-bit control field, then the size of the TLB (in bytes) is $\_\_\_\_$ . (answer in integer)

Note: $1 \mathrm{~K}=2^{10}, 1 \mathrm{M}=2^{20}, 1 \mathrm{G}=2^{30}$

Your input ____
2
GATE CSE 2026 Set 2
Numerical
+2
-0

Consider contiguous allocation of physical memory to processes using variable partitioning scheme. Suppose there are 8 holes in the memory of sizes $20 \mathrm{~KB}, 4 \mathrm{~KB}$, $25 \mathrm{~KB}, 18 \mathrm{~KB}, 7 \mathrm{~KB}, 9 \mathrm{~KB}, 15 \mathrm{~KB}$, and 12 KB . Assume that no two holes are adjacent. Two processes P1 of size 16 KB and P2 of size 9 KB arrive in that order, and they are allocated memory using the best-fit technique. After allocating space to P1 and P2, the number of holes of size less than 8 KB is $\_\_\_\_$ . (answer in integer)

Note: $1 \mathrm{~K}=2^{10}$

Your input ____
3
GATE CSE 2026 Set 2
MCQ (Single Correct Answer)
+1
-0

In C runtime environment, which one of the following is stored in heap?

A

A static variable declared inside a function

B

An array of integers declared inside a function

C

A dynamically allocated array of integers created using malloc() function call

D

Return address of a function

4
GATE CSE 2026 Set 2
MCQ (Single Correct Answer)
+1
-0

$$\text { Consider the following three ANSI-C programs, P1, P2 and P3 }$$

GATE CSE 2026 Set 2 Programming Languages - Basic of Programming Language Question 2 EnglishWhich one of the following statements is true?

A

Only P1 will compile without any error

B

Only P2 will compile without any error

C

Only P3 will compile without any error

D

All three programs P1, P2, and P3 will compile without any error