Codenext Python Review Quiz

Codenext Python Review Quiz

9th - 12th Grade

11 Qs

quiz-placeholder

Similar activities

Understanding Python Variables and Data Types

Understanding Python Variables and Data Types

9th Grade

8 Qs

Python Beginner

Python Beginner

12th Grade

10 Qs

Quiz Week 6

Quiz Week 6

10th Grade

10 Qs

Basic Python Coding

Basic Python Coding

11th - 12th Grade

15 Qs

Python

Python

9th Grade

10 Qs

KODEKIDDO HACK #MLH3

KODEKIDDO HACK #MLH3

4th Grade - University

10 Qs

JavaScript Quiz

JavaScript Quiz

9th Grade

15 Qs

Codenext Python Review Quiz

Codenext Python Review Quiz

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?