
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
Lesson 2 Basic Parts of mBot2 and mBlock

Quiz
•
1st - 5th Grade
30 questions
AND-801 Quiz test

Quiz
•
KG - Professional Dev...
25 questions
KHELO INDIA FITNESS ASSESSMENT QUIZ

Quiz
•
1st - 5th Grade
30 questions
Disney Pixar Trivia Game

Quiz
•
KG - 5th Grade
30 questions
SOAL ULANGAN KD.1,2 INFORMATIKA

Quiz
•
1st Grade
25 questions
Overall Assessment for Prarthana Menon

Quiz
•
5th Grade
30 questions
Author's POV RI.5.6

Quiz
•
4th - 6th Grade
25 questions
ALGORITMA DAN PEMROGRAMAN

Quiz
•
1st Grade - University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade