
Python InstitutePCEP - Certified Entry-Level Python Programmer
Domain 2Objective 1
PCEP-30-02 2.1 Make Decisions and Branch the Flow with the If Instruction PCEP-30 Practice Questions (Page 2)
Part of the Control Flow Conditional Blocks and Loops domain, which accounts for 29% of the PCEP-30 exam. Python Institute does not publish an official question count, but from its 45-minute exam (~20–30 total, ~6–9 in this domain), expect 3–5 from this objective — we provide 8 practice questions to prepare you well beyond it. (estimate)
8questions here
2free pages
6concepts
29%of the exam
Questions 6–8
- 6
What is the output of the following code? ```python value = 7 if value < 0: print('negative') elif value == 0: print('zero') elif value > 0: print('positive') else: print('unknown') ```
Select an answer first - 7
What is the output of the following code? ```python temp = 25 if temp > 30: print('Hot') else: print('Cool') ```
Select an answer first - 8
A login system first checks if a user exists. If the user exists, it then checks if the password is correct. If the user does not exist, it prints 'User not found'. Which code correctly implements this two-level check?
Select an answer first
Finished these 3 questions?
Review the revealed explanations, or continue through the curriculum.
No more pagesBack to PCEP-30
Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by Python Institute. “PCEP-30” is a trademark of its owner, used for identification only.