Search Header Logo

DS Exam 1

Authored by Joshua Mari Pantas

Computers

Professional Development

Used 3+ times

DS Exam 1
AI

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

Direct access using index

Sequential storage

Same data type requirement

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?

Arrays can't store strings
Limited memory capacity
Elements must shift to make space
Array size is fixed

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?

Indexed access
Dynamic resizing
Ordered elements
Duplicate handling

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?

Too slow for access
Cannot determine size in advance
Uses too much memory
Cannot store varied data

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?

Adding books
Searching/checking existence
Removing books
Counting books

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?

Fastest structure
Most recent action needs to be undone first
Saves memory
Allows random access

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?

Queue behavior
Stack (LIFO) behavior
Array indexing
Tree hierarchy

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?