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
Arithmetic Types Declare Initialize Relation Logical Ops
Quiz
•
9th Grade - University
25 questions
Library Classes
Quiz
•
10th Grade
20 questions
APCSA Arrays
Quiz
•
9th - 12th Grade
16 questions
Loops
Quiz
•
5th - 12th Grade
16 questions
Loops Quiz
Quiz
•
9th - 12th Grade
20 questions
Java Conditional Constructs
Quiz
•
9th - 10th Grade
17 questions
"switch" Java Statement - 1
Quiz
•
9th - 10th Grade
22 questions
Java Code Snippets Quiz 1
Quiz
•
10th Grade
10 questions
Chains by Laurie Halse Anderson Chapters 1-3 Quiz
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
12 questions
Multiplying Fractions
Quiz
•
6th Grade
30 questions
Biology Regents Review #1
Quiz
•
9th Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function
Quiz
•
9th - 12th Grade
30 questions
Biology Regents Review #1
Quiz
•
9th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression
Quiz
•
9th - 12th Grade
14 questions
Attributes of Linear Functions
Quiz
•
9th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University
50 questions
Biology Regents Review 2: Ecology
Quiz
•
9th - 12th Grade