Python Quiz

Python Quiz

10th Grade

15 Qs

quiz-placeholder

Similar activities

Forestry Tree ID Quiz 3

Forestry Tree ID Quiz 3

9th - 12th Grade

20 Qs

Forestry Tree ID Quiz 2

Forestry Tree ID Quiz 2

9th - 12th Grade

20 Qs

Re Hiragana Quiz rarirurero 2025

Re Hiragana Quiz rarirurero 2025

12th Grade

15 Qs

Compound Events

Compound Events

10th Grade

19 Qs

Unit 2 Test B

Unit 2 Test B

9th Grade - University

15 Qs

Python Programming Quiz

Python Programming Quiz

University

20 Qs

Arnold's Apple Tree Quiz

Arnold's Apple Tree Quiz

2nd Grade - University

20 Qs

2024 Publications A Exam Review

2024 Publications A Exam Review

12th Grade

20 Qs

Python Quiz

Python Quiz

Assessment

Quiz

others

10th Grade

Easy

Created by

harsha singh

Used 15+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the correct file extension for Python files?
.py
.pyt
.pt
.pyth

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the correct way to create a function in Python?
def myFunction():
function myfunction():
create myFunction():

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

In Python, 'Hello', is the same as "Hello"
True
False

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which operator is used to multiply numbers?
*
#
%
x

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of these collections defines a LIST?
["apple", "banana", "cherry"]
{"name": "apple", "color": "green"}
("apple", "banana", "cherry")
{"apple", "banana", "cherry"}

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How do you start writing a while loop in Python?
while x > y:
x > y while {
while (x > y)
while x > y {

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which statement is used to stop a loop?
break
exit
stop
return

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?