Chapter 7_ Mathematical Library Methods _ Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java _ KnowledgeBoat
Chapter 7_ Mathematical Library Methods _ Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java _ KnowledgeBoat
Home / Class 10 - Logix Kips ICSE Computer Applications with BlueJ / Mathematical Library Methods
CONTENTS
Chapter 7
Search by lesson title
Mathematical Library Methods Multiple Choice Questions
Chapter 2
Introduction to Java
Chapter 3
Chapter 4
Operators in Java
Certs
Chapter 5
User-Defined Methods
Chapter 6
Input in Java
Chapter 7
Linux Foundation Training Sign Up
Mathematical Library Methods
Chapter 8
Conditional Constructs in Java
Multiple Choice Questions
Chapter 9
Iterative Constructs in Java
Question 1
Chapter 10
Nested for loops
What will be the output of Math.cbrt(-125)?
Chapter 11
Constructors
1. 5.0
Chapter 12
Library Classes
2. 0.0
Chapter 13
3. -5.0 ✓
Encapsulation and Inheritance
4. error — can't use Math.cbrt() on a negative number
Chapter 14
Arrays
Question 2
Chapter 15
String Handling
Which Java package includes the Math class?
1. java.io
2. java.lang ✓
3. java.util
4. java.sys
Question 3
1. 3
2. 3.0 ✓
3. 3.00
4. All of these
Question 4
1. -1.6
2. -1.5
3. -1.0
https://www.knowledgeboat.com/learn/class-10-logix-icse-computer-applications-java-bluej/solutions/Dag71/mathematical-library-methods 1/13
5/20/24, 1:32 PM Chapter 7: Mathematical Library Methods | Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java | K…
4. -0.0 ✓
Question 5
1. -46.6
2. -46.5
3. -47.0
4. -46.0 ✓
Question 6
1. -9.99
2. 9.99 ✓
3. 0.99
4. None of these
Question 7
1. FindSquareroot(x)
2. Sqrt(x)
3. Math.Square(x)
4. Math.sqrt(x) ✓
Question 8
1. 0.0
2. 1.0 ✓
3. 3.0
4. -1.0
Question 9
Question 10
1. -20.0
2. -21.0 ✓
3. 20
https://www.knowledgeboat.com/learn/class-10-logix-icse-computer-applications-java-bluej/solutions/Dag71/mathematical-library-methods 2/13
5/20/24, 1:32 PM Chapter 7: Mathematical Library Methods | Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java | K…
4. 21
Question 11
1. 0.0
2. 0
3. 1 ✓
4. 1.0
Question 12
1. 0.0
2. 0 ✓
3. -0
4. +0
Question 13
Question 1
Answer
Question 2
Answer
Math.ceil( ) Math.floor( )
https://www.knowledgeboat.com/learn/class-10-logix-icse-computer-applications-java-bluej/solutions/Dag71/mathematical-library-methods 3/13
5/20/24, 1:32 PM Chapter 7: Mathematical Library Methods | Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java | K…
Math.ceil( ) Math.floor( )
Question 3
Answer
Answer
Question 4
i. Math.abs()
Answer
Returns the absolute value of its argument. Its return type is same
as the type of its arguments. For example, Math.abs(-5) will return
5.
ii. Math.sqrt()
Answer
iii. Math.cbrt()
Answer
iv. Math.random()
Answer
https://www.knowledgeboat.com/learn/class-10-logix-icse-computer-applications-java-bluej/solutions/Dag71/mathematical-library-methods 4/13
5/20/24, 1:32 PM Chapter 7: Mathematical Library Methods | Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java | K…
v. Math.round()
Answer
vi. Math.ceil()
Answer
Question 5
Answer
Answer
Answer
Math.sqrt(b * b + 4 * a * c)
Question 6
i. 3
x2 + 5y 3
Answer
Math.cbrt(x * x + 5 * y * y * y)
ii. ∣x + y∣
Answer
Math.abs(x + y)
Answer
https://www.knowledgeboat.com/learn/class-10-logix-icse-computer-applications-java-bluej/solutions/Dag71/mathematical-library-methods 5/13
5/20/24, 1:32 PM Chapter 7: Mathematical Library Methods | Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java | K…
Answer
Answer
Math.cbrt(z*z - Math.PI)
vi. 4
x3 − y 3
Answer
amount ∗ rate
vii.
1
1−
(1 + rate)n
Answer
(−b + b2 − 4ac)
viii.
2a
Answer
4 1 R2
ix. −
4C 2
LC
Answer
Question 7
Answer
System.out.println(Math.round(14.49));
Answer
System.out.println(Math.abs(-0.09));
Answer
https://www.knowledgeboat.com/learn/class-10-logix-icse-computer-applications-java-bluej/solutions/Dag71/mathematical-library-methods 6/13
5/20/24, 1:32 PM Chapter 7: Mathematical Library Methods | Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java | K…
System.out.println(Math.max(-67, -50));
Answer
System.out.println(Math.min(-56, -57.4));
Answer
int range = 35 - 25 + 1;
int num = (int)(range * Math.random() + 25);
System.out.println(num);
Answer
System.out.println(Math.pow(47.5, 6.3));
Answer
System.out.println(Math.min(-4, -7));
Question 8
Answer
import java.util.Scanner;
Output
https://www.knowledgeboat.com/learn/class-10-logix-icse-computer-applications-java-bluej/solutions/Dag71/mathematical-library-methods 7/13
5/20/24, 1:32 PM Chapter 7: Mathematical Library Methods | Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java | K…
Question 9
i. x to the power y
Answer
double r2 = Math.sqrt(y);
System.out.println("Square root of y = " + r2);
}
}
Output
Question 10
1 1 1
2
+ 3+ 4
x y z
https://www.knowledgeboat.com/learn/class-10-logix-icse-computer-applications-java-bluej/solutions/Dag71/mathematical-library-methods 8/13
5/20/24, 1:32 PM Chapter 7: Mathematical Library Methods | Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java | K…
Answer
import java.util.Scanner;
Output
Question 11
i. 10 to 20 (both inclusive)
ii. 25 to 50 (both inclusive)
Answer
min = 25;
max = 50;
range = max - min + 1;
https://www.knowledgeboat.com/learn/class-10-logix-icse-computer-applications-java-bluej/solutions/Dag71/mathematical-library-methods 9/13
5/20/24, 1:32 PM Chapter 7: Mathematical Library Methods | Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java | K…
num = (int)(range * Math.random() + min);
System.out.println("Random number in the range 25 to 5
}
}
Output
Question 12
Answer
import java.util.Scanner;
Output
https://www.knowledgeboat.com/learn/class-10-logix-icse-computer-applications-java-bluej/solutions/Dag71/mathematical-library-methods 10/13
5/20/24, 1:32 PM Chapter 7: Mathematical Library Methods | Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java | K…
Question 13
Write the equivalent Java statements for the following, by using the
mathematical functions:
Answer
System.out.println(Math.abs(-999));
ii. Store the value -3375 in a variable and print its cube root.
Answer
int a = -3375;
System.out.println(Math.cbrt(a));
iii. Store the value 999.99 in a variable and convert it into its
closest integer that is greater than or equal to 999.99.
Answer
double a = 999.99;
System.out.println(Math.round(a));
Question 14
v 2 = u2 + 2as
Answer
import java.util.Scanner;
Output
https://www.knowledgeboat.com/learn/class-10-logix-icse-computer-applications-java-bluej/solutions/Dag71/mathematical-library-methods 11/13
5/20/24, 1:32 PM Chapter 7: Mathematical Library Methods | Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java | K…
Prev Next
Input in Java Conditional Constructs in Java
Class - 6 Effective History & Civics Solutions Java Number Programs (ICSE Classes 9 / 10) Privacy Policy
Class - 6 APC Understanding Computers Solutions Java Number Programs (ISC Classes 11 / 12) Terms of Service
Class - 7 Concise Physics Selina Solutions Output Questions for Class 10 ICSE Computer Applications
Class - 7 Concise Chemistry Selina Solutions Algorithms & Flowcharts for ICSE Computers
Class - 7 Dalal Simplified Middle School Chemistry Solutions ICSE Class 8 Computers Differentiate Between the Following
Class - 7 Living Science Biology Ratna Sagar Solutions Class - 8 NCERT Science Solutions
Class - 7 Around the World Geography Solutions Class - 9 NCERT Science Solutions
Class - 7 Veena Bhargava Geography Solutions Class - 9 NCERT Geography Contemporary India 1 Solutions
Class - 7 Effective History & Civics Solutions Class - 9 Sumita Arora Computer Code 165 Solutions
Class - 7 APC Understanding Computers Solutions Class - 9 Kips Cyber Beans Computer Code 165 Solutions
Class - 8 Dalal Simplified Middle School Chemistry Solutions Class - 10 NCERT Geography Contemporary India 2 Solutions
Class - 8 Concise Biology Selina Solutions Class - 10 NCERT History India & Contemporary World 2 Solutions
Class - 8 Living Science Biology Ratna Sagar Solutions Class - 10 Sumita Arora Computer Code 165 Solutions
Class - 8 Around the World Geography Solutions Class - 10 Kips Cyber Beans Computer Code 165 Solutions
Class - 8 Veena Bhargava Geography Solutions Class - 11 CBSE Sumita Arora Python Solutions
Class - 8 Effective History & Civics Solutions Class - 12 CBSE Sumita Arora Python Solutions
Class - 8 APC Understanding Computers Solutions Class - 12 CBSE Preeti Arora Python Solutions
Class - 8 Kips Logix Computers Solutions Class - 12 NCERT Computer Science Solutions
https://www.knowledgeboat.com/learn/class-10-logix-icse-computer-applications-java-bluej/solutions/Dag71/mathematical-library-methods 12/13
5/20/24, 1:32 PM Chapter 7: Mathematical Library Methods | Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java | K…
Class - 9 Veena Bhargava Geography Solutions
https://www.knowledgeboat.com/learn/class-10-logix-icse-computer-applications-java-bluej/solutions/Dag71/mathematical-library-methods 13/13