CompTIA
FC0-U71 · Question #103
Given the following pseudocode: 10 FOR Q=1 TO 100 20 PRINT Q 30 NEXT Q 40 EXIT Which of the following best represents line 10?
The correct answer is D. Loop. Line 10 (FOR Q=1 TO 100) initializes a loop that iterates from 1 to 100.
Software Development Concepts
Question
Given the following pseudocode:
10 FOR Q=1 TO 100 20 PRINT Q 30 NEXT Q 40 EXIT Which of the following best represents line 10?
Options
- AAttribute
- BSequence
- CBranch
- DLoop
How the community answered
(52 responses)- A6% (3)
- B2% (1)
- C2% (1)
- D90% (47)
Explanation
Line 10 (FOR Q=1 TO 100) initializes a loop that iterates from 1 to 100.
Topics
#Loops#Control Structures#Pseudocode#Programming Fundamentals
Community Discussion
No community discussion yet for this question.