Search Header Logo

Mod 2 quiz 2

Authored by Scott Freeman

Computers

9th - 12th Grade

Used 1+ times

Mod 2 quiz 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

6 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What is the output for the following code?

var = 2

var = 3

print (var)

2.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which variable names are illegal in Python? pick 2

my_var

m

101

averylongVarablename

m 101

3.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What is the output of the following code

a = '1'

b = "2"

print (a+b)

4.

FILL IN THE BLANK QUESTION

1 min • 1 pt

what is the outcome of the code

a = 6

b = 3

c = a/2*b

print (a)

5.

FILL IN THE BLANK QUESTION

1 min • 1 pt

what is the output of this code

# print("string #1")

print("string #2")

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

#This is

a multiline

comment. #

print ("Hello!")

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?