Title | Unit 1CSSelf-Quiz Unit 1 |
---|---|
Course | Online Education Strategy |
Institution | University of the People |
Pages | 6 |
File Size | 305.5 KB |
File Type | |
Total Downloads | 1 |
Total Views | 72 |
Home ▶ My courses ▶ CS 1101 - AY2020-T1 ▶ 5 September - 11 September ▶ Self-Quiz Unit 1Question 1Correct Mark 1 out of 1.Question 2Correct Mark 1 out of 1.Started on Tuesday, 10 September 2019, 11:57 AM State Finished Completed on Tuesday, 10 September 2019, 12:05 PM Time taken 8 mins 20 secs Grade ...
Home My courses Self-Quiz Unit 1
Started on State Completed on Time taken Grade
CS 1101 - AY2020-T1
5 September - 11 September
Tuesday, 10 September 2019, 11:57 AM Finished Tuesday, 10 September 2019, 12:05 PM 8 mins 20 secs 7.00 out of 10.00 (70%)
Portability means the program is written in small chunks of code. Correct Mark 1.00 out of 1.00
Select one: True False
The correct answer is 'False'.
Correct
Which one of the following Python expressions computes the total number of seconds in 21 minutes and 21 seconds?
Mark 1.00 out of 1.00
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
/
Correct
Which one of the following Python expressions computes the number ofmilesin 5 km, where one mile is 1.61 km?
Mark 1.00 out of 1.00
Select one: a. 5 * 1.61 b. 5 / 1.61 c. 1.61 / 5 d. 1.61 + 5 e. miles = "5 km"
Your answer is correct. The correct answer is: 5 / 1.61
What is Python’s response to the command: type(123) Correct Mark 1.00 out of 1.00
Select one: a. b. c. SyntaxError: invalid syntax d. e.
Your answer is correct. The correct answer is:
Correct
Programming languages are ______ languages that have been designed to express computations.
Mark 1.00 out of 1.00
Select one: a. informal b. mathematical c. formal d. natural e. logical
Your answer is correct. The correct answer is: formal
Which one of the following Python expressions has the value 64? Not answered Marked out of 1.00
Select one: a. 8 ^ 2 b. 8 ** 2 c. 8 +- 2 d. 8 += 2 e. 8 -+ 2
Your answer is incorrect. The correct answer is: 8 ** 2
Incorrect
Which one of the following Python expressions generates a syntax error?
Mark 0.00 out of 1.00
Select one: a. 8 ^ 2 b. 8 ** 2 c. 8 +- 2 d. 8 += 2 e. 8 -+ 2
Your answer is incorrect. The correct answer is: 8 += 2
What is Python’s response to the command: type(0.123) Correct Mark 1.00 out of 1.00
Select one: a. b. c. SyntaxError: invalid syntax d. e.
Your answer is correct. The correct answer is:
Which one of the following words best describes formal languages? Correct Mark 1.00 out of 1.00
Select one: a. ambiguity b. literalness c. poetry d. prose e. redundancy
Your answer is correct. The correct answer is: literalness
Consider the following text from a Python interpreter. Incorrect Mark 0.00 out of 1.00
>>> print(2 + 2) 4 What is the text "print" called? Select one: a. a function b. an operator c. a prompt d. a statement e. a value
Your answer is incorrect. The correct answer is: a function
Learning Journal Unit 1 Jump to... Learning Guide Unit 2 ▶...