PCEP-30 Boxes Practice Questions
The free PCEP-30-02: PCEP – Certified Entry-Level Python Programmer questions that deal with boxes, with answers and explanations. The full bank and the timed practice test cover every topic the exam asks about.
Question #1
Drag and drop the code boxes in order to build a program which prints Unavailable to the screen. (Note: one code box will not be used.)

Match each item to its target.
Correct answer: 1 = except KeyError:; 2 = except:

Question #4
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.)

Match each item to its target.
Correct answer: depth = int( input( "Enter immersion depth:" ) )

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]
Question #9
Arrange the code boxes in the correct positions in order to obtain a loop which executes its body with the level variable going through values 5, 1, and 1 (in the same order).

Type your answer, then reveal.
Correct answer: for level in range ( 5, 0, -2 )

Continue with PCEP-30-02: PCEP – Certified Entry-Level Python Programmer
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in PCEP-30-02: PCEP – Certified Entry-Level Python Programmer, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
All PCEP-30-02: PCEP – Certified Entry-Level Python Programmer practice questions →
