PCEP-30-02 Practice Test

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

Question 21

What is the expected output of the following code?

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

Question 22

A data structure described as LIFO is actually a:

  1. stack
  2. tree
  3. list
  4. heap

Question 23

How would you remove all the items from the d dictionary? Expected output: Code:

  1. d.del()
  2. d.remove()
  3. del d
  4. d.clear()

Question 24

What is the expected output of the following code?

  1. three
  2. ('one', 'two', 'three')
  3. two
  4. one

Question 25

What is the expected output of the following code?

  1. False
  2. 1
  3. 0
  4. True