COMPSCI 101 - Lab 09 (FA23) Exam 2 Review

COMPSCI 101 - Lab 09 (FA23) Exam 2 Review

University

41 Qs

quiz-placeholder

Similar activities

Introduction to CNC Machine tools

Introduction to CNC Machine tools

University

42 Qs

Know Your Knowledge

Know Your Knowledge

11th Grade - University

36 Qs

EOSDD

EOSDD

University

46 Qs

PRO-LETS-1ST-ROUND

PRO-LETS-1ST-ROUND

University

45 Qs

C PROGRAMMING BASIC QUIZ1

C PROGRAMMING BASIC QUIZ1

University

45 Qs

C Programming Quiz

C Programming Quiz

University

44 Qs

practice

practice

University

46 Qs

SOLAR PV QUIZ

SOLAR PV QUIZ

University

41 Qs

COMPSCI 101 - Lab 09 (FA23) Exam 2 Review

COMPSCI 101 - Lab 09 (FA23) Exam 2 Review

Assessment

Quiz

Education

University

Medium

Created by

Aloye Oshotse

Used 49+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?