Python

Python

10th Grade

10 Qs

quiz-placeholder

Similar activities

Instrucciones arduino uno

Instrucciones arduino uno

10th Grade

15 Qs

Python Strings and Variables

Python Strings and Variables

5th Grade - University

8 Qs

Intro to Python Programming Quiz 9B

Intro to Python Programming Quiz 9B

10th Grade - University

14 Qs

#Sg_Spaic Last season Quiz (ML and Python)

#Sg_Spaic Last season Quiz (ML and Python)

KG - Professional Development

10 Qs

Python foundation

Python foundation

5th Grade - University

10 Qs

Intro to Python Programming Quiz 9C

Intro to Python Programming Quiz 9C

10th Grade - University

12 Qs

Evaluasi Mata Pelajaran Informatika

Evaluasi Mata Pelajaran Informatika

10th Grade

10 Qs

Introductory Quiz

Introductory Quiz

9th - 12th Grade

10 Qs

Python

Python

Assessment

Quiz

Other

10th Grade

Medium

Created by

Prasoon Jha

Used 1+ times

FREE Resource

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():

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?