What is the expected output of the following code? x = 1 + 1 // 2 + 1 / 2 + 2 print(x)
- A. 3
- B. 4.0
- C. 4
- D. 3.5
PCEP – Certified Entry-Level Python Programmer (PCEP-30-02) is a entry-level Python Institute certification exam. The blueprint splits the exam across 5 domains, starting with Python Basics, Control Flow, Functions. On exam day you face around 30 questions in 45 minutes, in formats such as multiple-choice. The 15 questions below are free samples written to match that style: answer each one first, then reveal the correct answer and note which topics you miss. The PCEP-30-02 is rated easy in difficulty. Because every answer is revealed in place, you can work through the whole set without leaving this page. Work through all 15 samples before deciding whether to buy the full 47+ question PDF.
Looking for more? Click here to get the full PDF with 47+ practice questions for $10 for offline study and deeper preparation.
What is the expected output of the following code? x = 1 + 1 // 2 + 1 / 2 + 2 print(x)
The result of the following addition: 123 + 0.0
The fact that tuples belong to sequence types means:
What is the expected output of the following code? print(2 ** 3 ** 2 ** 1)
The following statement ... assert x == 0
A variable defined outside a function:
What is the expected output of the following code? print(chr(ord('z') - 2))
What is the expected output of the following code? print('x', 'y', 'z', sep='sep')
If you want to build a string that reads: Peter's sister's name's "Anna" Which of the following literals would you use? (Choose two.)
What is the expected output of the following code? print(1 // 2 * 3)
What is the expected output of the following code? menu = {“bunuelo”: 3.21, “torrijas”: 4.99, “churros”: 1.99} for value in menu.values(): print (str(value) [1], end “”)
A data structure described as LIFO is actually a:
Which of the following function calls can be used to invoke the below function definition? (Choose three.) def test(a, b, c, d):
What is the expected output of the following code? x = 1 / 2 + 3 // 3 + 4 ** 2 print(x)
The following code: print(float("1, 3"))
No. They are original practice questions written to match the format and topic mix of the PCEP – Certified Entry-Level Python Programmer exam, which contains around 30 questions. Treat them as representative practice, not leaked exam content.
This page includes 15 questions, each with its correct answer you can reveal in place. The full study PDF expands that to 47+ questions.
Yes. Open the answer panel under each question to see which option is correct. Answer first, then reveal, so the set works as a self-check rather than a reading exercise.
Not on its own. Use the samples to find weak topics, revise them against the official domains, then work through the full 47+ question set under timed conditions before booking the exam.
Download the complete PCEP-30-02 study bundle with 47+ questions in a single printable PDF.
Start typing to search exams
Access practice tests for AWS, Microsoft, Cisco and more.