
Python Programming Quiz

Quiz
•
Computers
•
University
•
Medium
Shanmuka Priya B
Used 1+ times
FREE Resource
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))
Create a free account and access millions of resources
Similar Resources on Wayground
40 questions
TIN 8 ON TAP GIUA KY 2

Quiz
•
8th Grade - University
50 questions
Android Development Quiz

Quiz
•
University
40 questions
Microsoft Office Quiz

Quiz
•
University
50 questions
RIA Revision for Class Test_Set 2

Quiz
•
University
50 questions
Soal Informatika X - Ganjil 2024

Quiz
•
10th Grade - University
50 questions
VIRUS AND ANTIVIRUS

Quiz
•
10th Grade - University
40 questions
INFORMATIKA KECANTIKAN

Quiz
•
1st Grade - University
40 questions
Repaso Python

Quiz
•
11th Grade - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University