WGU E010 FOUNDATIONS OF
PROGRAMMING (PYTHON) PRACTICE
ASSESSMENT| ACTUAL QUESTIONS
WITH VERIFIED SOLUTIONS 2026
Which symbol begins a single-line comment in Python?
// (double forward slash)
# (pound symbol)
* (asterisk)
% (percent symbol) - correct-answer -# (pound symbol)
Which data type is the value 3.14 in Python?
Integer
Float
String
Boolean - correct-answer -Float
,2|Page
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
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
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
, 3|Page
An iterator and a list - correct-answer -A condition and an indented code block
Which keyword is used to exit a loop prematurely in Python?
return
break
stop
end - correct-answer -break
In the code for item in my_list:, what does item represent?
The index of the current element
The current element being processed
The length of the list
The entire list - correct-answer -The current element being processed
Which Python data structure automatically prevents duplicate values from being
stored?