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
10 questions
AP CSP Photo App List Flashcard

Flashcard
•
9th - 12th Grade
15 questions
TEST Semicolons, Colons, Dashes, Commas

Flashcard
•
11th Grade
18 questions
Unit 5 Vocab #1

Flashcard
•
12th Grade
15 questions
Punctuation

Flashcard
•
12th Grade
12 questions
Code.org Unit 6 Assessment Day

Flashcard
•
9th - 12th Grade
15 questions
Mobile CSP Unit 5 Vocab

Flashcard
•
10th - 12th Grade
13 questions
[2] Unit 3 Lists(mrlee280)

Flashcard
•
10th Grade
15 questions
Coupons and discounts

Flashcard
•
10th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Mathematics
20 questions
Multi-Step Equations and Variables on Both Sides

Quiz
•
9th - 12th Grade
12 questions
PCTI Stem Academy Gradebook Review

Lesson
•
9th - 12th Grade
20 questions
Points, Lines & Planes

Quiz
•
9th - 11th Grade
20 questions
Week 4 Memory Builder 1 (Squares and Roots) Term 1

Quiz
•
9th - 12th Grade
20 questions
Solve One and Two Step Equations

Quiz
•
9th - 11th Grade
16 questions
Positive vs Negative Intervals

Quiz
•
9th - 12th Grade
20 questions
Solving Absolute Value Equations

Quiz
•
11th - 12th Grade
17 questions
Identify Geometric Concepts and Relationships

Quiz
•
9th - 12th Grade