Data Structures

Data Structures

8th Grade

9 Qs

quiz-placeholder

Similar activities

Podsumowanie: binarny, komputer, sieć

Podsumowanie: binarny, komputer, sieć

7th Grade - University

13 Qs

Redes GPON

Redes GPON

1st - 10th Grade

10 Qs

Introducción a la Informática

Introducción a la Informática

1st - 10th Grade

10 Qs

Word basics

Word basics

8th - 12th Grade

10 Qs

Internet

Internet

7th - 10th Grade

10 Qs

ม.2 แบบทดสอบก่อนเรียน หน่วย 2

ม.2 แบบทดสอบก่อนเรียน หน่วย 2

6th - 8th Grade

10 Qs

Do you know alot about Roblox?

Do you know alot about Roblox?

2nd Grade - University

10 Qs

Logos - Digital Images

Logos - Digital Images

2nd - 10th Grade

10 Qs

Data Structures

Data Structures

Assessment

Quiz

Computers

8th Grade

Hard

Created by

Seth Halpern

Used 5+ times

FREE Resource

AI

Enhance your content in a minute

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

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is the best description of a list in Python?

A list is a collection of data that has an order and can be changed

A list is a lot of variables

A list is used for shopping

A list is a collection of data that cannot hold duplicated data and cannot be changed

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is the correct code for creating a list of names?

nameList = John, Harry, Jesse, John, Harry, Harry

nameList = ("John", "Harry", "Jesse", "John", "Harry", "Harry")

nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]

nameList = [John, Harry, Jesse, John, Harry, Harry]

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these pieces of code would return the name "Harry" from the following list?

nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]

nameList()

nameList[1]

NameList(4)

nameList["4"]

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The list needs one more name added to the end - "Felipe". Which piece of code below would do this?

nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]

nameList.append(Felipe)

append(nameList,"Felipe")

nameList.append["Felipe",7]

nameList.append("Felipe")

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the syntax for creating a list in Python?

{}

[]

||

()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

big_list = [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]

What command will count the total number of elements in this list?

print(len(big_list))

print(len("big_list"))

big_list.pop(1)

big_list.append(1)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

names=["Joe", "Tom", "Sam", "Bill"]

What command will add "Tim" between "Sam" and "Bill"?

names.pop(3,"Tim")

names.append(3,"Tim")

names.insert(3,"Tim")

names.remove(3,"Tim")

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?