PCEP-30-02 Practice Test

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

Question 91

An operator able to check whether two values are not equal is coded as:

  1. <>
  2. !=
  3. =/=
  4. not ==

Question 92

The result of the following addition: 123 + 0.0

  1. cannot be evaluated
  2. is equal to 123
  3. is equal to 123.0

Question 93

What will be the output of the following code snippet? print(3 / 5)

  1. None of the above.
  2. 0
  3. 0.6
  4. 6/10

Question 94

What will be the output of the following code snippet?

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

Question 95

What is the expected output of the following code? x = 1 / 2 + 3 // 3 + 4 ** 2 print(x)

  1. 17
  2. 17.5
  3. 8.5
  4. 8