CS1101-Graded Quiz Unit 3 - Attempt Review
CS1101-Graded Quiz Unit 3 - Attempt Review
State Finished
Completed on Sunday, 16 February 2025, 3:17 PM
Time taken 17 mins 6 secs
Marks 16.71/20.00
Grade 83.57 out of 100.00
Question 1
Incorrect
Mark 0.00 out of 1.00
Select one:
a. runtime error
b. compile error
c. syntax error
d. semantic error
Question 2
Correct
Mark 1.00 out of 1.00
Learning to debug can be frustrating, but it is a valuable skill that is useful for many activities beyond programming.
Select one:
True
False
Select one:
a. 6
b. 5
c. 4
d. 3
Question 4
Correct
Mark 1.00 out of 1.00
Select one:
a. 2 ^ 2
b. 2 ** 2
c. 2 +- 2
d. 2 += 2
e. 2 -+ 2
Select one:
a. 6
b. 5
c. 4
d. 3
Question 6
Correct
Mark 1.00 out of 1.00
Select one:
a. a function
b. an operator
c. a prompt
d. a statement
e. a value
Select one:
a. 0
b. 1
c. no output
d. RuntimeError: maximum recursion depth exceeded
Question 8
Correct
Mark 1.00 out of 1.00
Select one:
a. 1.0
b. 1,000,000
c. 1 0 0
d. Error invalid type
Select one:
True
False
Question 10
Correct
Mark 1.00 out of 1.00
Select one:
a. percentage
b. 109
c. 109.0909090909091
d. 109.0
What the Python interpreter does to an expression to find its value. evaluate
A combination of variables, operators, and values that represents a single result value. statement
A special symbol that represents a simple computation like addition, multiplication, or string concatenation. operator
The correct answer is: To join two operands end-to-end. → concatenate, What the Python interpreter does to an expression to find its
value. → evaluate, A combination of variables, operators, and values that represents a single result value. → expression, A reserved
word that is used by the interpreter to parse programs. → keyword, A special symbol that represents a simple computation like
addition, multiplication, or string concatenation. → operator, A unit of code that the Python interpreter can execute. → statement, A
name that refers to a value. → variable
Question 12
Correct
Mark 1.00 out of 1.00
When defining a Python function that has no parameters, the parentheses that follow the function’s name are optional.
Select one:
True
False
When a Python function is called, inside the function, the arguments are assigned to variables called parameters.
Select one:
True
False
Question 14
Correct
Mark 1.00 out of 1.00
If you assign the result of calling a void function to a variable in Python, you get:
Select one:
a. an empty string
b. the value -1
c. the value 0
d. the special value None
e. an exception
Select one:
a. percentage
b. 109
c. 109.0909090909091
d. 109.0
Question 16
Correct
Mark 1.00 out of 1.00
Select one:
a. 1 and 2 are equal
b. 1 is less than 2
c. 1 is greater than 2
d. 2 is greater than 1
Select one:
a. a function
b. an operator
c. a prompt
d. a statement
e. a value
Question 18
Incorrect
Mark 0.00 out of 1.00
Select one:
True
False
Select one:
a. 16
b. 8
c. 4
d. 2
Question 20
Correct
Mark 1.00 out of 1.00
What do we call the value provided to a function when the function is called (which is assigned to the corresponding parameter in the
function)?
Select one:
a. argument
b. return value
c. method
d. the special value None
e. global variable