Search Header Logo

U5 Arrays/Lists Homework

Authored by Jessica Fletcher

Computers

10th - 12th Grade

Used 19+ times

U5 Arrays/Lists Homework
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

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?