Unit 5 - Lists, Loops, and Traversals Test Review

Unit 5 - Lists, Loops, and Traversals Test Review

9th Grade

15 Qs

quiz-placeholder

Similar activities

Input, output and storage de

Input, output and storage de

8th Grade - Professional Development

14 Qs

Robotica 2018

Robotica 2018

5th - 9th Grade

11 Qs

IT (data, viruses and more)

IT (data, viruses and more)

8th Grade - Professional Development

20 Qs

ICT 9 Quiz 1

ICT 9 Quiz 1

9th Grade

10 Qs

Roblox! (Royale High

Roblox! (Royale High

2nd - 12th Grade

10 Qs

Cos’è la ROM?

Cos’è la ROM?

6th - 12th Grade

10 Qs

7.02 going online

7.02 going online

4th - 9th Grade

10 Qs

hardware and software(g3)

hardware and software(g3)

2nd - 10th Grade

10 Qs

Unit 5 - Lists, Loops, and Traversals Test Review

Unit 5 - Lists, Loops, and Traversals Test Review

Assessment

Quiz

Computers

9th Grade

Practice Problem

Easy

Created by

Zachary Jernigan

Used 57+ 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

Which of the following is a benefit of using a list over a variable?

Lists can hold more than one value

Lists convert all elements to Strings

Lists allow duplicate values in a more manageable way then variables.

Only lists can be used be used with user input

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What would be the element at index 3 of the following list:

[1, 4, 6, 8, 10, 11]

8

6

10

11

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Strings also have an index where each character is an element. What character would be at the index of 2 for a String with value "Hello!"

l

e

H

o

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Usually we start indexes at 0. For this question assume that the indexes start at 1. Which element would be at index 1 of the following list:
[1, 9, 2, 3, 5, 11]

1

9

11

3

Answer explanation

Usually we do start the indexes at 0 but this question specifically says that you should assume the indexes start at 1. Despite no major programming language using this convention, the AP Test loves to do this.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the appendItem() function do in App Lab?

Adds elements to the end of the list

Adds elements into the middle of the list at a given index

Adds elements to the beginning of a list.

Adds elements at random indexes in the list.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What would be output as a result of the following loop?

Assume no errors are thrown when this code is run

red red red blue red red red blue

red blue red blue red blue

red red blue red red blue red red blue

blue blue red red red red red red

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A list contains 10 elements. Which of the following would be a valid index for this list?

5

2.5

10

"Hello"

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?

Discover more resources for Computers