Search Header Logo

Quiz 2.2

Authored by Mohand Mahmoud

Computers

Professional Development

Used 2+ times

Quiz 2.2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

26 questions

Show all answers

1.

FILL IN THE BLANKS QUESTION

1 min • 1 pt

if 5 == 10 (a)   4 == 4:

print("At least one of the statements is true")
output is : At least one of the statements is true

2.

FILL IN THE BLANKS QUESTION

1 min • 3 pts

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

Use the method to add "orange" to the end of fruits list.

(a)  

3.

FILL IN THE BLANKS QUESTION

1 min • 3 pts

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

Use the method to add "lemon" as the second item in the fruits list.




(a)  

4.

FILL IN THE BLANKS QUESTION

1 min • 3 pts

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

Use indexing to print the last item in the list.

(a)  

5.

FILL IN THE BLANKS QUESTION

1 min • 3 pts

fruits = {"apple", "banana", "cherry"}

more_fruits = ["orange", "mango", "grapes"]

Use the correct method to add multiple items (more_fruits) to the fruits set.

(a)  

6.

FILL IN THE BLANKS QUESTION

1 min • 3 pts

fruits = {"apple", "banana", "cherry"}

Use the method to add "orange" to the fruits set.

(a)  

7.

FILL IN THE BLANKS QUESTION

1 min • 3 pts

print(bool("abc"))


(a)  

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?