You are on page 1of 5

9/19/23, 10:34 PM Self-Quiz Unit 1: Attempt review

Started on Sunday, 10 September 2023, 1:19 PM


State Finished
Completed on Sunday, 10 September 2023, 1:32 PM
Time taken 13 mins 4 secs
Grade 9.00 out of 10.00 (90%)

Question 1
Correct
Mark 1.00 out of 1.00

Portability means the program is written in small chunks of code.

Select one:
True
False 

The correct answer is 'False'.

Question 2
Correct
Mark 1.00 out of 1.00

A program is a sequence of instructions that specifies how to perform a computation.

Select one:
True 
False

The correct answer is 'True'.

https://my.uopeople.edu/mod/quiz/review.php?attempt=11623604&cmid=380660 1/5
9/19/23, 10:34 PM Self-Quiz Unit 1: Attempt review

Question 3
Correct
Mark 1.00 out of 1.00

Programming languages are ______ languages that have been designed to express computations.

Select one:
a. informal
b. mathematical
c. formal 
d. natural
e. logical

Your answer is correct.


The correct answer is: formal

Question 4
Correct
Mark 1.00 out of 1.00

True or False: Learning to debug can be frustrating, but it is a valuable skill that is useful for many activities beyond programming.

Select one:
True 
False

The correct answer is 'True'.

https://my.uopeople.edu/mod/quiz/review.php?attempt=11623604&cmid=380660 2/5
9/19/23, 10:34 PM Self-Quiz Unit 1: Attempt review

Question 5
Correct
Mark 1.00 out of 1.00

Which one of the following Python expressions computes the total number of seconds in 21 minutes and 21 seconds?

Select one:
a. 21 + 21
b. 21 + 60
c. "21 minutes" + "21 seconds"
d. 21 * 60 + 21 
e. seconds = 21 + "21 minutes"

Your answer is correct.


The correct answer is: 21 * 60 + 21

Question 6
Incorrect
Mark 0.00 out of 1.00

Which one of the following words best describes formal languages?

Select one:
a. ambiguity
b. literalness
c. poetry
d. prose 
e. redundancy

Your answer is incorrect.


The correct answer is: literalness

https://my.uopeople.edu/mod/quiz/review.php?attempt=11623604&cmid=380660 3/5
9/19/23, 10:34 PM Self-Quiz Unit 1: Attempt review

Question 7
Correct
Mark 1.00 out of 1.00

Which one of the following Python expressions generates a syntax error?

Select one:
a. 8 ^ 2
b. 8 ** 2
c. 8 +- 2
d. 8 += 2 
e. 8 -+ 2

Your answer is correct.


The correct answer is: 8 += 2

Question 8
Correct
Mark 1.00 out of 1.00

Consider the following text from a Python interpreter.


>>> print(2 + 2)
4
What is the text "+" called?

Select one:
a. a function
b. an operator 
c. a prompt
d. a statement
e. a value

Your answer is correct.


The correct answer is: an operator

https://my.uopeople.edu/mod/quiz/review.php?attempt=11623604&cmid=380660 4/5
9/19/23, 10:34 PM Self-Quiz Unit 1: Attempt review

Question 9
Correct
Mark 1.00 out of 1.00

What is Python’s response to the command: type(0.123)

Select one:
a. <class 'float'> 
b. <class 'bool'>
c. SyntaxError: invalid syntax
d. <class 'int'>
e. <class 'str'>

Your answer is correct.


The correct answer is: <class 'float'>

Question 10
Correct
Mark 1.00 out of 1.00

What is python’s response to the command: type("0.123")

Select one:
a. <class 'float'>
b. <class 'bool'>
c. SyntaxError: invalid syntax
d. <class 'int'>
e. <class 'str'> 

Your answer is correct.


The correct answer is: <class 'str'>

https://my.uopeople.edu/mod/quiz/review.php?attempt=11623604&cmid=380660 5/5

You might also like