
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
Examen mensual de letras
Quiz
•
1st Grade - University
25 questions
Q2 GMRC 1 Chapter Quiz
Quiz
•
1st Grade
25 questions
PTS 1 Bahasa Inggris kelas 5
Quiz
•
5th Grade
25 questions
Sound
Quiz
•
4th Grade
25 questions
Topic Year 5 Revision Week 13
Quiz
•
5th Grade
25 questions
fortnite
Quiz
•
1st - 5th Grade
25 questions
Xfinity Cable
Quiz
•
1st Grade
25 questions
Boboiboy
Quiz
•
1st Grade
Popular Resources on Wayground
10 questions
Forest Self-Management
Lesson
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
30 questions
Thanksgiving Trivia
Quiz
•
6th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
48 questions
The Eagle Way
Quiz
•
6th Grade
10 questions
Identifying equations
Quiz
•
KG - University
10 questions
Thanksgiving
Lesson
•
5th - 7th Grade
Discover more resources for Other
10 questions
Forest Self-Management
Lesson
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University
10 questions
Thanksgiving
Lesson
•
5th - 7th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
18 questions
Thanksgiving Trivia
Quiz
•
4th - 12th Grade
20 questions
Thanksgiving Math
Quiz
•
5th Grade
