Search Header Logo

FYB: Review

Authored by Joseph Green

Computers

Professional Development

Used 1+ times

FYB: Review
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these variable assignments will create a list?

my_list = ""

my_list = []

my_list = ()

my_list = {}

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these variable assignments will create a tuple?

my_list = ""

my_list = []

my_list = ()

my_list = {}

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct syntax to access the last item in a list?

my_list[-1]

my_list[last]

my_list[last()]

my_list[-last]

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the following code do if my_list = [1, 2, 3, 4, 5]?
my_list[1] = 10

Replace the 2nd item in my_list with 10

Add 10 to the list

change my_list to 10

Create an error

5.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Fill in the blank to make x a string: x = ___(10)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is NOT valid if name = "joe"?

print(name + "green")

print("name green")

print name + (green)

x = name + "green"

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the value of x? x = 10 < 10

0

10

True

False

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?