Traversal & String Method Review

Traversal & String Method Review

9th - 12th Grade

19 Qs

quiz-placeholder

Similar activities

Yr7- Understanding computers Lessons 1-3

Yr7- Understanding computers Lessons 1-3

7th - 11th Grade

20 Qs

INFORMATIKA

INFORMATIKA

12th Grade

15 Qs

Mengenal Internet dan Jaringan Local

Mengenal Internet dan Jaringan Local

12th Grade

15 Qs

Asesmen Sumatif

Asesmen Sumatif

12th Grade

15 Qs

Informatika

Informatika

10th Grade

20 Qs

Chapter 8: Safety and security

Chapter 8: Safety and security

10th - 11th Grade

14 Qs

Traffic Light Project Quiz

Traffic Light Project Quiz

9th Grade

17 Qs

CSS - Computer Systems Services

CSS - Computer Systems Services

12th Grade

20 Qs

Traversal & String Method Review

Traversal & String Method Review

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Medium

Created by

Donna Panter

Used 87+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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]

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?