- Home
- MCQs by exam
- GATE CS
GATE CS MCQs
151 multiple choice questions typical of the GATE CS exam, with answers and explanations. Switch on practice mode to test yourself first.
-
A
The CPU checks every device continuously in a loop
-
B
Interrupts make all devices transfer data faster
-
C
Devices never need to communicate with the CPU
-
D
The CPU works on other tasks until a device signals it
Correct answer
-
A
0x34
-
B
0x78
Correct answer
-
C
0x12
-
D
0x56
-
A
5
-
B
1
Correct answer
-
C
2.5
-
D
0.2
-
A
2
-
B
16
-
C
3
-
D
4
Correct answer
-
A
The median element
-
B
The most recent element
-
C
The smallest element
Correct answer
-
D
The largest element
-
A
O(n log n)
-
B
O(n²)
Correct answer
-
C
O(log n)
-
D
O(n)
-
A
2n
-
B
n + 1
-
C
n − 1
Correct answer
-
D
n
-
A
Θ(log n)
-
B
Θ(n)
-
C
Θ(n log n)
Correct answer
-
D
Θ(n²)
-
A
Selection sort
-
B
Heap sort
-
C
Merge sort
Correct answer
-
D
Quick sort
-
A
Hash set
-
B
Heap
-
C
Stack
-
D
Queue
Correct answer
-
A
192.169.0.0/16
-
B
192.168.0.0/16
Correct answer
-
C
172.32.0.0/16
-
D
11.0.0.0/8
-
A
With a three-way handshake: SYN, SYN-ACK, ACK
Correct answer
-
B
With a four-way FIN and ACK exchange
-
C
With a single SYN packet sent by the client
-
D
With a two-way exchange: SYN and then ACK
-
A
110
-
B
53
Correct answer
-
C
25
-
D
80
-
A
DHCP
Correct answer
-
B
SMTP
-
C
DNS
-
D
ARP
-
A
Recently used instructions and their data
-
B
The entire page table of every process
-
C
Pending disk blocks waiting to be written
-
D
Recent virtual-to-physical page translations
Correct answer
-
A
19 ns
-
B
100 ns
-
C
20 ns
Correct answer
-
D
11 ns
-
A
2NF
Correct answer
-
B
BCNF
-
C
3NF
-
D
1NF
-
A
Selection (σ)
-
B
Join (⋈)
-
C
Projection (π)
Correct answer
-
D
Union (∪)
-
A
Fail if any child rows still reference it
-
B
Leave the child rows completely unchanged
-
C
Set the child foreign keys to NULL values
-
D
Automatically delete the matching child rows
Correct answer
-
A
RELEASE
-
B
ROLLBACK
Correct answer
-
C
RESTORE
-
D
REVOKE
-
A
A combination of all table columns
-
B
Any column that has no NULL values
-
C
A key borrowed from another table
-
D
A minimal super key
Correct answer
-
A
The CPU to read registers without using the system bus
-
B
The operating system to skip interrupts during I/O
-
C
Programs to access memory without any address translation
-
D
Devices to move data to memory without the CPU
Correct answer
-
A
Variable-length instructions decoded by microcode
-
B
Simple, fixed-length instructions and load/store access
Correct answer
-
C
Very few registers and many addressing modes
-
D
Complex instructions that work directly on memory
-
A
Data near a recent access is likely to be needed
-
B
Older data should always be evicted first
-
C
Recently used data is likely to be used again soon
Correct answer
-
D
Data is spread evenly across all memory banks
-
A
Variable-size contiguous partitions
-
B
Pure segmentation of memory
-
C
Fixed-size partitions or pages
Correct answer
-
D
Periodic memory compaction