Python

Python

10th Grade

10 Qs

quiz-placeholder

Similar activities

0654_2018_ON_QP_22_Bio

0654_2018_ON_QP_22_Bio

9th - 10th Grade

13 Qs

Kuis OS dan Cara Komputer Bekerja

Kuis OS dan Cara Komputer Bekerja

10th Grade

10 Qs

Check your posture IQ

Check your posture IQ

7th - 10th Grade

10 Qs

BCSI AWARENESS

BCSI AWARENESS

KG - Professional Development

15 Qs

visualisasi Data

visualisasi Data

9th - 12th Grade

10 Qs

Computer program introduction quiz

Computer program introduction quiz

9th - 12th Grade

13 Qs

Logika Dan Algoritma Komputer

Logika Dan Algoritma Komputer

10th Grade

15 Qs

Entendendo o conhecimento

Entendendo o conhecimento

9th - 12th Grade

15 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?