Title | Self-quiz 1 |
---|---|
Course | Programming Fundamentals |
Institution | Daffodil International University |
Pages | 6 |
File Size | 179.1 KB |
File Type | |
Total Downloads | 74 |
Total Views | 144 |
Download Self-quiz 1 PDF
Consider the following text from a Python interpreter. >>> 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 Feedback Your answer is correct. The correct answer is: a function Question 2 Correct Mark 1.00 out of 1.00
Flag question
Question text 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 Feedback Your answer is correct. The correct answer is: an operator Question 3 Correct Mark 1.00 out of 1.00
Flag question
Question text Which of the following is not a valid Python numeric literal: Select one: a. 123 b. 0123
c. 0.00 d. 12.3 e. 0.75 Feedback Your answer is correct. The correct answer is: 0123 Question 4 Correct Mark 1.00 out of 1.00
Flag question
Question text What is Python’s response to the command: type(0.123)
Select one: a.
b. c. SyntaxError: invalid syntax d. e. Feedback Your answer is correct. The correct answer is: Question 5 Correct Mark 1.00 out of 1.00
Flag question
Question text 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 Feedback Your answer is correct. The correct answer is: 8 ** 2 Question 6 Correct Mark 1.00 out of 1.00
Flag question
Question text What is Python’s response to the command: type(123) Select one: a. b. c. SyntaxError: invalid syntax d.
e. Feedback Your answer is correct. The correct answer is: Question 7 Correct Mark 1.00 out of 1.00
Flag question
Question text Which one of the following Python expressions has the value 10? Select one: a. 8 ^ 2
b. 8 ** 2 c. 8 +- 2 d. 8 += 2 e. 8 -+ 2
Feedback Your answer is correct. The correct answer is: 8 ^ 2 Question 8 Incorrect Mark 0.00 out of 1.00
Flag question
Question text string is a Python type that represents sequences of numeric values. Select one: True
False Feedback The correct answer is 'False'. Question 9 Incorrect Mark 0.00 out of 1.00
Flag question
Question text What is python’s response to the command: type("0.123") Select one: a.
b. c. SyntaxError: invalid syntax d.
e. Feedback Your answer is incorrect. The correct answer is: Question 10 Incorrect Mark 0.00 out of 1.00
Flag question
Question text Programming languages are ______ languages that have been designed to express computations. Select one: a. informal
b. mathematical c. formal d. natural e. logical Feedback Your answer is incorrect. The correct answer is: formal...