Mod 2 quiz 1

Mod 2 quiz 1

9th - 12th Grade

9 Qs

quiz-placeholder

Similar activities

الجملة التكرارية while Loop

الجملة التكرارية while Loop

11th Grade

14 Qs

Intro to Python

Intro to Python

9th - 12th Grade

10 Qs

Arrays

Arrays

10th - 12th Grade

10 Qs

Python Print Statement

Python Print Statement

6th - 10th Grade

12 Qs

PRINT MEDIA

PRINT MEDIA

12th Grade

10 Qs

Python Basics

Python Basics

12th Grade - University

10 Qs

Edhesive Python Unit 4: Test Review

Edhesive Python Unit 4: Test Review

10th - 11th Grade

10 Qs

python (loops)

python (loops)

11th Grade

10 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

Float

528

Boolean

2.0

Integer

"1.5"

String

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