Python Programming Quiz

Python Programming Quiz

11th Grade

15 Qs

quiz-placeholder

Similar activities

Data Manipulation IGCSE (Introduction to database) Grade 10

Data Manipulation IGCSE (Introduction to database) Grade 10

10th - 11th Grade

20 Qs

Bermain Gambar

Bermain Gambar

1st Grade - Professional Development

15 Qs

Grade 11 Term 4 Practice 2

Grade 11 Term 4 Practice 2

11th Grade

10 Qs

Yr 11 ICT quiz 1 Networks & Security

Yr 11 ICT quiz 1 Networks & Security

10th - 11th Grade

20 Qs

Computing figures

Computing figures

4th - 12th Grade

14 Qs

Written Works 4 (ICT A)

Written Works 4 (ICT A)

11th Grade

20 Qs

CIW

CIW

9th - 12th Grade

15 Qs

Do you know alot about Roblox?

Do you know alot about Roblox?

2nd Grade - University

10 Qs

Python Programming Quiz

Python Programming Quiz

Assessment

Quiz

Computers

11th Grade

Practice Problem

Hard

Created by

Rajath Vijayakumar

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 is the output of the following code? for i in range(3): print(i, end=' ')

0 1 2 3

1 2 3

0 1 2

Error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax for a while loop in Python?

while (condition) {}

while condition:

while: condition

while(condition):

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the break statement do in a loop?

Skips the current iteration

Exits the loop completely

Terminates the program

Repeats the loop

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code? x = 10 if x > 5: print("Greater") else: print("Smaller")

Greater

Smaller

Error

None

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid Python if-else syntax?

if (condition): else:

if condition: else:

if condition: elif:

if condition: else:

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of this code? x = 5 if x < 10: if x % 2 == 0: print("Even") else: print("Odd") else: print("Greater")

Even

Odd

Greater

None

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the return statement do in a function?

Stops the function and returns a value

Outputs the value to the console

Iterates through the function

Restarts the function

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?