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

Re Hiragana Quiz rarirurero 2025

Re Hiragana Quiz rarirurero 2025

12th Grade

15 Qs

Chủ đề F - YN

Chủ đề F - YN

10th Grade

14 Qs

CSB Checkpoint 1

CSB Checkpoint 1

12th Grade

10 Qs

Python, programmation conditionelle, boolean and boucle

Python, programmation conditionelle, boolean and boucle

University

15 Qs

Logo

Logo

9th - 12th Grade

20 Qs

The unreal conditional

The unreal conditional

University

13 Qs

Quiz on the s-Block Elements

Quiz on the s-Block Elements

12th Grade

15 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?