Python U1M4A4

Python U1M4A4

9th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

Computer Security

Computer Security

8th - 10th Grade

10 Qs

3rd week g9 summative

3rd week g9 summative

7th - 12th Grade

15 Qs

TEST1.PY

TEST1.PY

10th Grade - University

20 Qs

SISTEM KOMPUTER KLS 9

SISTEM KOMPUTER KLS 9

9th Grade

10 Qs

Penilaian Harian-1, Pemrograman Berorientasi Objek (PBO)

Penilaian Harian-1, Pemrograman Berorientasi Objek (PBO)

12th Grade

10 Qs

Recap

Recap

12th Grade

10 Qs

Chapter 2: Input Device

Chapter 2: Input Device

12th Grade - University

12 Qs

KOMPUTER DAN JARINGAN DASAR

KOMPUTER DAN JARINGAN DASAR

10th Grade

10 Qs

Python U1M4A4

Python U1M4A4

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

Jennifer OKeefe

Used 12+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Nested Conditional code always runs all sub-conditions that are indented under if statements

True

False

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

if x < 0:

print("-")

else:

if y >= 0:

print("+/+")

else:

print("+/-")


The nested conditional code is sure to be run if _______. (Choose the best answer.)

x=1

x = -1

y= -1

y= 1

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

if x < 0:

print("-")

else:

if y >= 0:

print("+/+")

else:

print("+/-")


Which values for x and y result in the output "+/-"? (Choose the best answer.)

x=1 and y=0

x=0 and y=-1

x=0 and y=0

x=-1 and y=1

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

if True:

if False:

print("Banana")

else:

print("Apple")

else:

if True:

print("Dates"

else:

print("Corn")


What is the output of the above code?

"Apple"

"Banana"

"Corn"

"Dates"

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Escape sequences start with a backslash(\)

True

False

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Hello

World!


What is the best choice of code to create the output shown above?

print("Hello\pWorld!"

print("Hello World!"

print("Hello\nWorld!"

print("Hello\tWorld!"

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

\\\\


What is the best choice of code to create the output shown above?

print(""'\"\"\"\"\"')

print("\\\\")

print("\\\\\\\\")

print(\\\\)

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?