Quiz on Python Numbers
FREE Online Courses: Dive into Knowledge for Free. Learn More!
Quiz Summary
0 of 15 Questions completed
Questions:
Information
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
Results
Results
0 of 15 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
Categories
- Not categorized 0%
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- Current
- Review / Skip
- Answered
- Correct
- Incorrect
-
Question 1 of 15
1. Question
- Which of these is not a data type of numbers in Python?
CorrectIncorrect -
Question 2 of 15
2. Question
Which of the following is not allowed to be used for the hexadecimal system?
CorrectIncorrect -
Question 3 of 15
3. Question
What is the prefix used for the numbers in the octal system?
CorrectIncorrect -
Question 4 of 15
4. Question
What will be the output of the following code?
print(int(4.9))
CorrectIncorrect -
Question 5 of 15
5. Question
- Which of the following will not give an error?
CorrectIncorrect -
Question 6 of 15
6. Question
What will be the output of the following code?
from fractions import Fraction
print(Fraction(1,3.4))CorrectIncorrect -
Question 7 of 15
7. Question
Which of the following is the right way to do square root of 16 using the math module?
a.
import math
print(sqrt(16))
b.
import math
print(math.sqrt(16))
c.
import math
print(Math.sqrt(16))
d.
import math
print(math.SQRT(16))
CorrectIncorrect -
Question 8 of 15
8. Question
- How many digits are allowed in the float data type after the decimal point?
CorrectIncorrect -
Question 9 of 15
9. Question
Find the output of the following code.
num=678.345e-2
print(num)
CorrectIncorrect -
Question 10 of 15
10. Question
Find the output of the following block.
print(int(0o128))
CorrectIncorrect -
Question 11 of 15
11. Question
- Which of the following is not a correct way to create an integer?
CorrectIncorrect -
Question 12 of 15
12. Question
Find the output of the following code.
from decimal import Decimal as D
print(D(7.2) – D(4.1))CorrectIncorrect -
Question 13 of 15
13. Question
- Which of the following on running gives an error?
CorrectIncorrect -
Question 14 of 15
14. Question
Which of the following is not possible on running the following code?
import random
print(random.randrange(1, 6))CorrectIncorrect -
Question 15 of 15
15. Question
- Which of the following does not give an error on running ?
CorrectIncorrect