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

Flashcard
•
Mathematics, Computers
•
11th - 12th Grade
•
Hard
Wayground 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
15 questions
Geo Support Unit 8 Final PreFlashcard

Flashcard
•
9th - 12th Grade
20 questions
Unit 5 Flashcard - Loops & Lists (code.org)

Flashcard
•
10th - 12th Grade
15 questions
TSI Math Review

Flashcard
•
10th Grade
16 questions
Review Supply and Demand

Flashcard
•
10th - 12th Grade
14 questions
HTML - Flashcard 2

Flashcard
•
9th Grade - University
18 questions
Loops, Lists, Traversals test

Flashcard
•
11th Grade
15 questions
ACT Practice #1

Flashcard
•
11th Grade
16 questions
Python 2D Lists Flashcard

Flashcard
•
10th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Mathematics
20 questions
Parallel lines and transversals

Quiz
•
9th - 12th Grade
9 questions
Geometry and Trigonometry Concepts

Interactive video
•
9th - 12th Grade
31 questions
2.1.3 Angle relationships

Quiz
•
10th - 11th Grade
10 questions
Angle Relationships with Parallel Lines and a Transversal

Quiz
•
9th - 12th Grade
11 questions
Solving Multistep Equations Quiz

Quiz
•
11th Grade
10 questions
Intro to Parallel and Perpendicular Slopes

Quiz
•
9th - 12th Grade
15 questions
Absolute Value Equations and Inequalities

Quiz
•
9th - 11th Grade
15 questions
Intro To Compound Inequalities

Quiz
•
9th - 12th Grade