Search Header Logo

COMPSCI 101 - Lab 09 (FA23) Exam 2 Review

Authored by Aloye Oshotse

Education

University

Used 49+ times

COMPSCI 101 - Lab 09 (FA23) Exam 2 Review
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

41 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What is the output of this code?

8.0

4.0

10.0

7.0

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What is the output of this code?

True
False

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of this code?

a = [10, 20, 30, 50]

b = [10, 20, 30, 40]

a = [10, 20, 30, 40]

b = [10, 20, 30, 50]

a = [10, 20, 30, 50]

b = [10, 20, 30, 50]

a = [10, 20, 30, 40]

b = [10, 20, 30, 40]

Answer explanation

Concatenation of a + [50] creates a new list in memory

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What will this code output?

20, and then None

Only 20

Only None

None, and then 20

Answer explanation

Every function's default return value is None

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What is the output of this code?

DUms
DUims
DUim
DUimds

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What is the output of this code?

3

4

1
8

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What is the output of this code?

ocsou

csisf

reso!

science

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?