Courseiva
Computer Programming and Python FundamentalshardMultiple SelectObjective-mapped

PCEP Computer Programming and Python Fundamentals Practice Question

Which TWO statements correctly describe Python's dynamic typing?

⚠ Common exam trap

The PCEP exam often tests the misconception that dynamic typing means a variable's type is fixed after first assignment, or that type checking happens at compile time, leading candidates to incorrectly select Option C or B.

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

The interpreter infers the type from the assigned value.

Python's dynamic typing means the interpreter determines the type of a variable at runtime based on the value assigned to it. You do not need to declare the type explicitly; the type is inferred from the object the variable references.

Answer analysis

Option-by-option breakdown

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

  • Variable types must be declared before use.

    Why it's wrong here

    Python does not require type declarations.

  • Python checks types only at compile time.

    Why it's wrong here

    Python is dynamically typed; type checking occurs at runtime.

  • A variable's type is fixed once assigned.

    Why it's wrong here

    The variable can be reassigned to a value of a different type.

  • The interpreter infers the type from the assigned value.

    Why this is correct

    The type is determined by the object assigned to the variable.

  • The type of a variable can change at runtime.

    Why this is correct

    Dynamic typing allows rebinding a variable to a different type.

About these practice questions

This PCEP question is part of Courseiva's 498-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. 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.