What will be the output of the following Python code?
for i in range(float(‘inf’)):
print (i)
a) 0.0 0.1 0.2 0.3 …
b) 0 1 2 3 …
c) 0.0 1.0 2.0 3.0 …
d) none of the mentioned
Answer: d
Explanation: Error, objects of type float cannot be interpreted as an integer.
Related Posts
Which one of the following is not a secondary storage?
The surface area of a tape is ________ the surface area of a disk.
Which of the following is the oldest database model?
The replacement of a bad block generally is not totally automatic because
Which of the following are the process of selecting the data storage and data access characteristics of the database?
A magneto-optic disk is :
During recovery from a failure
Join The Discussion