PCEP-30-02 Practice Test

Review 481 PCEP-30-02 practice questions with answer explanations and community insights.

Question 1

Insert the correct snippet so that the program produces the expected output. Expected output: Code:

  1. b = 0 not in list
  2. b = list[0]
  3. b = 0 in list
  4. b = False

Question 2

Assuming that the tuple is a correctly created tuple, the fact that tuples are immutable means that the following instruction:

  1. is illegal
  2. may be illegal if the tuple contains strings
  3. can be executed if and only if the tuple contains at least two elements
  4. is fully correct

Question 3

What is the expected output of the following code?

  1. 2
  2. 4
  3. 5
  4. 3

Question 4

What is the expected output of the following code?

  1. [1, 3]
  2. [1, 4]
  3. [4, 3]
  4. [1, 3, 4]

Question 5

What is the expected output of the following code?

  1. ['Peter', 404, 3.03, 'Wellert', 33.3]
  2. None of the above.
  3. [404, 3.03]
  4. ['Peter', 'Wellert']