
Python Variables - Quiz2
Authored by Vindhya Gaddam
English
1st - 5th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Imagine you are going to a supermarket you need to buy some things and needs to store in a bag similarly create a variable names as bag and store at least two things that must be a string type?
bag="mango"
bag="apple","mango"
bag=10
bag="apple"
2.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
What symbol is used in python to assign values to a variable?
==
:
=
*
3.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
You wants to write a program to keep a record of temperatures. Which DATA TYPE would be most suitable for a variable called "temperature"?
An integer
A string
A boolean
A float
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following cannot be a Python variable name?
Name
var-1
name
name_2
5.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which of the following statements are correct?
The variable names cannot start with a digit
Variable names can be reserved keywords
Variable names cannot start with the underscore _
Variables names in Python are case-sensitive.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
x=5
y=x+2
x+=y
y=x
print(x)
print(y)
x=5,y=7
x=12,y=7
x=12,y=12
x=5,y=12
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
hat is the output of the following code?
x='Hello '
y='World'
print(x+y)
'HelloWorld'
Syntax Error
'Hello+World'
Runtime 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
12 questions
Tenses Grade 1
Quiz
•
1st Grade
14 questions
Healthy eating
Quiz
•
4th - 6th Grade
10 questions
School
Quiz
•
3rd - 10th Grade
12 questions
Are you ready for year five?
Quiz
•
3rd - 5th Grade
10 questions
Gr2_U8_LF1
Quiz
•
2nd Grade
10 questions
Second Grade
Quiz
•
2nd Grade
10 questions
THE GYMNAST READING COMPREHENSION
Quiz
•
5th Grade
14 questions
Creepy Cafetorium Comprehension Quiz
Quiz
•
5th - 6th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
Discover more resources for English
20 questions
Main Idea and Details
Quiz
•
5th Grade
12 questions
Figurative Language Review
Interactive video
•
5th Grade
10 questions
Fact vs. Opinion
Quiz
•
3rd Grade
20 questions
Prefix and Suffix Review
Quiz
•
3rd - 5th Grade
20 questions
Figurative Language
Quiz
•
5th Grade
20 questions
Find the Main Idea and Supporting Details
Quiz
•
3rd Grade
20 questions
Homophones
Quiz
•
4th Grade
20 questions
Inferences
Quiz
•
4th Grade