BADM 211 COMPREHENSIVE EXAM QUESTIONS
AND ANSWERS 2026
◉ x="This class is about programming"
Above we define a/an ______________ variable. Answer: String
◉ Which of the following properly defines a list? Answer:
my_list=[1,2,3,4]
◉ Python is a/an ____________ programming language. Answer: object
oriented
◉ In python list indices start with integer ____ . Answer: 0
◉ What is the output of the following code snippet?
my_list=[4,0,2,1]
print(my_list[3]) Answer: 1
◉ What is the output of the following code snippet?
my_list=[5,1,4,2]
print(my_list[-3]) Answer: 1
,◉ A dictionary consists of a collection of _______ pairs. Answer: key-
value
◉ What is the output of the following code snippet?
str1="Class"
str2="BADM211"
print(str1+str2) Answer: "ClassBADM211"
◉ Which of the following is TRUE? Answer: A string is nothing but a
list of characters.
◉ Which of the following functions in python can be used to print
the output of a python script?
print()
del()
read()
show() Answer: print()
◉ Which of the following properly deletes the variable named a?
delete[a]
del(a)
del[a]
, delete(a) Answer: del(a)
◉ Which of the following is not TRUE?
We can access the first element of a list using index 0.
A list is ordered.
Each element in a list has a corresponding key.
A list can have elements of multiple types. Answer: Each element in
a list has a corresponding key.
◉ Which of the following properly assigns the name A to an integer
object?
A=2
A=2.00
A='2'
A=2.0 Answer: A=2
◉ Suppose you have defined a list named my_first_list that has 6
elements. Which of the following code prints the last element in that
list?
print(my_first_list[2])
print(my_first_list[-1])
print(my_first_list[6])
AND ANSWERS 2026
◉ x="This class is about programming"
Above we define a/an ______________ variable. Answer: String
◉ Which of the following properly defines a list? Answer:
my_list=[1,2,3,4]
◉ Python is a/an ____________ programming language. Answer: object
oriented
◉ In python list indices start with integer ____ . Answer: 0
◉ What is the output of the following code snippet?
my_list=[4,0,2,1]
print(my_list[3]) Answer: 1
◉ What is the output of the following code snippet?
my_list=[5,1,4,2]
print(my_list[-3]) Answer: 1
,◉ A dictionary consists of a collection of _______ pairs. Answer: key-
value
◉ What is the output of the following code snippet?
str1="Class"
str2="BADM211"
print(str1+str2) Answer: "ClassBADM211"
◉ Which of the following is TRUE? Answer: A string is nothing but a
list of characters.
◉ Which of the following functions in python can be used to print
the output of a python script?
print()
del()
read()
show() Answer: print()
◉ Which of the following properly deletes the variable named a?
delete[a]
del(a)
del[a]
, delete(a) Answer: del(a)
◉ Which of the following is not TRUE?
We can access the first element of a list using index 0.
A list is ordered.
Each element in a list has a corresponding key.
A list can have elements of multiple types. Answer: Each element in
a list has a corresponding key.
◉ Which of the following properly assigns the name A to an integer
object?
A=2
A=2.00
A='2'
A=2.0 Answer: A=2
◉ Suppose you have defined a list named my_first_list that has 6
elements. Which of the following code prints the last element in that
list?
print(my_first_list[2])
print(my_first_list[-1])
print(my_first_list[6])