Q. After importing the above module some of its functions are executed as per following statements. Find errors, if any
a) square(print 3)
b) basic.div()
c) basic.floordiv(7.0,7)
d) div(100, 0)
e) basic.mul(3,5)
f) print (basic.square(3.5))
g) z = basic.div(13,3)
Answer =
(a) Error in syntax:
Correct way :-
basic.square(3)
(b) Error because there is no argument.
(c) There is no error found.
(d) Error in syntax Correct way is:
basic.div(100, 0)
(e) There is no error found.
(f) There is no error found.
(g) There is no error found.
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )