Courseiva
Computer Programming and Python FundamentalseasyMultiple SelectObjective-mapped

PCEP Computer Programming and Python Fundamentals Practice Question

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

⚠ Common exam trap

Python Institute often tests the distinction between truthy/falsy values and the behavior of bool() with numeric zero, leading candidates to mistakenly think bool(0) returns 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 == 3

The equality operator '==' compares the two operands and returns True if they are equal. Since 3 is indeed equal to 3, the expression 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.

  • 'a' > 'b'

    Why it's wrong here

    'a' < 'b' lexicographically.

  • 5 > 10

    Why it's wrong here

    False, 5 is not greater than 10.

  • 3 == 3

    Why this is correct

    True, equal.

  • bool(0)

    Why it's wrong here

    0 is falsy.

  • not False

    Why this is correct

    True.

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.