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

Page 51 of 99

What is the default return value for a function that does not explicitly return any value?

  1. void
  2. Null
  3. public
  4. None
  5. int

Answer(s): D



A function definition starts with the keyword:

  1. fun
  2. def
  3. function

Answer(s): B



The function body is missing.
What snippet would you insert in the line indicated below:

  1. print('number')
  2. return 'number'
  3. print(number)
  4. return number

Answer(s): D



What is the expected output of the following code?

  1. ****
  2. The code is erroneous.
  3. **
  4. *

Answer(s): A






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

PCEP-30-02 Exam Discussions & Posts