
PYTHON PROGRAMMING MIDTERM 2025 /2026 –
SOLVED CODING QUESTIONS
algorithm - ANSWER✔✔ A set of specific steps for solving a category of problems
token - ANSWER✔✔ basic elements of a language(letters, numbers, symbols)
high-level language - ANSWER✔✔ A programming language like Python that is designed to be
easy for humans to read and write.
low-level langauge - ANSWER✔✔ A programming language that is designed to be easy for a
computer to execute; also called machine language or assembly language
keyword - ANSWER✔✔ define the language's syntax rules and structure, and they cannot be
used as variable names
statement - ANSWER✔✔ instruction that the Python interpreter can execute
operators - ANSWER✔✔ special tokens that represent computations like addition,
multiplication and division
modulus operator - ANSWER✔✔ %, works on integers (and integer expressions) and gives the
remainder when the first number is divided by the second
evaluate - ANSWER✔✔ To simplify an expression by performing the operations in order to
yield a single value.
int - ANSWER✔✔ A Python data type that holds positive and negative whole numbers
float - ANSWER✔✔ A Python data type which stores floating-point numbers. Floating-point
numbers are stored internally in two parts: a base and an exponent. When printed in the
standard format, they look like decimal numbers