Search Header Logo

4.18 List Written Assessment

Authored by Joe Duncan

Computers

10th Grade

4.18 List Written Assessment
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following would not likely be best solved with a list?

A program to keep track of the names of this year's chorus singers

A program to draw circles

A program to find a bicycle that meets the users specifications

A program to keep track of the last year's AP CSP exam scores by student

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Use the following code segment to answer these questions:

aList ← [0, 1, 2, 3, 6]

FOR EACH item IN aList

{

item ← item MOD 2

}

Assume the index of the first item in this list is 1.

How many items are in aList after this code segment?

5

4

6

1

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Use the following code segment to answer these questions:

aList ← [0, 1, 2, 3, 6]

FOR EACH item IN aList

{

item ← item MOD 2

}

Assume the index of the first item in this list is 1.

What is the new value of aList[3] after this code segment?

2

0

5

-1

4.

MATH RESPONSE QUESTION

2 mins • 1 pt

Media Image

When this code executes, what is the maximum number of values that can be stored in test1?

Mathematical Equivalence

OFF

5.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Media Image

Identify the primary programming structures of this code segment. Select all that apply.

Sequential

Iteration

Selection

Function

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the values stored in list2 after this code segment executes?

6, 11, 16, 21

6, 7, 8, 9

0, 0, 0, 0

5, 10, 15, 20

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Identify by name or by example the type of loop that traverses a list and performs actions but does not modify or change the original values stored in the list.

FOREVER Loop

FOR EACH Loop

REPEAT n TIMES Loop

REPEAT UNTIL Loop

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?