Python Day 2 Quiz

Python Day 2 Quiz

12th Grade

15 Qs

quiz-placeholder

Similar activities

Programming basics

Programming basics

12th Grade

15 Qs

Revamped New Hire Induction

Revamped New Hire Induction

KG - 12th Grade

15 Qs

Python Basic II

Python Basic II

11th Grade - University

20 Qs

Công dân với các quyền tự do cơ bản

Công dân với các quyền tự do cơ bản

1st Grade - University

10 Qs

IR test

IR test

11th Grade - Professional Development

19 Qs

TIK KD 3

TIK KD 3

1st - 12th Grade

20 Qs

Educação Física - Basquetebol

Educação Física - Basquetebol

8th - 12th Grade

10 Qs

Postes materi teks LHO

Postes materi teks LHO

12th Grade

20 Qs

Python Day 2 Quiz

Python Day 2 Quiz

Assessment

Quiz

Education

12th Grade

Practice Problem

Easy

Created by

durga p

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...

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code snippet? x = 10 if x > 5: print("x is greater than 5") else: print("x is less than or equal to 5")

x is less than or equal to 5

x is greater than 5

None

Error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid way to define a function in Python?

function myFunc() {}

def myFunc():

func myFunc[]:

define myFunc()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you declare a list in Python?

list = [1, 2, 3]

list = (1, 2, 3)

list = {1, 2, 3}

list = <1, 2, 3>

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the continue statement do in a loop?

exit from loop

execute the statement

jump to immediate loop execuetion

skip the execuetion

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code snippet? python def add(x, y=5): return x + y print(add(10))

10

15

5

Error

6.

OPEN ENDED QUESTION

3 mins • 1 pt

How can you check the type of a variable in Python?

Evaluate responses using AI:

OFF

7.

OPEN ENDED QUESTION

3 mins • 1 pt

What is the output of the following code? for i in range(3): print(i)

Evaluate responses using AI:

OFF

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?