Traversal Practice code.org unit 6

Traversal Practice code.org unit 6

Assessment

Flashcard

Computers

12th Grade

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

10 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What will happen when this code runs? Options: it will print each fruit and the price on a new line, It will print all the fruits and prices at once, It will print "fruit cost price", It will change the fruit list to be the price list

Back

it will print each fruit and the price on a new line

2.

FLASHCARD QUESTION

Front

What goes in the part that's blacked out? Options: i < foot.length, i < fruit, i < fruits, i < fruits.length

Back

i < fruits.length

3.

FLASHCARD QUESTION

Front

What goes in the part that's blacked out? Options: var i = 0, i = fruit, i < fruits.length, i = 0

Back

var i = 0

4.

FLASHCARD QUESTION

Front

What does this code do?

Back

prints the index + 1 number and the name of the pet for each pet in the favoritePets list

5.

FLASHCARD QUESTION

Front

What is created at the end of this loop?

Back

Animal words that are greater than 5 letters are put into a filtered list

6.

FLASHCARD QUESTION

Front

If the animal whose length of their name is greater than 5 are put into a list, what should that list look like at the beginning of the code?

Back

var animalsFiltered = []

7.

FLASHCARD QUESTION

Front

What does this code do? Options: Finds the maximum price, Prints each price, Does nothing, Finds the minimum price

Back

Finds the minimum price

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?