Practice Free PCEP-30-02 Exam Online Questions
What is the expected output of the following code?
marks = [80, 70, 90, 90, 80, 100]
average = sum(marks) // len(marks)
grade = ”

- A . A
- B . C
- C . The code is erroneous.
- D . D
- E . B
- F . F
DRAG DROP
Drag and drop the keywords in order to build a program which prints Failed to the screen. (Note: one keyword box will not be used.)


How many arguments can the print() function take?
- A . Any number of arguments (excluding zero).
- B . Not more than seven arguments.
- C . Any number of arguments (including zero).
- D . Just one argument.
Select the true statements: (Choose two.)
- A . You can use keywords as variable names in Python
- B . You can use keywords as function names in Python
- C . You cannot use keywords as variable names in Python
- D . You cannot use keywords as function names in Python
Which function does in-place reversal of objects in a list?
- A . list.sort([func])
- B . list.pop(obj=list[-1])
- C . list.remove(obj)
- D . list.reverse()
Which of the following snippets shows the correct way of handling multiple exceptions in a single except clause?
A )
![]()
B )
![]()
C )
![]()
D )
![]()
E )
![]()
F )
![]()
- A . Option A
- B . Option B
- C . Option C
- D . Option D
- E . Option E
- F . Option F
What will be the output of the following code snippet?

- A . 1
- B . 4
- C . 2
- D . 3
- E . None
What is the expected output of the following code?

- A . 9
- B . The program will cause an error.
- C . True
- D . 27
- E . 3
Which of the following code snippets will print True to the monitor? (Choose two.)
A )
![]()
B )

C )

D )
![]()
E )

- A . Option A
- B . Option B
- C . Option C
- D . Option D
- E . Option E
The value thirty point eleven times ten raised to the power of nine should be written as:
- A . 30.11E9.0
- B . 30E11.9
- C . 30.11*10^9
- D . 30.11E9
