179 practice MCQs on Computer Science for IT Jobs tests. Think of your answer first, then open "Show answer and explanation". These are practice questions, not official examination papers.
Q151. Which command in Windows lists files in a directory?
show
ls
dir
list
Show answer and explanation
Correct answer: C. dir
dir lists directory contents in Windows CMD.
Q152. What is the time complexity of binary search?
O(1)
O(n^2)
O(log n)
O(n)
Show answer and explanation
Correct answer: C. O(log n)
Binary search halves the range each step.
Q153. Which of the following is a relational database?
Neo4j
MySQL
Redis
MongoDB
Show answer and explanation
Correct answer: B. MySQL
MySQL is relational.
Q154. Which SQL JOIN returns only matching rows from both tables?
CROSS JOIN
INNER JOIN
LEFT JOIN
FULL JOIN
Show answer and explanation
Correct answer: B. INNER JOIN
INNER JOIN returns matches.
Q155. Which unit is used to measure CPU clock speed?
Hertz (GHz)
Watt
Pixel
Byte
Show answer and explanation
Correct answer: A. Hertz (GHz)
Clock speed is measured in hertz.
Q156. What does FTP stand for?
File Transport Process
Fast Transfer Protocol
File Transfer Protocol
File Transmission Program
Show answer and explanation
Correct answer: C. File Transfer Protocol
FTP transfers files.
Q157. What is a primary key?
A unique identifier for each record
A null value
A duplicate value
A foreign column
Show answer and explanation
Correct answer: A. A unique identifier for each record
A primary key uniquely identifies a row.
Q158. Which generation of computers used integrated circuits?
First generation
Fifth generation
Second generation
Third generation
Show answer and explanation
Correct answer: D. Third generation
Third generation used ICs.
Q159. What does CSS stand for?
Creative Style System
Computer Style Sheets
Cascading Style Sheets
Cascading Script Sheets
Show answer and explanation
Correct answer: C. Cascading Style Sheets
CSS styles web pages.
Q160. Which command in Linux lists files in a directory?