Basic Data Structures - Intro to CS

Basic Data Structures - Intro to CS

12th Grade

15 Qs

quiz-placeholder

Similar activities

CALL: TOEFL Exercise skill 1-3

CALL: TOEFL Exercise skill 1-3

12th Grade

10 Qs

OOP 1 Undiksha

OOP 1 Undiksha

12th Grade - University

13 Qs

BIM1014 Quiz 2

BIM1014 Quiz 2

KG - University

15 Qs

Chapter 3 Exploring Linux Filesystems

Chapter 3 Exploring Linux Filesystems

11th Grade - University

10 Qs

 Unit 4 Advanced AP CSP

Unit 4 Advanced AP CSP

9th - 12th Grade

10 Qs

Revision Gr2-2025

Revision Gr2-2025

3rd Grade - University

12 Qs

After Effect Intoduction

After Effect Intoduction

10th Grade - University

15 Qs

Google Aptitude Test

Google Aptitude Test

KG - University

10 Qs

Basic Data Structures - Intro to CS

Basic Data Structures - Intro to CS

Assessment

Quiz

Computers

12th Grade

Practice Problem

Medium

Created by

Christina Perry

Used 28+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following program?

[1, 3, 4, 5]

2

[1, 2, 3]

[4, 5]

[1, 2, 4, 5]

3

[3, 4, 5]

[4, 5]

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the following array:

var groceries = ["milk", "eggs", "bread", "cookies"];

Which of the following statements will change "bread" to "coffee"?

groceries.push("coffee");

groceries[2] = "coffee";

groceries["bread"] = "coffee";

groceries[3] = "coffee";

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Suppose we have a list schoolList shown below:

var schoolList = ["Richland", "Hanford", "Pasco"];

We want to write a function addSchool that will take a school list and an item as a parameter and add the item on to the end of the school list.

Which of the following is the correct implementation of addSchool?

Media Image
Media Image
Media Image
Media Image

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What does the following function bombers do?

Returns a copy of the list list, and does not modify the contents of the list.

Returns a copy of the list list, and leaves list empty.

Returns a new list containing the elements of the list list in reverse order, and leaves list empty.

Returns a new list contatining the elements of the list list in reverse order, and does not modify the contents of the list.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following program?

-1

1

0

2

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What elements can be stored in data structures?

Any kind of objects (anything you can store in a variable)

Strings of text and numerical values

Strings of text, numerical values, and booleans

numerical values

7.

DRAG AND DROP QUESTION

1 min • 1 pt

How do we add 6 on the end of this array?

var nums = [1, 2, 3, 4, 5];

nums​ (a)  

.push(6);
.push(5);
.pop(6);
.pop(5);
nums[0] = 6;
[3] = 6;

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?