Practice Free PCEP-30-02 Exam Online Questions
Question #111
What is the expected output of the following code?
print (1 // 2 * 3)
- A . 4.5
- B . 0.16666666666666666
- C . 0.0
- D . 0
Correct Answer: D
Question #112
How many stars will the following code print to the monitor?

- A . two
- B . one
- C . The snippet will enter an in fi nite loop.
- D . zero
Correct Answer: C
Question #113
What is the output of the following code?

- A . The output cannot be predicted.
- B . 2
- C . The program will cause an error.
- D . 1
Correct Answer: B
Question #114
Insert the correct snippet to convert the t tuple to a dictionary named d.
Expected output:
![]()
Code:

- A . t >> d.dict
- B . d = dict(t)
- C . d.dict(t)
- D . d = t(dict)
Correct Answer: B
Question #115
Question #116
What is the expected output of the following code?
![]()
- A . The code is erroneous.
- B . 1
- C . 0
- D . None
Correct Answer: A
Question #117
What is the expected output of the following code?

- A . [7, 3, 23, 42]
- B . [7, 20, 23, 42]
- C . [10, 20, 42]
- D . [10, 20, 23, 42]
Correct Answer: B
Question #118
A function parameter is a kind of variable accessible:
- A . only after the function de fi nition’s completion
- B . anywhere in the code
- C . only inside the function
Correct Answer: C
Question #119
What is the expected output of the following snippet?

- A . PYTHON
- B . Python
- C . The code is erroneous.
- D . PYTHON
- E . python
- F . P y t h o n
Correct Answer: E
Question #120
What is the expected output of the following code?
x = 4.5
y = 2
print (x // y)
- A . 2.5
- B . 2
- C . 2.25
- D . 2.0
Correct Answer: D

