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

Page 23 of 99

What is the expected output of the following code?
x = 28
y = 8
print(x / y)
print(x // y)
print(x % y)


  1. 1 | 3.0
    2 | 3
    3 | 2

  2. 1 | 3.5
    2 | 3
    3 | 4

  3. 1 | 3
    2 | 3.5
    3 | 4

  4. 1 | 3.5
    2 | 3.5
    3 | 2

Answer(s): B



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

  1. The result of the / operator is always an integer value.
  2. The ** operator uses right-sided binding.
  3. The right argument of the % operator cannot be zero.
  4. Addition precedes multiplication.

Answer(s): B,C



Which of the following statements is false?

  1. The right argument of the % operator can not be zero.
  2. The ** operator has right-to-left associativity.
  3. Multiplication precedes addition.
  4. The result of the / operator is always an integer value.

Answer(s): D



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

  1. 4.5
  2. 0.16666666666666666
  3. 0.0
  4. 0

Answer(s): D



Page 23 of 99



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

Likhaya commented on January 08, 2025
I'm impressed by this website
Anonymous
upvote

BT commented on December 18, 2024
test PCEP-30-02 exam
VIET NAM
upvote

Mike commented on November 06, 2024
Very good website
Anonymous
upvote

joyce Mensah commented on October 28, 2023
I have just purchase the python fundamentals dump, i will see how it goes
Anonymous
upvote