AP CSP UNit 6 - Lists loops and Traversals

AP CSP UNit 6 - Lists loops and Traversals

9th - 12th Grade

36 Qs

quiz-placeholder

Similar activities

Their Python Exam

Their Python Exam

9th Grade - Professional Development

31 Qs

Python Unit 11 - Collections: Dictionary, List, Set, Tuple

Python Unit 11 - Collections: Dictionary, List, Set, Tuple

6th - 12th Grade

40 Qs

Mastering Python Lists

Mastering Python Lists

11th Grade

35 Qs

Python 3rd Q Review

Python 3rd Q Review

9th - 12th Grade

37 Qs

Midterm prep 7th

Midterm prep 7th

7th Grade - University

41 Qs

2.2 Programming Fundamentals Knowledge Check

2.2 Programming Fundamentals Knowledge Check

9th - 12th Grade

32 Qs

SSW-NGS-G11-Exam JUN-PreTest-2023-2024

SSW-NGS-G11-Exam JUN-PreTest-2023-2024

11th Grade

40 Qs

Python - Lists, Dictionaries and Loops

Python - Lists, Dictionaries and Loops

9th - 12th Grade

40 Qs

AP CSP UNit 6 - Lists loops and Traversals

AP CSP UNit 6 - Lists loops and Traversals

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Suneetha Pedi

Used 27+ times

FREE Resource

36 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the definition of a List?

An ordered collection of elements

Where information is stored in a variable

The number that identifies each individual element

Where information is written in Java

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following creates a list in the code?

var aList( )

aList{ }

var aList[ ]

aList: ;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following commands adds an element to the end of the list?

append.list(element)

append.Item(list, element)

list.append()

(element)append

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

An Element is an individual value in a list that is assigned a unique index

True

False

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The length of a list is how many elements it contains. Lists can grow or shrink as elements are added or removed, but the length of the list does not change.

True

False

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the value at index 1

74

53

22

favNums

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What do code do we use to up the "counter" variable by 1 each time we traverse through a "for" loop?

Var i = i + 1

i = 0

i ++

i +

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?