Unit 5 Review #2 - Lists, Loops, and Traversals (cont)

Unit 5 Review #2 - Lists, Loops, and Traversals (cont)

9th Grade

16 Qs

quiz-placeholder

Similar activities

Computer Science - Python

Computer Science - Python

9th - 12th Grade

15 Qs

Scratch

Scratch

7th - 9th Grade

19 Qs

Python Functions

Python Functions

9th - 12th Grade

13 Qs

CS Principles Unit 5 Assessment

CS Principles Unit 5 Assessment

9th - 12th Grade

20 Qs

AP CSP Unit 2 Quiz 1 Review

AP CSP Unit 2 Quiz 1 Review

9th - 12th Grade

17 Qs

Unit 6 APCSP

Unit 6 APCSP

9th - 12th Grade

17 Qs

Code.org AP Computer Science Principles Unit 6

Code.org AP Computer Science Principles Unit 6

9th - 12th Grade

17 Qs

Code.org Unit 6 Test

Code.org Unit 6 Test

9th - 12th Grade

17 Qs

Unit 5 Review #2 - Lists, Loops, and Traversals (cont)

Unit 5 Review #2 - Lists, Loops, and Traversals (cont)

Assessment

Quiz

Computers

9th Grade

Easy

Created by

Zachary Jernigan

Used 26+ times

FREE Resource

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an iteration in the context of loops?

The process of repeating a set of instructions

The termination of the loop

The condition for the loop to continue

The output of the loop

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the 'append' function do in the context of lists?

Adds an element to the end of the list

Removes the last element of the list

Sorts the list in ascending order

Reverses the order of the list

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an index in the context of lists?

The position of an element in the list

The total number of elements in the list

The data type of the elements in the list

The name of the list

4.

MATCH QUESTION

1 min • 1 pt

Match the following indexes to the proper element using the list below:

var list = [ 17 , "pizza", 29, "Mixer RIP", "For Democracy!" ];

"pizza"

list [2]

"For Democracy!"

list [0]

17

list [list.length-2]

"Mixer RIP"

list [1]

29

list [list.length-1]

5.

CLASSIFICATION QUESTION

3 mins • 1 pt

Organize these options into the right categories

Groups:

(a) Types of Traversals

,

(b) Types of Loops

Infinite

Reduce

While

Filter

For

Map

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The code shown is run. Which of the following is an impossible outcome based on the code?

Heads: 51

Tails: 49

Heads: 20

Tails: 30

Heads: 100

Tails: 0

Heads: 50

Tails: 50

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

In which square will the robot end up in if the following code is run?

var steps=0;

while(steps<3){

moveFoward();

steps++;

}

C2

E5

A1

B2

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?