Python Quiz

Python Quiz

10th Grade

15 Qs

quiz-placeholder

Similar activities

Quiz on IoT Concepts

Quiz on IoT Concepts

University

10 Qs

Re Hiragana Quiz rarirurero 2025

Re Hiragana Quiz rarirurero 2025

12th Grade

15 Qs

Python Programming Quiz

Python Programming Quiz

University

20 Qs

Introduction to Python

Introduction to Python

11th Grade

18 Qs

Science Quiz

Science Quiz

12th Grade

13 Qs

Arnold's Apple Tree Quiz

Arnold's Apple Tree Quiz

2nd Grade - University

20 Qs

Tree ID Test 5

Tree ID Test 5

9th - 12th Grade

20 Qs

Forestry Tree ID Quiz 3

Forestry Tree ID Quiz 3

9th - 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?