Showing 1–10 of 271 questions
What is the purpose of a load balancer?
A
To store data
B
To distribute incoming traffic across multiple servers
C
To encrypt data
D
To compile code
Correct Answer:
B. To distribute incoming traffic across multiple servers
EXPLANATION
A load balancer distributes network traffic across multiple servers to improve reliability and responsiveness.
What is the time complexity of finding the median in a sorted array?
A
O(1)
B
O(log n)
C
O(n)
D
O(n log n)
EXPLANATION
In a sorted array, median is at index n/2, which is accessed in constant time O(1).
What is the result of 1 XOR 1?
EXPLANATION
XOR (exclusive OR) returns 1 only when bits are different. 1 XOR 1 = 0 because both bits are the same.
In a BFS (Breadth-First Search), what data structure is used?
A
Stack
B
Queue
C
Priority Queue
D
Deque
EXPLANATION
BFS uses a Queue (FIFO) to explore nodes level by level. DFS uses a Stack (LIFO).
What does the prefix 'un-' typically mean in English?
A
Before
B
Not or opposite of
C
Above
D
With
Correct Answer:
B. Not or opposite of
EXPLANATION
'Un-' is a prefix meaning 'not' or the opposite of something (unhappy = not happy).
Fill in the blank: The _____ of the novel was unexpected and thrilling.
A
climax
B
climate
C
climb
D
clamor
Correct Answer:
A. climax
EXPLANATION
'Climax' is the turning point or the most exciting part of a story. 'Climate' refers to weather patterns.
How many times does the letter 'e' appear in the word 'independence'?
EXPLANATION
i-n-d-e-p-e-n-d-e-n-c-e. The letter 'e' appears at positions 4, 6, 9, and 12 = 4 times
What does 'Ephemeral' mean?
A
Lasting for a short time
B
Permanent and eternal
C
Difficult to understand
D
Extremely beautiful
Correct Answer:
A. Lasting for a short time
EXPLANATION
Ephemeral means lasting for a very short time; transitory.
Find the odd one out: 121, 144, 169, 196, 215
EXPLANATION
121=11², 144=12², 169=13², 196=14² are perfect squares. 215 is not a perfect square.
Which word is the odd one out? Metaphor, Simile, Irony, Noun
A
Noun
B
Metaphor
C
Simile
D
Irony
EXPLANATION
Metaphor, Simile, and Irony are all figures of speech. Noun is a part of speech (grammatical category), making it the odd one.