- Home
- MCQs by exam
- GATE CS
- Computer Science MCQs
GATE CS MCQs – Computer Science MCQs
102 multiple choice questions typical of the GATE CS exam, with answers and explanations. Switch on practice mode to test yourself first.
-
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
Variable-size contiguous partitions
-
B
Pure segmentation of memory
-
C
Fixed-size partitions or pages
Correct answer
-
D
Periodic memory compaction
-
A
Nothing; each thread has private memory
-
B
Their individual call stacks
-
C
Program counter and registers
-
D
Code, data and heap memory
Correct answer
-
A
Binary semaphore
Correct answer
-
B
Counting semaphore
-
C
Monitor
-
D
Condition variable
-
A
The disk scheduler serves requests in random order
-
B
Two processes wait forever for each other's resources
-
C
The system spends more time paging than executing
Correct answer
-
D
The CPU overheats and lowers its clock speed
-
A
First-Come, First-Served
-
B
Shortest Job First
Correct answer
-
C
Round Robin
-
D
Priority with aging
-
A
About 6.2 MB
Correct answer
-
B
About 18.7 MB
-
C
About 2.1 MB
-
D
About 49.8 MB
-
A
Weiler–Atherton
-
B
Sutherland–Hodgman
-
C
Cohen–Sutherland
Correct answer
-
D
Liang–Barsky
-
A
2 × 2
-
B
3 × 3
Correct answer
-
C
2 × 3
-
D
4 × 4
-
A
RGB
-
B
HSV
-
C
YUV
-
D
CMYK
Correct answer
-
A
Fill polygons with gradient colours
-
B
Compress images for faster display
-
C
Draw lines using only integer arithmetic
Correct answer
-
D
Remove hidden surfaces in 3D scenes
-
A
f(n) = g(n) − h(n)
-
B
f(n) = g(n) only
-
C
f(n) = h(n) only
-
D
f(n) = g(n) + h(n)
Correct answer
-
A
Switch
Correct answer
-
B
Router
-
C
Repeater
-
D
Hub
-
A
ICMP
-
B
DHCP
-
C
DNS
-
D
ARP
Correct answer
-
A
30
-
B
64
-
C
126
-
D
62
Correct answer