Professional Documents
Culture Documents
Worksheet 2
Worksheet 2
Worksheet 2
Error b. -5 c. 5 d. 5.0
a) 4 b) 3 c) Error d) 6
Q19. What is the output of the code, (assume value of a is 2.13, b is 3.7777 and c is -3,12) print(int(a), floor(b), ceil(c), fabs(c))
a. 2, 3, -4, 3 b. 2,3.0, -3, 3.12 c. 2, 4, -3, 3 d. 2, 3, -4, 3.12
Q20. The predefined function to find length of string is
a. Strlen b. len c. stringlen 4. Strlength