Python Institute PCEP - Certified Entry-Level Python Programmer - PCEP-30-02 模擬練習

Arrange the code boxes in the correct positions to form a conditional instruction which guarantees that a certain statement is executed when the temperature variable is equal to 0. 0.
正解:
if temperature == 0.0:
Explanation:
* if
* temperature
* ==
* 0.0
* :
Arrange the boxes in this order:
This checks if temperature is exactly 0.0, and if so, runs the code inside the if block.
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.)
正解:

Which of the following sentences are true? (Select two answers.)

正解: A,B
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.)
正解:

What happens when the user runs the following code?

正解: B
解説: (PassTest メンバーにのみ表示されます)