ITP 150 Python Exam 2 – Questions With A+
Solutions
Add to calendar
Play your way to mastery with fun games
Match Blocks Charms NEW
,Practice questions for this set
Learn 1 /7 Study with Learn
Xu:33
Bob:24
Jill:18
Choose an answer
, Which choice fills in the blank so that If factor = 24, which format will
1 the output prints one line for each 2 generate '**24', right aligned in its
item in sports_list, as in: 1. Hockey? field?
What is the output?
For the given pseudocode, which XXX
and YYY will output the sum of the
names = ['Bob', 'Jill', 'Xu']
3 4 input integers (stopping when -1 is
ages = [24, 18, 33]
input)? Choices are in the form XXX /
for index in [2, 0, 1]:
YYY.
print(f'{names[index]}:{ages[index]}')
Don't know?
Terms in this set (126)
,Which choice fills in the blank so that range(len(sports_list))
the output prints one line for each
item in sports_list, as in: 1. Hockey?
Which is an essential feature of a The loop_expression should be affected by the
while loop having the following loop_body
form?
while loop_expression:
loop_body
Fill in the blank so that the output is a t<0
count of how many negative values
are in temperatures?
Solutions
Add to calendar
Play your way to mastery with fun games
Match Blocks Charms NEW
,Practice questions for this set
Learn 1 /7 Study with Learn
Xu:33
Bob:24
Jill:18
Choose an answer
, Which choice fills in the blank so that If factor = 24, which format will
1 the output prints one line for each 2 generate '**24', right aligned in its
item in sports_list, as in: 1. Hockey? field?
What is the output?
For the given pseudocode, which XXX
and YYY will output the sum of the
names = ['Bob', 'Jill', 'Xu']
3 4 input integers (stopping when -1 is
ages = [24, 18, 33]
input)? Choices are in the form XXX /
for index in [2, 0, 1]:
YYY.
print(f'{names[index]}:{ages[index]}')
Don't know?
Terms in this set (126)
,Which choice fills in the blank so that range(len(sports_list))
the output prints one line for each
item in sports_list, as in: 1. Hockey?
Which is an essential feature of a The loop_expression should be affected by the
while loop having the following loop_body
form?
while loop_expression:
loop_body
Fill in the blank so that the output is a t<0
count of how many negative values
are in temperatures?