
Variable Declaration and Strings Quiz
Quiz
•
Other
•
11th Grade
•
Practice Problem
•
Hard
Ambrose Koroma
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to declare a variable in Python?
Use the keyword 'var' to declare a variable in Python.
Use the keyword 'let' to declare a variable in Python.
Use the assignment operator (=) to declare a variable in Python.
Use the keyword 'const' to declare a variable in Python.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid variable name in Python?
my-variable
my_variable
my variable
myVariable
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the data type of the variable 'x' in the statement: x = 5.7?
float
boolean
string
integer
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? x = 10 y = 5 print(x + y)
50
105
15
3
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? x = 'Hello' y = 'World' print(x + y)
HelloWorld
Hello + World
Hello, World
Hello World
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to concatenate two strings in Python?
+
&
-
*
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? x = '5' y = 3 print(x * y)
15
53
5555
555
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
10 questions
[3] MOCK MATH WEST 2021 | WIUT
Quiz
•
8th - 11th Grade
14 questions
Brawl Stars
Quiz
•
KG - Professional Dev...
10 questions
Lazarbeam
Quiz
•
8th - 12th Grade
12 questions
Alberta Natural Resources #2
Quiz
•
KG - University
10 questions
T&T FDOS Quiz
Quiz
•
7th - 12th Grade
10 questions
15. Juego Grupal
Quiz
•
11th Grade
10 questions
Ori and the will of the wisps
Quiz
•
KG - Professional Dev...
10 questions
HUMAN MEMORY
Quiz
•
11th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Other
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade
12 questions
Add and Subtract Polynomials
Quiz
•
9th - 12th Grade
13 questions
Model Exponential Growth and Decay Scenarios
Quiz
•
9th - 12th Grade
27 questions
7.2.3 Quadrilateral Properties
Quiz
•
9th - 12th Grade
7 questions
Amoeba Sisters Dihybrid Cross Punnett Square
Interactive video
•
9th - 12th Grade
10 questions
The Holocaust: Historical Overview
Interactive video
•
9th - 12th Grade
10 questions
Key Features of Quadratic Functions
Interactive video
•
8th - 12th Grade
