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

Page 29 of 99

What is the expected output of the following code?
print('Mike' > 'Mikey')

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

Answer(s): A



Which of the following is the correct order of operator precedence?

  1. Exponents
    Unary positive, negative, not
    Parentheses
    Multiplication and Division
    Addition and Subtraction
    And
  2. Parentheses
    Exponents
    Unary positive, negative, not
    Addition and Subtraction
    Multiplication and Division
    And
  3. Parentheses
    Exponents
    Unary positive, negative, not
    Multiplication and Division
    Addition and Subtraction
    And
  4. Exponents
    Unary positive, negative, not
    Multiplication and Division
    Addition and Subtraction
    And
    Parentheses

Answer(s): C



What is the result of the following operation?

  1. 2.0
  2. 11.0
  3. The operation is illegal in Python
  4. 2

Answer(s): A



Consider the following code.


Which statement will print True to the monitor? (Choose two.)

  1. print(languages == more_languages)
  2. print(languages is more_languages)
  3. print(more_languages is extra_languages)
  4. print(languages is extra_languages)

Answer(s): A,C






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

PCEP-30-02 Discussions & Posts