U5 Arrays/Lists Homework

U5 Arrays/Lists Homework

10th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

Python Functions 1

Python Functions 1

12th Grade

12 Qs

Unit 7- Lesson 11: Assessment Day

Unit 7- Lesson 11: Assessment Day

9th - 12th Grade

15 Qs

Python: Functions and Parameters

Python: Functions and Parameters

9th - 12th Grade

10 Qs

NISD CS AP Exam Prep

NISD CS AP Exam Prep

10th - 12th Grade

12 Qs

Creating and Altering Data Structure

Creating and Altering Data Structure

9th - 12th Grade

15 Qs

Python - Loops & Lists

Python - Loops & Lists

7th - 11th Grade

15 Qs

Project-Stem Unit 1 python coding

Project-Stem Unit 1 python coding

9th - 12th Grade

12 Qs

Comp Sci Unit 3.b

Comp Sci Unit 3.b

11th Grade

15 Qs

U5 Arrays/Lists Homework

U5 Arrays/Lists Homework

Assessment

Quiz

Computers

10th - 12th Grade

Medium

Created by

Jessica Fletcher

Used 19+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

List myList contains integer values. Which of the following code segments will remove all negative values from myList?

I only

II only

I and II

Neither I nor II

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The code segment finds the sum of all numbers, num, in the list numList. what code segment will find the product of all numbers, num, in list numList?

Media Image
Media Image
Media Image
Media Image

3.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Media Image

Consider a program that attempts to store the sum of all elements in listA that are greater than the previous element. Choose corrections that must be made in order to make the code run as expected.


SELECT TWO ANSWERS.

Media Image
Media Image
Media Image
Media Image

4.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Media Image

The code displays whether a number, x, is even. Choose two things that are true about the program.


SELECT TWO ANSWERS.

The program uses Boolean algebra.

The program demonstrates searching for an item.

The program, for certain values of x, will display both "EVEN" and "NOT EVEN".

The program provides a definite answer to the question, "Is x even?".

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

If myList contains the values ['b', 'i', 'n', 'a', 'r', 'y'], what does mystery(myList) display?

binary

bnry

ia

iay

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Determine the value of count if the values in numList are 1, 5, 6, 3, 3, 1.

1

2

3

4

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Determine the value of count if the values in numList are 1, 5, 6, 3, 3, 1.

1

2

3

4

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?