20 MCQ Questions on Mathematical Library Methods ICSE Class 10

 

20 MCQ Questions on Mathematical Library Methods ICSE Class 10 


1. In Java, which method is used to find the square root of a number?

   a. Math.sqrt()

   b. Math.squareRoot()

   c. Math.root()

   d. Math.pow(0.5)


2. What does the "Math.abs()" method in Java do?

   a. Returns the absolute value of a number

   b. Rounds a floating-point number to the nearest integer

   c. Returns the ceiling value of a number

   d. Finds the factorial of a number


3. Which method is used to calculate the power of a number in Java?

   a. Math.power()

   b. Math.pow()

   c. Math.exponent()

   d. Math.raiseTo()


4. In Java, which method is used to find the maximum of two numbers?

   a. Math.max()

   b. Math.maximum()

   c. Math.higher()

   d. Math.greater()


5. What is the purpose of the "Math.ceil()" method in Java?

   a. Rounds a floating-point number to the nearest integer

   b. Returns the smallest integer greater than or equal to a number

   c. Returns the largest integer less than or equal to a number

   d. Finds the ceiling value of a number



6. Which method is used to calculate the logarithm of a number in Java?

   a. Math.logarithm()

   b. Math.log()

   c. Math.ln()

   d. Math.logBase()


7. What does the "Math.random()" method in Java return?

   a. A random integer

   b. A random floating-point number between 0.0 and 1.0

   c. A random boolean value

   d. A random character


8. In Java, which method is used to round a floating-point number to the nearest integer?

   a. Math.round()

   b. Math.floor()

   c. Math.ceil()

   d. Math.int()


9. Which method is used to calculate the sine of an angle in Java?

   a. Math.sin()

   b. Math.sine()

   c. Math.angleSin()

   d. Math.calculateSin()


10. What is the purpose of the "Math.toDegrees()" method in Java?

    a. Converts radians to degrees

    b. Converts degrees to radians

    c. Calculates the angle in degrees

    d. Rounds a number to the nearest degree



11. In Java, which method is used to calculate the hypotenuse of a right-angled triangle?

    a. Math.hypotenuse()

    b. Math.pythagorean()

    c. Math.calculateHypotenuse()

    d. Math.sqrt(Math.pow())


12. What does the "Math.floor()" method in Java do?

    a. Rounds a floating-point number to the nearest integer

    b. Returns the smallest integer greater than or equal to a number

    c. Returns the largest integer less than or equal to a number

    d. Finds the floor value of a number


13. Which method is used to calculate the cosine of an angle in Java?

    a. Math.cosine()

    b. Math.cos()

    c. Math.calculateCos()

    d. Math.angleCos()


14. In Java, what does the "Math.PI" constant represent?

    a. The mathematical constant "e"

    b. The square root of 2

    c. The ratio of a circle's circumference to its diameter

    d. The golden ratio


15. Which method is used to calculate the tangent of an angle in Java?

    a. Math.tan()

    b. Math.calculateTan()

    c. Math.angleTan()

    d. Math.tangent()





16. What is the purpose of the "Math.toRadians()" method in Java?

    a. Converts degrees to radians

    b. Converts radians to degrees

    c. Calculates the angle in radians

    d. Rounds a number to the nearest radian


17. In Java, which method is used to calculate the exponential value of a number?

    a. Math.exp()

    b. Math.exponential()

    c. Math.calculateExp()

    d. Math.ePow()


18. What does the "Math.min()" method in Java do?

    a. Finds the minimum value among a set of numbers

    b. Returns the smaller of two numbers

    c. Calculates the minimum value of an array

    d. Rounds a number down to the nearest integer


19. Which method is used to generate a random integer within a specified range in Java?

    a. Math.randomInt()

    b. Math.nextInt()

    c. Math.generateRandom()

    d. Math.random() * range


20. What does the "Math.atan2()" method in Java calculate?

    a. The inverse tangent of a number

    b. The arctangent of a number

    c. The tangent of an angle

    d. The angle whose tangent is the quotient of two specified numbers



Comments