MCQ Practice Hub

Programming MCQs

Q11. What does CPU stand for?

Show Answer

Correct: Central Processing Unit

CPU stands for Central Processing Unit.

Q12. Which language is mainly used for web page styling?

Show Answer

Correct: CSS

CSS is used to style web pages.

Q13. What symbol is used for single-line comments in C++?

Show Answer

Correct: //

Single-line comments in C++ use //.

Q14. Which of these is a loop structure?

Show Answer

Correct: for

for is a loop used for repeated execution.

Q15. What does RAM stand for?

Show Answer

Correct: Random Access Memory

RAM stands for Random Access Memory.

Q16. Which keyword is used to define a function in Python?

Show Answer

Correct: def

def is used to define a function in Python.

Q17. Which data type stores true or false values?

Show Answer

Correct: boolean

Boolean stores true or false values.

Q18. What is the file extension of a Python program?

Show Answer

Correct: .py

Python files use the .py extension.

Q19. Which operator is used for equality comparison?

Show Answer

Correct: ==

== is used to compare two values.

Q20. Which of these is not a programming language?

Show Answer

Correct: Windows

Windows is an operating system, not a programming language.

⬅ Previous Next ➡

Page 2 of 3