hardMultiple ChoiceObjective-mapped
FC0-U71 Practice Question: The output of the pseudocode in the exhibit?
Exhibit
Refer to the exhibit.
num = 1
while num < 5:
num = num + 1
print(num)What is the output of the pseudocode in the exhibit?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
5
The loop increments num from 1 until num is no longer less than 5, so it stops when num is 5, which is printed.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
4
Why it's wrong here
The loop runs while num < 5; when num becomes 5, the condition fails, so 5 is printed.
- ✗
6
Why it's wrong here
The loop condition is num < 5, so num never becomes 6 before exit.
- ✓
5
Why this is correct
num starts at 1, increments to 5, then exits and prints 5.
- ✗
1
Why it's wrong here
The loop runs and increments num, so output cannot be 1.
Go deeper
Related to this question
About these practice questions
Courseiva writes every FC0-U71 question from scratch — 988 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This FC0-U71 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the FC0-U71 exam.