
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
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
10 questions
Bahasa Melayu Tahun 3- Kata Nama am dan Kata Nama Khas
Quiz
•
1st - 12th Grade
15 questions
Computer System Servicing: Occupational Health and Safety
Quiz
•
10th Grade - University
15 questions
Chayamana Quiz Competition
Quiz
•
1st Grade - University
11 questions
The year 2021
Quiz
•
7th Grade - University
13 questions
General knowledge
Quiz
•
3rd Grade - Professio...
12 questions
Cars 2020
Quiz
•
6th Grade - University
13 questions
FOOD PREP EQUIP + SIMPLE DISHES QUIZ 3
Quiz
•
11th Grade
12 questions
Culture générale
Quiz
•
KG - University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Other
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
15 questions
Christmas Song Emoji Pictionary
Quiz
•
7th - 12th Grade
20 questions
Christmas Movies
Quiz
•
1st - 12th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
29 questions
christmas facts
Lesson
•
5th - 12th Grade
20 questions
Christmas Trivia
Quiz
•
5th - 12th Grade
20 questions
Stages of Meiosis
Quiz
•
9th - 12th Grade
20 questions
christmas songs
Quiz
•
KG - University
