
Python Quiz 1
Authored by Raphael Okai
Computers
Professional Development
Used 10+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid way to comment in Python?
// This is a comment
# This is a comment
<!-- This is a comment -->
/* This is a comment */
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet?
2.5
2
2.0
2.00
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
15
"555"
8
"333"
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements is true about Python variables?
Variables must be declared before they are used.
Variables can contain only letters.
Python variables are case-sensitive.
Python variables cannot be reassigned.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Find the output of the below python code:
-3
Error
2
None of the above
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Find the output of the below python code:
Error
0o123123
0o270o27
0o27027
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Find the output of the below python code:
CodeCamp
Empty String
True
False
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?