
Python Programming Quiz
Authored by Khaled Abdellatif
Information Technology (IT)
1st Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
28 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function returns the square root of a number in Python?
sqrt()
square()
pow()
root()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will math.ceil(4.2) return?
4
5
4.2
Error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function gives the value of π in the math module?
math.pi()
math.pi
math.PI
pi
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of pow(2, 3)?
5
6
8
9
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will math.floor(-3.7) return?
-3
-4
3
4
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does "hello".upper() return?
"Hello"
"HELLO"
"hello"
Error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method removes whitespace at the beginning and end of a string?
strip()
remove()
trim()
clean()
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?