Give the output of the following expression:
If x = – 9.99, calculate Math.abs(x);
Unit 6. Mathematical Library Methods
Quiz
•
Computers
•
9th - 10th Grade
•
Medium
Rajat Shenoi
Used 106+ times
FREE Resource
20 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
15 mins • 1 pt
Give the output of the following expression:
If x = – 9.99, calculate Math.abs(x);
2.
FILL IN THE BLANK QUESTION
15 mins • 1 pt
Give the output of the following Math method:
Math.ceil(4.2)
3.
FILL IN THE BLANK QUESTION
15 mins • 1 pt
Give the output of the following Math method:
Math.abs(– 4)
4.
FILL IN THE BLANK QUESTION
15 mins • 1 pt
Give the output of the following expressions:
If x = 9.0, calculate Math.sqrt(x);
5.
FILL IN THE BLANK QUESTION
15 mins • 1 pt
Give the output of the following program segment:
double x = 2, y = 2.5;
System.out.println(Math.min(Math.floor(x),y));
6.
FILL IN THE BLANK QUESTION
15 mins • 1 pt
Give the output of the following:
Math.sqrt(Math.max(9,16))
7.
FILL IN THE BLANK QUESTION
15 mins • 1 pt
What will be the output of the following code?
double a = – 6.35;
double b = 14.74;
double x = Math.round(Math.max(a,b));
System.out.println(x);
16 questions
Java Conditional Statements
Quiz
•
9th Grade
25 questions
Chapter 2 Review
Quiz
•
10th - 12th Grade
20 questions
Revision2 for Term1
Quiz
•
10th Grade
22 questions
Java Program Parts
Quiz
•
9th Grade
25 questions
JavaScript Console & Graphics Review
Quiz
•
9th - 12th Grade
15 questions
Basics in Java
Quiz
•
9th - 12th Grade
15 questions
Java Math
Quiz
•
9th - 12th Grade
15 questions
Class X - Java 1
Quiz
•
10th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression
Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing
Quiz
•
9th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University