CS1 Unit 8 Review

CS1 Unit 8 Review

9th - 12th Grade

18 Qs

quiz-placeholder

Similar activities

Lists, Loops and Traversals

Lists, Loops and Traversals

10th - 12th Grade

15 Qs

Code.org AP CSP Lists

Code.org AP CSP Lists

9th - 12th Grade

20 Qs

Lists and Loops in Computer Science

Lists and Loops in Computer Science

10th - 12th Grade

20 Qs

Unit 6: Loops and Traversals Test

Unit 6: Loops and Traversals Test

10th - 12th Grade

20 Qs

CSP Loops Lists Traversals

CSP Loops Lists Traversals

10th - 12th Grade

20 Qs

Unit 5 Quiz - Loops & Lists (code.org)

Unit 5 Quiz - Loops & Lists (code.org)

10th - 12th Grade

20 Qs

AP CSP Unit 6

AP CSP Unit 6

10th - 12th Grade

20 Qs

Python Lists

Python Lists

11th Grade

20 Qs

CS1 Unit 8 Review

CS1 Unit 8 Review

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

Sarah Chapa

Used 5+ times

FREE Resource

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

The ___________ method removes the first occurrence of an element in a list.

append

len

remove

pop

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is true about a function?

It is a collection of commands that are given a name.

It is a collection of individual letters, digits, or symbols.

It is a variable that stores letters, numbers, and words, and is not used for calculations

It is a data structure that holds many pieces of data at the same time.

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Consider the following code:

What is output when the user enters 80?

Values above 80: 5

Values above 80: 9

Values above 80: 7

Values above 80: 2

4.

FILL IN THE BLANK QUESTION

20 sec • 1 pt

Media Image

Consider the following code:

What is the output?

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following can be used to create a list that has some initial values?

An element

An index

The insert method

An initializer list

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why do we use for loops with lists?

We can only use for loops with lists because while loops don’t work

For loops let us access every element of a list

For loops are faster than while loops for lists

We don’t; only while loops should be used with lists

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

The ____________ method can be used to add elements in the middle of the list.

pop

insert

extend

append

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?