Free PCEP-30-02 Exam Braindumps (page: 31)

Page 30 of 99

Which expression evaluates to 7?

  1. 9 % 3 + 7
  2. 9 - 3 * 7
  3. 9 // 3 - 7
  4. 9 / 3 * 7

Answer(s): A



The // operator:

  1. performs integer division
  2. performs regular division
  3. does not exist

Answer(s): A



Which of the following statements are correct? (Choose two.)

  1. 7 + False evaluates to False
  2. True or False evaluates to True
  3. True + 1 evaluates to 2
  4. True and False evaluates to True
  5. type('') returns <class 'bool'>

Answer(s): B,C



What is the output of the following snippet?

  1. 25.0
  2. The snippet will cause an execution error.
  3. 17.0
  4. 17

Answer(s): C






Post your Comments and Discuss Python Institute PCEP-30-02 exam with other Community members:

PCEP-30-02 Discussions & Posts