Python Quiz 2

Python Quiz 2

2nd - 4th Grade

16 Qs

quiz-placeholder

Similar activities

Principios y Valores de la Democracia

Principios y Valores de la Democracia

1st - 3rd Grade

11 Qs

Repasamos la ortografía

Repasamos la ortografía

2nd Grade

11 Qs

las palabras según el Acento.

las palabras según el Acento.

1st - 12th Grade

15 Qs

kelas 3 tema 8 sub 3

kelas 3 tema 8 sub 3

3rd Grade

20 Qs

ENZIMAS

ENZIMAS

1st - 5th Grade

15 Qs

Mobile legends quiz melayu

Mobile legends quiz melayu

1st Grade - Professional Development

13 Qs

Iron Man

Iron Man

1st Grade - University

12 Qs

Alberta Natural Resources #2

Alberta Natural Resources #2

KG - University

12 Qs

Python Quiz 2

Python Quiz 2

Assessment

Quiz

Other

2nd - 4th Grade

Medium

Created by

Mahesh Regmi

Used 4+ times

FREE Resource

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

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?