Traversal & String Method Review

Traversal & String Method Review

9th - 12th Grade

19 Qs

quiz-placeholder

Similar activities

C# 101 Assessment

C# 101 Assessment

9th - 12th Grade

20 Qs

Python - List and Tuples

Python - List and Tuples

11th - 12th Grade

20 Qs

CSP - Quiz  For Loops/Libraries

CSP - Quiz For Loops/Libraries

12th Grade

20 Qs

AP Computer Science Principles Unit 5 Review Lists

AP Computer Science Principles Unit 5 Review Lists

9th - 12th Grade

20 Qs

Code.org Unit 5 Test

Code.org Unit 5 Test

11th Grade

15 Qs

python quiz

python quiz

12th Grade

20 Qs

Unit 4 Review (AP CSP)

Unit 4 Review (AP CSP)

9th - 12th Grade

21 Qs

Traversal & String Method Review

Traversal & String Method Review

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Donna Panter

Used 87+ times

FREE Resource

19 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The process of accessing every item in a list is considered which of the following?

for Loops

traversals

while Loops

appendItems

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

A program is designed to determine the minimum value in a list of positive numbers called numList. Which of the following can be used to replace <MISSING CODE> so that the program works as intended for every possible list of positive numbers?

0

1000000

numList.length

numList[0]

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What are the values of count1 and count2 as a result of executing the code segment?

count1 = 2,

count2 = 2

count1 = 2,

count2 = 3

count1 = 3,

count2 = 2

count1 = 5,

count2 = 0

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which of the following will result in ONLY all the items in list being printed to the console if placed where the program reads <INSERT CODE> and the program is run?

i < list[list.length]

i < list.length

i < list[0]

i < list[1]

5.

MULTIPLE CHOICE QUESTION

0 sec • 1 pt

Media Image

ages and names contain information about students in a classroom. A programmer has already written the code with that information.

Which of the following programs will result in filteredNames only containing the names of students who are 17 or older?

Media Image
Media Image
Media Image
Media Image

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

If the program is run, what will be displayed in the console?

[apple, dream]

[bug, car, ear]

[bug, car, ear, food]

[apple, dream, food]

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

A program is designed to determine the minimum value in a list of positive numbers called numList. Which of the following can be used to replace <MISSING CODE> so that the program works as intended for every possible list of positive numbers?

0

1000000

numList.length

numList[0]

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?