PCEP-30-02 Practice Test

PCEP-30-02 Practice Test practice questions, page 8 of 20, with answer review and explanations.

Question 36

What is the expected output of the following code?

  1. ('Peter', 'Peter',)
  2. PeterPeter
  3. The code is erroneous.
  4. ('Peter')
  5. ()

Question 37

What is the expected output of the following code?

  1. The program will cause an error.
  2. (1, 4, 9)
  3. ('A', 'D', 'Z')
  4. (5.0, 7.5, 9.9)

Question 38

What is the expected output of the following code?

  1. The code is erroneous.
  2. 1
  3. 0
  4. None

Question 39

What is the expected output of the following code?

  1. 22
  2. 12
  3. 0
  4. 11

Question 40

What is the expected output of the following code?

  1. (2, 1, 1)
  2. (1, 1, 1)
  3. (2, 2, 2)
  4. The code is erroneous.