
Python Programming Quiz
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
Shanmuka Priya B
Used 1+ times
FREE Resource
Enhance your content in a minute
45 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Python expression? 8 + 3 * 2
22
16
14
26
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which formula is used to calculate compound interest in Python when principal (P), rate (R), and time (T) are given?
CI = P * R * T
CI = P * (1 + R/100) ** T
CI = P + R + T
CI = (P * T) / R
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct formula to find the distance between two points (x1, y1) and (x2, y2)?
(x2 - x1) + (y2 - y1)
sqrt((x2 + x1)^2 + (y2 + y1)^2)
sqrt((x2 - x1)**2 + (y2 - y1)**2)
abs(x2 - x1) + abs(y2 - y1)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which Python function is used to read input from the keyboard?
print()
input()
read()
scan()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following data types is most suitable to store a phone number entered by a user?
int
float
str
bool
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is required to calculate the Euclidean distance between two points (x1, y1) and (x2, y2)?
Only x1 and x2 values
Only y1 and y2 values
All four values: x1, y1, x2, y2
None of the above
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function can be used to generate a random number between 1 and 10 in Python?
random() * 10
randint(1,10)
random.randint(1,10)
choice(range(10))
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
50 questions
MES3093: QUIZ
Quiz
•
University
45 questions
Computer memory
Quiz
•
University
50 questions
Penilain Harian 2
Quiz
•
9th Grade - University
42 questions
TIN HỌC KHỐI 5 HK1
Quiz
•
1st Grade - University
44 questions
ACO.C1.HTTT
Quiz
•
University
46 questions
CompTIA ITFundamentals CRAM
Quiz
•
6th Grade - University
50 questions
ICT 51-100
Quiz
•
University
40 questions
Latihan ganjil
Quiz
•
9th Grade - University
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
Discover more resources for Computers
8 questions
2 Step Word Problems
Quiz
•
KG - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
10 questions
14.2 Independent/Dependent Variables
Quiz
•
KG - University
18 questions
Great Lakes States
Quiz
•
KG - University
7 questions
DNA, Chromosomes, Genes, and Traits: An Intro to Heredity
Interactive video
•
11th Grade - University
7 questions
Reflexive Verbs in Spanish
Lesson
•
9th Grade - University
7 questions
Narrative Writing 1
Interactive video
•
4th Grade - University
