Introduction to Computing MCQs with Answers
Practice important Introduction to Computing MCQs with answers and explanations.
Multiple Choice Questions
Q1771: Fill in the blank: The condition i <= 5 in the while loop checks whether i ______.
- A: Is less than or equal to 5
- B: Is greater than 5
- C: Is equal to 5
- D: Is less than 6
View Answer
A
Q1772: What will be the value of i when the loop terminates?
- A: 5
- B: 6
- C: 7
- D: 0
View Answer
B
Q1773: How many print statements are executed in the while loop?
- A: 4
- B: 5
- C: 6
- D: 7
View Answer
B
Q1774: What is the purpose of the while loop in the given example?
- A: To print numbers from 1 to 5
- B: To initialize i
- C: To reset i
- D: To perform arithmetic operations
View Answer
A
Q1775: Fill in the blank: The statement cout << i; inside the while loop ______.
- A: Displays the value of i to the screen
- B: Increments the value of i
- C: Checks if i is less than 5
- D: Initializes i
View Answer
A
Q1776: What happens when i becomes 6 in the while loop?
- A: The loop continues to execute
- B: The loop terminates
- C: The loop restarts
- D: The value of i is reset to 1
View Answer
B
Q1777: What is the approach of creating multiple activations of a single program to achieve the illusion of multiple spaceships called?
- A: Sequential processing
- B: Parallel processing
- C: Single-threaded processing
- D: Multi-core processing
View Answer
B
Q1778: In which programming language is simultaneous actions performed by creating multiple tasks?
- A: Java
- B: Ada
- C: C++
- D: Python
View Answer
B
Q1779: What does parallel processing require for true parallelism?
- A: A single CPU
- B: Multiple CPU cores
- C: A multi-core processor
- D: A single thread
View Answer
B
Q1780: What is the term used in Java for simultaneous actions similar to tasks in Ada?
- A: Thread
- B: Task
- C: Process
- D: Function
View Answer
A