nerdexam
Python_Institute

PCEP-30-02 · Question #145

A keyword is a word: (Choose two.)

The correct answer is A. that cannot be used as a variable name B. that cannot be used as a function name. Keywords are reserved words in a programming language that have special meaning to the compiler or interpreter - they cannot be used as variable names (A) or function names (B) because doing so would create ambiguity or syntax errors. Examples include if, while, return, and…

Question

A keyword is a word: (Choose two.)

Options

  • Athat cannot be used as a variable name
  • Bthat cannot be used as a function name
  • Cis the most important word in the whole program
  • D

How the community answered

(51 responses)
  • A
    71% (36)
  • C
    18% (9)
  • D
    12% (6)

Explanation

Keywords are reserved words in a programming language that have special meaning to the compiler or interpreter - they cannot be used as variable names (A) or function names (B) because doing so would create ambiguity or syntax errors. Examples include if, while, return, and class in most languages; using them as identifiers causes compilation failure.

Why C is wrong: "Most important word" is a vague, non-technical concept - keywords aren't ranked by importance, they're defined by their reserved status in the language specification.

Why D is wrong: The choice appears blank/incomplete, making it invalid by definition.

Memory tip: Think of keywords as "taken" - the language has already claimed them for its own grammar, so you can't repurpose them for your own identifiers. If you try, you'll get a syntax error at compile/parse time.

Community Discussion

No community discussion yet for this question.

Full PCEP-30-02 Practice