Search Header Logo

Programming Concepts and Lists

Authored by Carolina Cuesta Zarate

Computers

6th Grade

Used 1+ times

Programming Concepts and Lists
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a constant in programming?

A constant is a variable that can be changed at any time.

A constant is a fixed value that cannot be changed during program execution.

A constant is a value that can only be used once in a program.

A constant is a type of function that returns a fixed value.

2.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which of the following is a variable?

true

y

x

5

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an array?

An array is a collection of variables without keys.

An array is a type of function.

An array is a collection of elements identified by index or key.

An array is a single element.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How is a list different from an array?

An array can contain mixed types and is dynamic.

A list is a type of array that is fixed-size.

A list can contain mixed types and is dynamic, whereas an array is fixed-size and homogeneous.

A list is always larger than an array.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an accumulator used for in programming?

An accumulator is used to store user input data.

An accumulator is used to reset the program's state after execution.

An accumulator is a type of variable that only holds boolean values.

An accumulator is used to maintain a cumulative value during iterations or recursive calls.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does an index represent in a list?

An index represents the position of an element in a list.

An index is a type of data structure.

An index is the value of an element in a list.

An index indicates the size of a list.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many elements are in the list: cities = ["New York", "London", "Tokyo", "Sydney"]?

6

5

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?