REPL EXAM REVIEW GUIDE 2026
COMPLETE PRACTICE QUESTIONS AND
ANSWERS
●● Why is Python classified as a high-level language? Answer: It
abstracts away complex hardware-level details to improve readability
and ease of writing.
●● What does it mean for Python to be an interpreted language?
Answer: The code is executed line by line, allowing for interactive use
and easier debugging.
●● What characteristic of Python allows the interpreter to determine a
variable's type at runtime without explicit declaration? Answer:
Dynamic typing.
●● Which category of programming languages interacts directly with
computer hardware? Answer: Low-level languages.
●● Name two examples of low-level programming languages. Answer:
Assembly language and Machine code.
, ●● How do high-level languages typically run code compared to low-
level languages? Answer: They utilize a compiler or an interpreter to
translate the code for the computer.
●● What is the primary difference between interpreted and compiled
languages regarding code execution? Answer: Interpreted languages
execute code line by line, while compiled languages convert the entire
program into machine code before execution.
●● Why do compiled languages like $C$ or $C++$ generally have faster
execution speeds at runtime than interpreted languages? Answer: The
conversion to machine language happens in advance rather than during
execution.
●● Which Python execution mode is best suited for testing code snippets
interactively in a terminal? Answer: Interactive Mode.
●● What does REPL stand for in the context of Python's interactive
shell? Answer: Read-Eval-Print Loop.
●● Which Python execution mode is used for creating extensive,
reusable programs stored in $.py$ files? Answer: Script Mode.
●● How is a Python script file executed from a terminal command line?
Answer: By typing `python` or `python3` followed by the script's
filename.
COMPLETE PRACTICE QUESTIONS AND
ANSWERS
●● Why is Python classified as a high-level language? Answer: It
abstracts away complex hardware-level details to improve readability
and ease of writing.
●● What does it mean for Python to be an interpreted language?
Answer: The code is executed line by line, allowing for interactive use
and easier debugging.
●● What characteristic of Python allows the interpreter to determine a
variable's type at runtime without explicit declaration? Answer:
Dynamic typing.
●● Which category of programming languages interacts directly with
computer hardware? Answer: Low-level languages.
●● Name two examples of low-level programming languages. Answer:
Assembly language and Machine code.
, ●● How do high-level languages typically run code compared to low-
level languages? Answer: They utilize a compiler or an interpreter to
translate the code for the computer.
●● What is the primary difference between interpreted and compiled
languages regarding code execution? Answer: Interpreted languages
execute code line by line, while compiled languages convert the entire
program into machine code before execution.
●● Why do compiled languages like $C$ or $C++$ generally have faster
execution speeds at runtime than interpreted languages? Answer: The
conversion to machine language happens in advance rather than during
execution.
●● Which Python execution mode is best suited for testing code snippets
interactively in a terminal? Answer: Interactive Mode.
●● What does REPL stand for in the context of Python's interactive
shell? Answer: Read-Eval-Print Loop.
●● Which Python execution mode is used for creating extensive,
reusable programs stored in $.py$ files? Answer: Script Mode.
●● How is a Python script file executed from a terminal command line?
Answer: By typing `python` or `python3` followed by the script's
filename.