
Codenext Python Review Quiz
Authored by A A
Computers
9th - 12th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is the correct way to declare a variable named "my_var" and assign it to the integer value 5 in python?
int my_var = 5;
variable my_var = 5;
my_var = 5
my_var = 5.0
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of my_var1 at the end of the block of code.
my_var1 = 5
my_var2 = "string"
my_var1 = my_var2
my_var2 = 9.0
5
"string"
9.0
This code fragment has errors
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is is the output of the following code:
example_variable = ["hello", "world"]
print(type(example_variable))
<class 'str'>
<class 'list'>
<class 'int'>
<class 'character'>
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of the expression:
(5 // 2) ** 3
4
6
8
15.625
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of "x" at the end of this code block
var x = "hello"
x += ", world"
"hello"
"hello, world"
", world"
Error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the name of the function in the following code block:
def computation(x,y,z):
constant = 5
return constant * (x+y+z)
def
computation
x,y,z
constant
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of "x" after the following code:
count = 0
x = 0
while count < 5:
x +=2
count += 1
0
5
10
20
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
Initial Assessment - Cybersecurity Awareness
Quiz
•
9th Grade - Professio...
15 questions
Q1 W1 M1 PRE-TEST
Quiz
•
10th Grade
11 questions
Excel
Quiz
•
1st - 10th Grade
15 questions
User Interface Design - Topic 1
Quiz
•
12th Grade
10 questions
SISTEM KOMPUTER KLS 9
Quiz
•
9th Grade
16 questions
Serial Communication - Sensors
Quiz
•
9th Grade
15 questions
Parcial - Módulo IV
Quiz
•
1st Grade - University
10 questions
ofimatica
Quiz
•
1st - 10th Grade
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade