Python

Python

10th Grade

10 Qs

quiz-placeholder

Similar activities

snakes

snakes

3rd Grade - University

10 Qs

history of money

history of money

10th - 11th Grade

11 Qs

Business Studies- 3.2 Meeting customer needs

Business Studies- 3.2 Meeting customer needs

10th - 12th Grade

11 Qs

US-Indonesia Cooperation in Environmental Issues

US-Indonesia Cooperation in Environmental Issues

10th Grade - University

10 Qs

Fungsi-fungsi program pengolah angka

Fungsi-fungsi program pengolah angka

10th Grade

10 Qs

Evolution Vocabulary Quiz

Evolution Vocabulary Quiz

9th - 11th Grade

10 Qs

Lesson 13 Stirring Love of Country

Lesson 13 Stirring Love of Country

10th Grade

10 Qs

Histoire définitions

Histoire définitions

10th Grade

12 Qs

Python

Python

Assessment

Quiz

Other

10th Grade

Practice Problem

Medium

Created by

Prasoon Jha

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a boolean expression?

True

 3 == 4


3 + 4 == 7


3 + 4

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What does the following code print?


Output a

Output b

Output c


It will cause an error

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to execute a block of code if the condition in the if statement is false?


else

elif


while

for

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

 What is the purpose of the elif statement in Python?


To execute a block of code if the previous conditions are false


To define a loop


To perform arithmetic operations


To exit from a loop

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will the following code snippet print?


apple banana cherry

[“apple”, “banana”, “cherry”]


0 1 2


No output

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is output of following code?


25

7

2.5

10

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to define a function in Python?


function myFunction():


def myFunction():


create myFunction():


function: myFunction():

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?