
BASIC QUESTIONS ON PYTHON

Quiz
•
Other
•
1st - 5th Grade
•
Hard
Robotic Schools
Used 3+ times
FREE Resource
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
Similar Resources on Wayground
25 questions
The Ultimate DSMP quiz

Quiz
•
4th Grade - Professio...
30 questions
National 5 Business Management

Quiz
•
KG - 11th Grade
25 questions
First Day Quiz

Quiz
•
2nd Grade
29 questions
Spelling Revision October 2023

Quiz
•
4th Grade
28 questions
Acteur de prévention

Quiz
•
1st Grade
26 questions
Science Review 3rd Grade

Quiz
•
3rd Grade
25 questions
ELA REVIEW

Quiz
•
3rd - 5th Grade
30 questions
Tv kids shows

Quiz
•
KG - 7th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
Finding Volume of Rectangular Prisms

Quiz
•
5th Grade
20 questions
Place Value

Quiz
•
4th Grade
20 questions
States of Matter

Quiz
•
5th Grade
20 questions
Run-On Sentences and Sentence Fragments

Quiz
•
3rd - 6th Grade
20 questions
4 Types of Sentences

Quiz
•
3rd - 5th Grade
10 questions
Place Value

Quiz
•
3rd Grade
20 questions
place value

Quiz
•
4th Grade