Practice Free PCEP-30-02 Exam Online Questions
Question #41
What is the expected output of the following code?

- A . 4
- B . The code is erroneous.
- C . 2
- D . 16
Correct Answer: D
Question #42
The compiled Python bytecode is stored in les having names ending with:
- A . py
- B . pyb
- C . pyc
- D . pc
Correct Answer: C
Question #43
UTF 8 is …
- A . the 9th version of the UTF Standard.
- B . a synonym for "byte".
- C . a Python version name.
- D . an encoding form of the Unicode Standard.
Correct Answer: D
Question #44
What is the output of the following snippet?
![]()
- A . 25.0
- B . The snippet will cause an execution error.
- C . 17.0
- D . 17
Correct Answer: C
Question #45
What value will be assigned to the x variable?

- A . False
- B . 0
- C . 1
- D . True
Correct Answer: A
Question #46
You want to print the sum of two number.
What snippet would you insert in the line indicated below:

- A . print(‘The Result is ‘ + (int(x) + int(y)))
- B . print(‘The Result is ‘ + (int(x + y)))
- C . print(‘The Result is ‘ + str(int(x + y)))
- D . print(‘The Result is ‘ + str(int(x) + int(y)))
Correct Answer: D
Question #47
What do you call a le containing a program written in a high-level programming language?
- A . A code le
- B . A target le
- C . A machine le
- D . A source le
Correct Answer: D
Question #48
What is the expected behavior of the following snippet?

It will:
- A . cause a runtime exception on Line 9
- B . cause a runtime exception on Line 8
- C . print 6
- D . print 4
- E . print 8
Correct Answer: E
Question #49
What is the expected output of the following code?
![]()
- A . 0
- B . 1
- C . The code is erroneous.
- D . 2
Correct Answer: B
Question #50
Which of the following is the output of the below Python code?
![]()
- A . Hello World
- B . dlroWolleH
- C . World
- D . Hello
Correct Answer: B
