ANSWERS (VERIFIED ANSWERS) Q&A 2027
|INSTANT DOWNLOAD PDF
1. Which of the following best describes Python?
A. A hardware programming language B. A high-level,
interpreted programming language C. A database management
system D. An operating system
Correct Answer: B. A high-level, interpreted programming
language
Rationale: Python is a high-level programming language known
for readable syntax and an interpreter that executes Python
code.
2. Which symbol is used to create a single-line comment in
Python?
A. // B. /* C. # D. --
Correct Answer: C. #
Rationale: The hash symbol (#) indicates a single-line comment.
Python ignores comments during program execution.
3. Which function displays output on the screen in Python?
A. input() B. print() C. display() D. output()
Correct Answer: B. print()
,Rationale: The print() function displays text, variables, and
other values in the console.
4. Which function is used to receive input from a user?
A. read() B. scan() C. input() D. get()
Correct Answer: C. input()
Rationale: The input() function pauses program execution and
accepts information entered by the user. It returns the entered
value as a string.
5. Which of the following is a valid Python variable name?
A. 2value B. my-value C. my_value D. class
Correct Answer: C. my_value
Rationale: Python variable names may contain letters,
numbers, and underscores but cannot begin with a number or
use reserved keywords.
6. What is the data type of the value 25?
A. float B. int C. str D. bool
Correct Answer: B. int
Rationale: Whole numbers without decimal points are
represented by the integer (int) data type.
7. Which data type represents decimal numbers in Python?
A. int B. str C. float D. bool
Correct Answer: C. float
,Rationale: The float data type represents numbers containing
decimal points, such as 3.14 or 12.5.
8. What is the result of 10 // 3?
A. 3.33 B. 3 C. 1 D. 4
Correct Answer: B. 3
Rationale: The floor division operator (//) divides two numbers
and returns the quotient rounded down to the nearest integer.
9. What is the result of 10 % 3?
A. 3 B. 1 C. 0 D. 3.33
Correct Answer: B. 1
Rationale: The modulus operator (%) returns the remainder
after division. Ten divided by three leaves a remainder of one.
10. Which operator is used for exponentiation in Python?
A. ^ B. ** C. // D. %%
Correct Answer: B. **
Rationale: The double asterisk operator (**) raises a number to
a specified power. For example, 2 ** 3 equals 8.
11. What is the result of 5 + 3 * 2?
A. 16 B. 13 C. 11 D. 10
Correct Answer: C. 11
Rationale: Python follows operator precedence. Multiplication
occurs before addition, so 3 × 2 = 6, followed by 5 + 6 = 11.