Lists and Linked Lists

Lists and Linked Lists

12th Grade

26 Qs

quiz-placeholder

Similar activities

Code.org: Lists, Loops, and Traversals

Code.org: Lists, Loops, and Traversals

9th - 12th Grade

24 Qs

Code.org List

Code.org List

9th - 12th Grade

24 Qs

Programming Paradigms

Programming Paradigms

12th Grade

27 Qs

ATS Gasal-X TO 1

ATS Gasal-X TO 1

10th Grade - University

25 Qs

lists in python

lists in python

11th - 12th Grade

28 Qs

Keyboarding Pretest

Keyboarding Pretest

9th - 12th Grade

29 Qs

Diagnostic Test for Information Technology (C3)

Diagnostic Test for Information Technology (C3)

9th - 12th Grade

25 Qs

Data Structures

Data Structures

9th - 12th Grade

21 Qs

Lists and Linked Lists

Lists and Linked Lists

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Mr Applewhaite

FREE Resource

26 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a list in computer science?

A static data structure with fixed size

An abstract data type consisting of a number of items

A type of database management system

A programming language

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operation would you use to add a new item to the end of a list?

remove(item)

append(item)

index(item)

pop()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the operation isEmpty() check for in a list?

If the list contains a specific item

If the list is sorted

If the list is empty

If the list has more than one item

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you remove and return the last item in a list?

pop()

remove(item)

index(item)

append(item)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the example list [45, 13, 19, 13, 8], what is the return value of a.length()?

4

5

6

3

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Assume that list names holds the values James, Paul, Sophie, Holly, Nathan. What does the list hold after each of the following consecutive operations? (i) names.append("Tom") (ii) names.pop(3) (iii) names.insert(1, "Melissa")

['James', 'Melissa', 'Paul', 'Sophie', 'Tom', 'Nathan']

['James', 'Paul', 'Melissa', 'Sophie', 'Holly', 'Tom']

['James', 'Melissa', 'Paul', 'Sophie', 'Holly', 'Tom', 'Nathan']

['James', 'Paul', 'Sophie', 'Holly', 'Melissa', 'Tom']

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Suggest a different algorithm for adding a new element to a sequenced list.

Use a stack to add the element

Use a queue to add the element

Use binary search to find the position and insert

Use a hash table to add the element

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?