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.
Q101. What is the worst-case time complexity of bubble sort?
O(n log n)
O(log n)
O(n^2)
O(n)
Show answer and explanation
Correct answer: C. O(n^2)
Bubble sort compares adjacent pairs repeatedly.
Q102. Who developed the C programming language?
Bjarne Stroustrup
Dennis Ritchie
James Gosling
Guido van Rossum
Show answer and explanation
Correct answer: B. Dennis Ritchie
Ritchie created C at Bell Labs.
Q103. Which extension is used for compressed archives?
.mp3
.zip
.docx
.png
Show answer and explanation
Correct answer: B. .zip
.zip compresses files.
Q104. What is the unique hardware address of a network interface called?
URL
MAC address
DNS
IP address
Show answer and explanation
Correct answer: B. MAC address
MAC addresses identify NICs.
Q105. What does the 'main()' function represent in C?
A comment
The entry point of the program
A header file
A variable
Show answer and explanation
Correct answer: B. The entry point of the program
Execution starts at main().
Q106. What does URL stand for?
Universal Resource Link
Uniform Resource Locator
Uniform Reference Locator
Universal Resource Locator
Show answer and explanation
Correct answer: B. Uniform Resource Locator
A URL is a web address.
Q107. Which command is used to remove files in Linux?
del
remove
erase
rm
Show answer and explanation
Correct answer: D. rm
rm deletes files.
Q108. Which SQL command removes rows?
DROP
REMOVE
CLEAR
DELETE
Show answer and explanation
Correct answer: D. DELETE
DELETE removes rows from a table.
Q109. What is the time complexity of linear search?