Search Header Logo

Python Quiz 2

Authored by Mahesh Regmi

Other

2nd - 4th Grade

Used 4+ times

Python Quiz 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of given code?
(indentation doesnt matter)
if False:
print("false")
else:
print("true")

false

true

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The else statement is compulsory after if statement

yes

no

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How to insert new value at the end of list?

append

strip

push

push_back

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following syntax is valid to get first item of a list?

a[0]

a(0)

a(-1)

a[-1]

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How to sort a list?

a.sort()

a.reverse()

a.sort_list()

a.ascending()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

which of the following operator checks if the two variables are equal

==

===

=

!=

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How to find the length of a list?

len(listName)

length(listName)

listName.length

listName.len

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?