Search Header Logo

Variables & Lists

Authored by Fazla Fairooz

Computers

6th Grade

Used 1+ times

Variables & Lists
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Create a variable named carname and assign the value Volvo to it.

carname = "Volvo"

Carname = "Volvo"

carname = Volvo

Volvo = carname

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Create a variable named x and assign the value 50 to it.

50 = x

50 = X

x = 50

X = 5 + 10

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Display the sum of 5 + 10, using two variables: x and y.

x = 5

y = 10

print(x + y)

x = 5

y = 5

print(x - y)

x = 5

y = 10

print(x)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Create a variable called z, assign x + y to it, and display the result.

x = 5

y = 10

a = x + y

print(z)

x = 5

y = 10

z = x + y

print(z)

x = 5

y = 10

z = x - y

print(z)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

From the following what is the incorrect variable name

Var = 5

Name = "Hello"

Python = False

2my-first_name = "John"

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Print the second item in the fruits list.

print(______)

Fill in the blank

7.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Change the value from "apple" to "kiwi", in the fruits list.


fruits = ["apple", "banana", "cherry"]

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?