Python Quiz: Basics
0 of 10 Questions completed
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
0 of 10 Questions answered correctly
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
What is the correct term for combining multiple strings?CorrectIncorrect
Fill in the blanks to complete the multi-line string:
Multi-line comments are;
a great way to explain your code!
What is printed as the output?
x = 25
x **= 0.5
Comment out the line of code below:
message = ‘Quotation marks must match!”
What error does Python throw after running the following program:
x = “10 / 0′
Match the codes with the correct error messages:
- No error to be printed!
number = 21 / 0
number = "21 / 0'
print(Number) # number = 21 (declared previously)
number = 21
Match the variables with the correct variable types:
example_var = 123456789
example_var = 1000.0
example_var = "1000.0"
Which of the following is not an integer?CorrectIncorrect
Which line of code does not throw an error in Python?CorrectIncorrect
What value does the variable x hold?
x = 12
x * 2
print(x + 4)CorrectIncorrect