
Python InstitutePCEP - Certified Entry-Level Python Programmer
Domain 1Objective 3
PCEP-30-02 1.3 Introduce Literals and Variables into Code and Use Different Numeral Systems PCEP-30 Practice Questions (Page 1)
Part of the Computer Programming and Python Fundamentals domain, which accounts for 18% of the PCEP-30 exam. Python Institute does not publish an official question count, but from its 45-minute exam (~20–30 total, ~4–5 in this domain), expect 1–1 from this objective — we provide 29 practice questions to prepare you well beyond it. (estimate)
29questions here
6free pages
13concepts
18%of the exam
Questions 1–5
- 1
A developer is debugging a color-mixing application. They have two variables: `red = 0xFF0000` and `blue = 0x0000FF`. They need to combine these to create purple by using a bitwise OR operation: `purple = red | blue`. What is the decimal value of `purple`?
Select an answer first - 2
What is the type of the variable y after the following code executes? y = 3.14
Select an answer first - 3
What is the decimal value of the binary literal 0b1010?
Select an answer first - 4
A system administrator is setting Unix file permissions. They need to assign a variable `permissions` the octal value 755, which represents rwxr-xr-x. Which line of code correctly assigns this value?
Select an answer first - 5
What is the value of the decimal literal 42 in Python?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
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.