
Introduction to Python Programming Quiz

Quiz
•
Information Technology (IT)
•
10th Grade
•
Medium
Peter Chan Chan
Used 3+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the print() function in Python?
To take user input
To display output
To define a variable
To create a loop
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid way to declare a variable in Python?
var length = 10
let length = 10
length := 10
length = 10
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the input() function return in Python?
An integer
A float
A string
A list
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following data types is NOT supported in Python?
Character
String
Float
Integer
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of print(type(12.0)) in Python?
bool
int
float
string
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator is used for exponentiation in Python?
^^
exp
**
^
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to start a for loop in Python?
for i in range(5):
for (i = 0; i < 5; i++)
for i = 0 to 5
for i in 5
Create a free account and access millions of resources
Similar Resources on Wayground
21 questions
Unit 3: Basic Python & Console Interaction

Quiz
•
9th - 12th Grade
16 questions
9 Weeks Test

Quiz
•
9th - 12th Grade
20 questions
Quiz tentang Google Colab

Quiz
•
10th Grade - University
20 questions
BÀI KIỂM TRA 15 PHÚT - Môn Tin Học 10 - HK2-PYTHON

Quiz
•
10th Grade - University
15 questions
Bài 28

Quiz
•
10th Grade - University
15 questions
Python for loop/lists

Quiz
•
9th Grade - University
15 questions
Python String Methods Quiz

Quiz
•
10th Grade
15 questions
Pemrograman Terstruktur Semester 2 (1) Fungsi

Quiz
•
10th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade