
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
Create a free account and access millions of resources
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
Rung Chuông Vàng Khối 3
Quiz
•
3rd Grade
25 questions
1KGT 2.7 Grammatica (lw,zn,ww)
Quiz
•
1st - 12th Grade
25 questions
BOA van alles wat
Quiz
•
1st - 10th Grade
25 questions
Prep 5 Assessjar tar-Reliġjon: Kapitli 2, 3, u 4
Quiz
•
5th Grade
25 questions
Đề 345
Quiz
•
3rd - 5th Grade
25 questions
ESTCFK3B_Revision
Quiz
•
4th Grade
25 questions
Fun trivia quiz
Quiz
•
KG - 3rd Grade
25 questions
Afkortingen
Quiz
•
2nd Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Other
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
7 questions
Veteran's Day
Interactive video
•
3rd Grade
10 questions
Area
Quiz
•
3rd Grade
8 questions
Ancient China Quick Check
Quiz
•
3rd Grade
14 questions
States of Matter
Lesson
•
KG - 3rd Grade
