MCQ Practice Hub

Programming MCQs

Q21. What is used to store multiple values in a single variable in Python?

Show Answer

Correct: list

A list can store multiple values.

Q22. Which symbol is used to end a statement in C?

Show Answer

Correct: ;

C statements end with a semicolon.

Q23. What does IDE stand for?

Show Answer

Correct: Integrated Development Environment

IDE stands for Integrated Development Environment.

Q24. Which keyword is used to create a class in Java?

Show Answer

Correct: class

class keyword is used in Java.

Q25. Which loop checks condition before execution?

Show Answer

Correct: while

while loop checks condition before executing.

Q26. Which of these is a relational operator?

Show Answer

Correct: >

> is a relational operator.

Q27. What is the output device?

Show Answer

Correct: Monitor

Monitor is an output device.

Q28. Which keyword stops a loop in most languages?

Show Answer

Correct: break

break stops loop execution.

Q29. Which language is platform independent?

Show Answer

Correct: Java

Java is platform independent due to JVM.

Q30. Which data structure follows FIFO?

Show Answer

Correct: Queue

Queue follows First In First Out.

⬅ Previous

Page 3 of 3