
Variable Declaration and Strings Quiz

Quiz
•
Other
•
11th Grade
•
Hard

Ambrose Koroma
FREE Resource
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
Similar Resources on Wayground
15 questions
Kuis TIK C++

Quiz
•
9th - 12th Grade
14 questions
Intro to Python Programming Quiz 9B

Quiz
•
10th Grade - University
12 questions
Intro to Python Programming Quiz 9C

Quiz
•
10th Grade - University
10 questions
Introductory Quiz

Quiz
•
9th - 12th Grade
15 questions
Pensée computationnelle Tr1

Quiz
•
11th Grade
10 questions
Simple Easy Basic Lua Quiz

Quiz
•
4th Grade - Professio...
10 questions
#Sg_Spaic Last season Quiz (ML and Python)

Quiz
•
KG - Professional Dev...
10 questions
Methods of Enquiry In Psychology

Quiz
•
11th Grade
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