
DS Exam 1
Authored by Joshua Mari Pantas
Computers
Professional Development
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
You need to store 1000 student grades and frequently access any grade by student number. Which property makes arrays most efficient for this?
No need to explain
Sequential storage
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
A program needs to insert names at various positions in a list of 10,000 names. Why would this be slow with an array?
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
You're building a shopping cart that needs to grow as users add items and shrink as they remove them. What list property solves this?
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
An application needs a collection that sometimes has 10 items, sometimes 1000. Why is a fixed-size array problematic?
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
You need to frequently check if a specific book exists in a library of 50,000 books. Which operation would you use repeatedly?
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
You're implementing an 'undo' feature for a drawing app. Each action is saved. Why does a stack make sense here?
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You're stacking dinner plates. The last plate you put on top is the first one you'll use. This demonstrates which concept?
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?