Title | Cs 1101 Self-Quiz Unit 1: Attempt review |
---|---|
Course | Programming Fundamentals |
Institution | University of the People |
Pages | 7 |
File Size | 177.2 KB |
File Type | |
Total Downloads | 2 |
Total Views | 135 |
Quiz...
Self-Quiz Unit 1: Attempt review
9/7/20, 4:55 PM
assembly language. Any one of the languages that people speak that evolved
natural language
naturally. parse To examine a program and analyze the syntactic structure.
A property of a program that can run on more than one kind
portability
of computer. An instruction that causes the Python interpreter to display a
print statement
value on the screen. The process of formulating a problem, !nding a solution, and
problem solving
expressing the solution. A sequence of instructions that speci!es to a computer
program
actions and computations to be performed. A program stored in a !le (usually one that will be
script
interpreted). syntax The structure of a program.
One of the basic elements of the syntactic structure of a
token
program, analogous to a word in a natural language.
https://my.uopeople.edu/mod/quiz/review.php?attempt=3194241&cmid=219400
Page 2 of 8
Self-Quiz Unit 1: Attempt review
Question 2
9/7/20, 4:55 PM
Correct
Mark 1.00 out of 1.00
A program is a sequence of instructions that speci!es how to perform a computation. Select one: True False
Question 3
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.
https://my.uopeople.edu/mod/quiz/review.php?attempt=3194241&cmid=219400
Page 3 of 8
Self-Quiz Unit 1: Attempt review
Question 4
9/7/20, 4:55 PM
Incorrect
Mark 0.00 out of 1.00
Consider the following text from a Python interpreter. >>> print(2 + 2) 4 What is the text "4" called? Select one: a. a function b. an operator c. a prompt d. a statement e. a value
Your answer is incorrect.
https://my.uopeople.edu/mod/quiz/review.php?attempt=3194241&cmid=219400
Page 4 of 8
Self-Quiz Unit 1: Attempt review
Question 5
9/7/20, 4:55 PM
Correct
Mark 1.00 out of 1.00
Which one of the following Python expressions computes the number of miles in 5 km, where one mile is 1.61 km? 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.
Question 6
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.
https://my.uopeople.edu/mod/quiz/review.php?attempt=3194241&cmid=219400
Page 5 of 8
Self-Quiz Unit 1: Attempt review
Question 7
9/7/20, 4:55 PM
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.
Question 8
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.
https://my.uopeople.edu/mod/quiz/review.php?attempt=3194241&cmid=219400
Page 6 of 8
Self-Quiz Unit 1: Attempt review
Question 9
9/7/20, 4:55 PM
Correct
Mark 1.00 out of 1.00
What is Python’s response to the command: type(123) Select one: a. b. c. SyntaxError: invalid syntax d. e.
Your answer is correct.
Question 10
Correct
Mark 1.00 out of 1.00
Which one of the following Python expressions has the value 64? Select one: a. 8 ^ 2 b. 8 ** 2 c. 8 +- 2 d. 8 += 2 e. 8 -+ 2
Your answer is correct.
https://my.uopeople.edu/mod/quiz/review.php?attempt=3194241&cmid=219400
Page 7 of 8
Self-Quiz Unit 1: Attempt review
9/7/20, 4:55 PM
Jump to...
https://my.uopeople.edu/mod/quiz/review.php?attempt=3194241&cmid=219400
Page 8 of 8...