CSP Unit 5 Pre-Assessment: Lists, Loops, Traversals

Flashcard
•
Mathematics, Computers
•
11th - 12th Grade
•
Hard
Quizizz Content
FREE Resource
Student preview

15 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What is a list in programming?
Back
A list is a data structure that holds an ordered collection of items, which can be of different types.
2.
FLASHCARD QUESTION
Front
What does the appendItem function do?
Back
The appendItem function adds an item to the end of a list.
3.
FLASHCARD QUESTION
Front
What does the removeItem function do?
Back
The removeItem function removes an item from a list at a specified index.
4.
FLASHCARD QUESTION
Front
What is the purpose of the insertItem function?
Back
The insertItem function adds an item to a list at a specified index, shifting subsequent items.
5.
FLASHCARD QUESTION
Front
How do you access the last item in a list?
Back
You can access the last item in a list using the index 'length - 1'.
6.
FLASHCARD QUESTION
Front
What is the output of console.log(numbersList.length) if numbersList = [20, 10, 5, 50, 100, 30]?
Back
The output will be 6.
7.
FLASHCARD QUESTION
Front
What is the difference between a list and an array?
Back
In many programming languages, a list is a more general term for a collection of items, while an array is a specific type of list with a fixed size.
Create a free account and access millions of resources
Similar Resources on Wayground
13 questions
Python Arrays

Flashcard
•
9th - 12th Grade
11 questions
Java String Objects & Methods

Flashcard
•
12th Grade
14 questions
AP CS ArrayLists

Flashcard
•
12th Grade
14 questions
PYTHON -- Lists v2

Flashcard
•
9th - 12th Grade
10 questions
Arrays

Flashcard
•
10th - 12th Grade
18 questions
Loops, Lists, Traversals test

Flashcard
•
11th Grade
10 questions
Fall Semester Final (Version B) - CS Principles

Flashcard
•
11th Grade
9 questions
Unit 5 -- Lists, Loops, Traversals

Flashcard
•
9th - 12th Grade
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade