PROGRAMMING PYTHON)
OBJECTIVE ASSESSMENT
ACTUAL FINAL STUDY GUIDE
2026/2027 LATEST UPDATE .
, 1. Which symbol begins a single-line comment in Python?
// (double forward slash) # (pound
symbol)
* (asterisk)
% (percent symbol)✔✔ Correct answer # (pound symbol)
2. Which data type is the value 3.14 in Python? Integer
Float String
Boolean✔✔ Correct answer Float
3. In Python, what must follow the in keyword in a for loop? A condition
An iterable object A
number
A variable name✔✔ Correct answer An iterable object
4. Which type of loop is designed for iterating a specific number of times? while loop
for loop infinite
loop
do-while loop✔✔ Correct answer for loop
5. Which components are required in every Python while loop? A condition and an
indented code block
A variable and a return statement A counter and a
break statement
An iterator and a list✔✔ Correct answer A condition and an indented code block
6. Which keyword is used to exit a loop prematurely in Python? return
break stop
end✔✔
Correct answer
break
7. In the code for item in my_list✔✔ Correct answer, what does item represent? The
index of the current element