Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java | IT Developer <?php echo $page_title; ?>
IT Developer

Mathematical Library Methods

Chapter 7

Mathematical Library Methods

Class 10 - Logix Kips ICSE Computer Applications with BlueJ


Share with a Friend

Multiple Choice Questions


Question 1

What will be the output of Math.cbrt(-125)?

  1. 5.0
  2. 0.0
  3. -5.0
  4. error — can't use Math.cbrt() on a negative number

Question 2

Which Java package includes the Math class?

  1. java.io
  2. java.lang
  3. java.util
  4. java.sys

Question 3

Give the output of Math.sqrt(x); when x = 9.0

  1. 3
  2. 3.0
  3. 3.00
  4. All of these

Question 4

Give the output of Math.ceil(-0.6).

  1. -1.6
  2. -1.5
  3. -1.0
  4. -0.0

Question 5

Give the output of Math.ceil(-46.6).

  1. -46.6
  2. -46.5
  3. -47.0
  4. -46.0

Question 6

Give the output of Math.abs(x); when x = -9.99

  1. -9.99
  2. 9.99
  3. 0.99
  4. None of these

Question 7

Which of the following is a method to find the square root of a number?

  1. FindSquareroot(x)
  2. Sqrt(x)
  3. Math.Square(x)
  4. Math.sqrt(x)

Question 8

What will be the output of Math.pow(3, 0)?

  1. 0.0
  2. 1.0
  3. 3.0
  4. -1.0

Question 9

Math.random() returns a double value r such that ...........

  1. 0.0 <= r < 1.0
  2. 0.0 <= r <= 1.0
  3. 0.0 < r <= 1.0
  4. 0.0 < r < 1.0

Question 10

What will be the output of Math.floor(-20.10)?

  1. -20.0
  2. -21.0
  3. 20
  4. 21

Question 11

What will be the output of Math.round(0.5)?

  1. 0.0
  2. 0
  3. 1
  4. 1.0

Question 12

What will be the output of Math.abs(-0)?

  1. 0.0
  2. 0
  3. -0
  4. +0

Question 13

Given the following statements:

int min = 1, max = 10;int range = max - min + 1;int num = (int) (range * Math.random() + min);

The value of num will be in integer such that ...........

  1. 1 <= num <= 10
  2. 1 <= num < 10
  3. 1 < num <= 10
  4. 1 < num < 10