CSC 221 NOVA FINAL EXAM REVIEW
2026/2027 – STUDY GUIDE, PRACTICE
QUESTIONS & TEST PREP
1 of 125
Term
What is output?
b1 = [7, 5, 9, 6]
b1.sort()
b2 = b1.copy()
b1.append(10)
b2 = b2[::-1]
print(b1, b2)
Give this one a go later!
[5, 6, 7, 9] [9, 7, 6, 5, 10] [5, 6, 7, 9, 10] [9, 7, 6, 5]
[5, 6, 7, 9, 10] [5, 6, 7, 9, 10] [5, 6, 7, 9, 10] [5, 6, 7, 9]
, Don't know?
2 of 125
Term
Which algorithm solves the problem for finding the minimum of 5
values, such as 3, 6, -1, 8, 4?
Give this one a go later!
t = calc_square(calc_square(2)) t = 'minute' if x == 1 else 'minutes'
min = first value
for each value
[5, 6, 7, 9, 10] [9, 7, 6, 5]
if value < min
min = value
Don't know?
, 3 of 125
Definition
A named entity in a function definition, specifying a value the function
can receive. When the function is called, the actual values passed to
the parameters are called arguments. Parameters act as placeholders
within the function's scope, allowing the function to operate on
different inputs each time it is called.
Give this one a go later!
procedure syntax
parameter algorithm
Don't know?
4 of 125
Term
What is the ending value of count?
my_list = [3, -4, 0, -1, 2, 1, 8]
n=0
count = 0
While n < length of my_list:
If my_list[n] > 0
, count = count + 1
n=n+1
Give this one a go later!
4 55
2 reversed
Don't know?
5 of 125
Term
A key aspect of an abstract data type is to facilitate_____ _.
Give this one a go later!
information hiding syntax validation
data redundancy memory allocation
Don't know?
6 of 125
Term
2026/2027 – STUDY GUIDE, PRACTICE
QUESTIONS & TEST PREP
1 of 125
Term
What is output?
b1 = [7, 5, 9, 6]
b1.sort()
b2 = b1.copy()
b1.append(10)
b2 = b2[::-1]
print(b1, b2)
Give this one a go later!
[5, 6, 7, 9] [9, 7, 6, 5, 10] [5, 6, 7, 9, 10] [9, 7, 6, 5]
[5, 6, 7, 9, 10] [5, 6, 7, 9, 10] [5, 6, 7, 9, 10] [5, 6, 7, 9]
, Don't know?
2 of 125
Term
Which algorithm solves the problem for finding the minimum of 5
values, such as 3, 6, -1, 8, 4?
Give this one a go later!
t = calc_square(calc_square(2)) t = 'minute' if x == 1 else 'minutes'
min = first value
for each value
[5, 6, 7, 9, 10] [9, 7, 6, 5]
if value < min
min = value
Don't know?
, 3 of 125
Definition
A named entity in a function definition, specifying a value the function
can receive. When the function is called, the actual values passed to
the parameters are called arguments. Parameters act as placeholders
within the function's scope, allowing the function to operate on
different inputs each time it is called.
Give this one a go later!
procedure syntax
parameter algorithm
Don't know?
4 of 125
Term
What is the ending value of count?
my_list = [3, -4, 0, -1, 2, 1, 8]
n=0
count = 0
While n < length of my_list:
If my_list[n] > 0
, count = count + 1
n=n+1
Give this one a go later!
4 55
2 reversed
Don't know?
5 of 125
Term
A key aspect of an abstract data type is to facilitate_____ _.
Give this one a go later!
information hiding syntax validation
data redundancy memory allocation
Don't know?
6 of 125
Term