Practice Free PCEP-30-02 Exam Online Questions
Select the true statement:
- A . You cannot use a mix of positional and keyword argument passing.
- B . The order of arguments passed does matter in keyword argument passing.
- C . The order of arguments passed does not matter in positional argument passing.
- D . Keyword arguments cannot be followed by positional arguments.
A keyword is a word: (Choose two.)
- A . that cannot be used as a variable name
- B . that cannot be used as a function name
- C . is the most important word in the whole program
DRAG DROP
Drag and drop the conditional expressions to obtain a code which outputs to the screen. (Note: some code boxes will not be used.)


What is the expected output of the following code?
![]()
- A . 2
- B . 4
- C . 3
- D . 5
Which one of the following is an example of a Python le extension?
- A . pi
- B . py
- C . p
What is the expected output of the following code?

A )

B )

C )

D ) The code is erroneous.
- A . Option A
- B . Option B
- C . Option C
- D . Option D
How many stars will the following code print to the monitor?

- A . nine
- B . zero
- C . three
- D . six
A function de fi nition:
- A . cannot be placed among other code
- B . may be placed anywhere inside the code after the fi rst invocation
- C . must be placed before the fi rst invocation
The operator …
- A . does not exist.
- B . performs fl oating-point multiplication.
- C . performs duplicated multiplication.
- D . performs exponentiation.
DRAG DROP
Arrange the code boxes in the correct positions to form a conditional instruction which guarantees that a certain statement is executed when the speed variable is less than 50.0.

Explanation:
One possible way to arrange the code boxes in the correct positions to form a conditional instruction which guarantees that a certain statement is executed when the speed variable is less than 50.0 is:
if speed < 50.0:
print("The speed is low.")
This code uses the if keyword to create a conditional statement that checks the value of the variable speed. If the value is less than 50.0, then the code will print “The speed is low.” to the screen. The print function is used to display the output. The code is indented to show the block of code that belongs to the if condition.
You can find more information about the if statement and the print function in Python in the following references:
Python If … Else
Python Print Function
