
BASIC QUESTIONS ON PYTHON
Quiz
•
Other
•
1st - 5th Grade
•
Practice Problem
•
Medium
Robotic Schools
Used 4+ times
FREE Resource
Enhance your content in a minute
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a valid variable name in Python?
my variable
my_variable
123myvariable
MY_VARIABLE
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? print(2 + 2 * 3)
6
8
10
12
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you convert a string to an integer in Python?
str_to_int()
convert_to_int()
int()
parse_int()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following data types is mutable?
int
float
string
list
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to comment a single line in Python?
/* comment */
// comment
# comment
<!-- comment -->
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? print(3 > 2 and 4 > 5)
True
False
Error
None
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? print("Hello" + 5)
Hello5
Hello
5
Error
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 Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
25 questions
HYGIENE AND NUTRITION GRADE 2
Quiz
•
2nd Grade
25 questions
Grammar
Quiz
•
5th - 6th Grade
25 questions
Logo Quiz
Quiz
•
KG - Professional Dev...
25 questions
informatic 2nd semester
Quiz
•
2nd Grade
27 questions
guess the youtuber
Quiz
•
2nd - 4th Grade
32 questions
GENERAL KNOWLEDGE REVISION
Quiz
•
3rd Grade
25 questions
EMPOWERMENT TECHNOLOGY
Quiz
•
KG - University
25 questions
2hv Grammatica ZD (ng en vv)
Quiz
•
1st - 10th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Other
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
10 questions
Groundhog Day Trivia Questions
Interactive video
•
3rd - 6th Grade
9 questions
Point of View
Quiz
•
3rd - 4th Grade
