- Home
- Python Institute Certification
- PCEP-30-02 Exam
- Python-Institute.PCEP-30-02.dumpsfiles Dumps
Free Python Institute PCEP-30-02 Exam Dumps Questions & Answers
| Exam Code/Number: | PCEP-30-02Join the discussion |
| Exam Name: | PCEP - Certified Entry-Level Python Programmer |
| Certification: | Python Institute |
| Question Number: | 44 |
| Publish Date: | May 30, 2026 |
|
Rating
100%
|
|
Page: 1 / 9
Total 44 questions
Total 44 questions
Insert the code boxes in the correct positions in order to build a line of code which asks the user for an integer value and assigns it to the depth variable.
(Note: some code boxes will not be used.)
Correct Answer:

Explanation:

One possible way to insert the code boxes in the correct positions in order to build a line of code which asks the user for an integer value and assigns it to the depth variable is:
depth = int(input("Enter the immersion depth: "))
This line of code uses the input function to prompt the user for a string value, and then uses the int function to convert that string value into an integer number. The result is then assigned to the variable depth.
You can find more information about the input and int functions in Python in the following references:
* [Python input() Function]
* [Python int() Function]
What is the expected output of the following code?
Correct Answer: D
Explanation: (Only visible for DumpsFiles members)
Which of the following expressions evaluate to a non-zero result? (Select two answers.)
Correct Answer: A,D
Explanation: (Only visible for DumpsFiles members)
Drag and drop the conditional expressions to obtain a code which outputs * to the screen.
(Note: some code boxes will not be used.)
Correct Answer:

Explanation:

One possible way to drag and drop the conditional expressions to obtain a code which outputs * to the screen is:
if pool > 0:
print("*")
elif pool < 0:
print("**")
else:
print("***")
This code uses the if, elif, and else keywords to create a conditional statement that checks the value of the variable pool. Depending on whether the value is greater than, less than, or equal to zero, the code will print a different pattern of asterisks to the screen. The print function is used to display the output. The code is indented to show the blocks of code that belong to each condition. The code will output * if the value of pool is positive, ** if the value of pool is negative, and *** if the value of pool is zero.
You can find more information about the conditional statements and the print function in Python in the following references:
* [Python If ... Else]
* [Python Print Function]
* [Python Basic Syntax]
Insert the code boxes in the correct positions in order to build a line of code which asks the user for an Integer value and assigns it to the counter variable.
(Note: some code boxes will not be used.)
Correct Answer:


Add Comments
[×]
Download PDF File
Enter your email address to download Python-Institute.PCEP-30-02.dumpsfiles Dumps