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

Unit #3 JavaScript

Unit #3 JavaScript

12th Grade

31 Qs

NJIT CS 100 Midterm 1 Review

NJIT CS 100 Midterm 1 Review

9th - 12th Grade

32 Qs

Mastering Python Lists

Mastering Python Lists

11th Grade

35 Qs

T1 Diagnostic 01.09.2024

T1 Diagnostic 01.09.2024

12th Grade

40 Qs

Programming Q3 Test Review Game Questions

Programming Q3 Test Review Game Questions

9th Grade

33 Qs

GCSE Programming Fundamentals

GCSE Programming Fundamentals

11th Grade

31 Qs

Lists and Loops in Python

Lists and Loops in Python

9th - 12th Grade

40 Qs

For Loop, List and Method in Python

For Loop, List and Method in Python

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?