Core Subject Quiz - Competitive Exams GATE
Free practice quiz: Core Subject (Competitive Exams GATE). 69 multiple-choice questions with answers and explanations. Play online, no sign-up needed.
Play all 69 questions freeSample questions
What is the worst-case time complexity of binary search on a sorted array of n elements?
- O(1)
- O(n log n)
- O(n)
- O(log n)
Show answer
Answer: D. O(log n)
In computer architecture, what is the primary function of the Translation Lookaside Buffer (TLB)?
- Cache for instructions
- Cache for data
- Cache for disk blocks
- Cache for page table entries
Show answer
Answer: D. Cache for page table entries
In TCP congestion control, which phase follows the slow start phase when the congestion window reaches the threshold?
- Congestion avoidance
- Timeout
- Slow start restart
- Fast retransmit
Show answer
Answer: A. Congestion avoidance
In SQL, which of the following is used to retrieve unique values from a column?
- DIFFERENT
- ONLY
- UNIQUE
- DISTINCT
Show answer
Answer: D. DISTINCT
In compiler design, which of the following is the primary function of the lexical analyzer?
- To generate machine code
- To optimize the intermediate code
- To convert the source code into a sequence of tokens
- To check for semantic errors
Show answer
Answer: C. To convert the source code into a sequence of tokens