- Home
- Chapter 1 - Object Oriented Programming Concepts
- Object Oriented Programming Concepts
- Multiple Choice Questions
- State whether the given statements are True or False
- Assignment Questions
- Chapter 2 - Introduction to Java
- Introduction to Java
- Multiple Choice Questions
- Assignment Questions
- Chapter 3 - Values and Data Types
- Values and Data Types
- Multiple Choice Questions
- State whether the given statements are True or False
- Assignment Questions
- Chapter 4 - Operators in Java
- Operators in Java
- Multiple Choice Questions
- State whether the given statements are True or False
- Assignment Questions
- Chapter 5 - User-Defined Methods
- User-Defined Methods
- Multiple Choice Questions
- State whether the given statements are True or False
- Assignment Questions
- Chapter 6 - Input in Java
- Input in Java
- Multiple Choice Questions
- Assignment Questions and Programs
- Chapter 7 - Mathematical Library Methods
- Mathematical Library Methods
- Multiple Choice Questions
- Assignment Questions
- Chapter 8 - Conditional Constructs in Java
- Conditional Constructs in Java
- Multiple Choice Questions
- Assignment Questions and Programs
- Chapter 9 - Iterative Constructs in Java
- Iterative Constructs in Java
- Multiple Choice Questions
- State whether the given statements are True or False
- Assignment Questions and Programs
- Chapter 10 - Nested for loops
- Nested for loops
- Assignment Questions and Programs
- Chapter 11 - Constructors
- Constructors
- Multiple Choice Questions
- Assignment Questions and Programs
- Chapter 12 - Library Classes
- Library Classes
- Multiple Choice Questions
- Assignment Questions
- Chapter 13 - Encapsulation and Inheritance
- Library Classes
- Multiple Choice Questions
- Assignment Questions
- Chapter 14 - Arrays
- Library Classes
- Multiple Choice Questions
- Assignment Questions
- Chapter 15 - String Handling
- Library Classes
- Multiple Choice Questions
- Assignment Questions
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)?
- 5.0
- 0.0
- -5.0 ✔
- error — can't use Math.cbrt() on a negative number
Question 2
Which Java package includes the Math class?
- java.io
- java.lang ✔
- java.util
- java.sys
Question 3
Give the output of Math.sqrt(x); when x = 9.0
- 3
- 3.0 ✔
- 3.00
- All of these
Question 4
Give the output of Math.ceil(-0.6).
- -1.6
- -1.5
- -1.0
- -0.0 ✔
Question 5
Give the output of Math.ceil(-46.6).
- -46.6
- -46.5
- -47.0
- -46.0 ✔
Question 6
Give the output of Math.abs(x); when x = -9.99
- -9.99
- 9.99 ✔
- 0.99
- None of these
Question 7
Which of the following is a method to find the square root of a number?
- FindSquareroot(x)
- Sqrt(x)
- Math.Square(x)
- Math.sqrt(x) ✔
Question 8
What will be the output of Math.pow(3, 0)?
- 0.0
- 1.0 ✔
- 3.0
- -1.0
Question 9
Math.random() returns a double value r such that ...........
- 0.0 <= r < 1.0 ✔
- 0.0 <= r <= 1.0
- 0.0 < r <= 1.0
- 0.0 < r < 1.0
Question 10
What will be the output of Math.floor(-20.10)?
- -20.0
- -21.0 ✔
- 20
- 21
Question 11
What will be the output of Math.round(0.5)?
- 0.0
- 0
- 1 ✔
- 1.0
Question 12
What will be the output of Math.abs(-0)?
- 0.0
- 0 ✔
- -0
- +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 <= num <= 10 ✔
- 1 <= num < 10
- 1 < num <= 10
- 1 < num < 10
