Computer Science - Informatics Practices Class XI/XII Python Module Solved Test Part 6
Q1. Name the module to be imported for using mathematical functions.
Q2. Name the module to be imported for generating random numbers.
Q3. Name the module to be imported for text manipulation functions.
Q4. Write the value of the following (till 2 decimal places)
>>> import math
>>>print(math.pi)
>>>print(math.e)
Q5. Name two angle conversion methods of math module.
Q6. degree and radians are functions of _____________ module.
Q7. Write a program in python to find the roots of a quadratic equation.
A quadratic equation is of the form: ax2 + bx + c
Accept values of a, b and c from user.
formula of finding root is: x = [-b +/- sqrt(b2 - 4ac)]/2a
Q8. Write a program to accept angle in degree and convert it into radian.
Q9. Write a python program to convert binary number to decimal number
Q10. Write a python program to convert decimal number to binary.
No comments:
Post a Comment