
1
PYTHON PROGRAMMING: VARIABLES, DATA TYPES, AND
FUNCTIONS ACTUAL QUESTIONS AND CORRECT ANSWERS
1. Question: Variable
Answer: A named item such as "x" or "num_people" that holds
a value.
2. Question: Assignment statement
Answer: Assigns a variable with a value (e.g., x = 5). Left side
must be a variable, right side can be an expression.
3. Question: Incrementing
Answer: Increasing a variable's value by 1 (e.g., x = x + 1).
4. Question: Identifiers (name)
Answer: A sequence of letters, digits, and underscores (must
start with a letter or underscore, no punctuation).
Used for naming variables, functions, etc.
5. Question: Reverse words (keywords)
Answer: Reserved words that are part of the programming
language and cannot be used as identifiers.
6. Question: Object
Answer: Represents a value and is automatically created by
the interpreter (e.g., x = 4 creates an object
representing 4).
7. Question: Properties of an Object
Answer: Characteristics that describe an object: value, type,
mutability, and identity.
8. Question: Value (object property)
Answer: The actual data associated with the object (e.g., 20,
"abc", 55).
9. Question: Type (object property)
Answer: The kind of object, such as a string or integer.