Courseiva
Data Types, Variables, Basic I/O and OperatorsmediumMultiple SelectObjective-mapped

PCEP Practice Question: Data Types, Variables, Basic I/O and Operators

Which of the following expressions evaluate to True? (Choose three.)

⚠ Common exam trap

The PCEP exam often tests the distinction between the modulo operator returning the remainder (not the quotient) and the falsy nature of zero, leading candidates to mistakenly think `10 % 3 == 0` or `bool(0)` evaluate to `True`.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

3 ** 2 == 9

The exponentiation operator `**` computes 3 raised to the power of 2, which equals 9, and the `==` operator checks equality, so `3 ** 2 == 9` evaluates to `True`.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • 3 ** 2 == 9

    Why this is correct

    3 squared equals 9.

  • 4.0 == 4

    Why this is correct

    Float 4.0 and integer 4 are numerically equal.

  • 10 % 3 == 0

    Why it's wrong here

    10 modulo 3 equals 1, not 0.

  • "Py" in "Python"

    Why this is correct

    The substring 'Py' is found in 'Python'.

  • bool(0)

    Why it's wrong here

    bool(0) returns False because 0 is considered False.

About these practice questions

One of 498 original PCEP practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This PCEP practice question is part of Courseiva's free Python Institute certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the PCEP exam.