
Built in functions
Authored by Whizara Teacher
Computers
4th - 12th Grade
Used 15+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which of the following statements is correct?
We cannot change all strings into a number data type
We can change any number into a string data type
Both A and B are correct
None of the mentioned statements is correct
2.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What is the output of the following code?
x = 7
y = 8
print(str(x + y))
x + y
7 + 8
15
56
3.
MULTIPLE CHOICE QUESTION
20 sec • 5 pts
What is the output of the following code?
age = 5
print(age+1)
age -= 1
print(age + 1)
5, 5
5, 6
6, 4
6, 5
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which of the following functions is not an inbuilt function in Python?
min
max
pow
power
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What is the output of the following code?
sum = 10
sum += 5
print(sum)
10
5
15
50
6.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What is ‘sum += 5’ called in Python?
shorthand operation
quickhand operation
shortcut operation
none of the mentioned
7.
OPEN ENDED QUESTION
30 sec • 5 pts
What is the output of the following code?
num = 10
num *= 0.5
print(str(num-3))
Evaluate responses using AI:
OFF
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?