Search Header Logo

Mod 2 quiz 1

Authored by Scott Freeman

Computers

9th - 12th Grade

Used 1+ times

Mod 2 quiz 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following program?

print ("My\nname\nis\nBond. ", end= "")

print ("James Bond")

My

name

is

Bond. James Bond

My

name

is

Bond.

James Bond

My

name

is

Bond.

James

Bond

error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following program?

print (sep="&", "fish", "chips")

fish & chips

& fish chips

fish chips &

error

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following codes will cause an error

print('Greg\'s book.')

print("'Greg's book.'")

print('"Greg\'s book."')

print("Greg\'s book.")

print ('"Greg's book.''')

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of literals are the followings examples

"Hello" and "007"

Integer

String

Float

Boolean

5.

MATCH QUESTION

1 min • 1 pt

Match the following literals

String

False

Float

528

Boolean

"1.5"

Integer

2.0

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What is the base 10 value when the binary is 1011

7.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What is the expected value of the following code?

print((2**4), (2*4), (2*4))

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?