CSE 1010 EXAM 1 REVIEW EXAM AND RATIONALE EXAM
COMPREHENSIVE 2026 QUESTIONS EXAM LATEST
VERSION SOLVED QUESTIONS & ANSWERS VERIFIED
100 %
Which statement correctly explains a difference between lists and tuples?
a. List items can be changed, while tuple items can't be changed
b. The built-in function len() works with lists but not tuples
c. List items can be of any type, while tuple types can only be alphanumeric.
d. List items must be a single value, while a tuple contains a pair of values.
a. List items can be changed, while tuple items can't be changed
Which of the following assignment statements creates a list with 4 integer
elements?
a. my_list = [7, 2, -8, 16]
b. my_list = [4]
c. my_list = ['1', '2', '3', '4']
d. my_list = integer(4)
a. my_list = [7, 2, -8, 16]
my_list = [2, 8, 3, 1, 18, 5]
print(my_list[4] + my_list[5])
, Page 2 of 16
a. 23
b. 9
c. 19
d. 185
a. 23
Consider the list my_list = [1880, '990EZ', 'Tax Forms']. Which statement gives
'990EZ' as the output?
a. print(my_list[:1])
b. print(my_list[1:2])
c. print(my_list[2])
d. print(my_list[:2])
b. print(my_list[1:2])
new_list = [10, 20, 30, 40]
for i in new_list[:]:
print(i)
new_value = new_list.pop(0)
a. 10
30
b. 10
20
30
40
c. 20
30
, Page 3 of 16
40
d. 20
40
b. 10
20
30
40
cities = ['Sydney', 'Paris', 'New York', 'Cairo']
for c in _____(cities):
print(c, end=' ')
a. reversed
b. backwards
c. list
d. inverse
a. reversed
Which determines if user_unit is in the list accepted_units?
accepted_units = [ 'in', 'cm', 'mm', 'km', 'miles' ]
a. if user_unit in accepted_units:
b. if accepted_units in user_unit:
c. if user_unit == (accepted_units):
d. if user_unit == x in accepted_un
a. if user_unit in accepted_units:
Select the output generated by the following code:
new_list = [10, 10, 20, 20, 30, 40]