Mod 2 quiz 1

Mod 2 quiz 1

9th - 12th Grade

9 Qs

quiz-placeholder

Similar activities

Arrays

Arrays

10th - 12th Grade

10 Qs

1.2 Basic String Manipulation

1.2 Basic String Manipulation

9th Grade

10 Qs

PRINT MEDIA

PRINT MEDIA

12th Grade

10 Qs

For Loops HW

For Loops HW

9th - 12th Grade

12 Qs

Intro to Python

Intro to Python

9th - 12th Grade

10 Qs

Python Iteration

Python Iteration

10th Grade

13 Qs

For Loops (Java)

For Loops (Java)

9th - 12th Grade

14 Qs

Python Programming - Iteration

Python Programming - Iteration

9th Grade

12 Qs

Mod 2 quiz 1

Mod 2 quiz 1

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

Scott Freeman

Used 1+ times

FREE Resource

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

2.0

Integer

"1.5"

Float

528

Boolean

False

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))

8.

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),(-2//4))

9.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What is the expected value of the following code?

print((2%-4), (2%4), (2**3**2))