
Codenext Python Review Quiz

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
A A
Used 1+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
13 questions
JavaScript Variables

Quiz
•
3rd Grade - University
14 questions
Javascript Starter

Quiz
•
12th Grade
8 questions
KS3 Year 9 Python Quiz 02

Quiz
•
10th Grade
10 questions
C#

Quiz
•
11th Grade
10 questions
Python Basics Quiz

Quiz
•
7th Grade - University
15 questions
Javascript

Quiz
•
10th - 12th Grade
16 questions
Javascript Basics

Quiz
•
9th - 12th Grade
10 questions
python quiz

Quiz
•
6th Grade - Professio...
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
Discover more resources for Computers
50 questions
Trivia 7/25

Quiz
•
12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
6 questions
RL.10.1 Cite Evidence

Quiz
•
10th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
14 questions
Algebra 1 SOL Review #1

Quiz
•
9th Grade