Get Job-ready: Java Course with 45+ Real-time Projects! - Learn Java
Ready to test your prowess in numerical Java? Embark on this interactive journey as you tackle our tailored quiz challenging your knowledge of the Number class.
Whether you’re a seasoned Java whiz or a budding enthusiast, this quiz invites you to explore essential Number class concepts and uncover areas for further growth. Brace yourself for captivating questions that’ll ignite your understanding and propel you towards Java numerical mastery. Let’s test your knowledge.
Quiz Summary
0 of 15 Questions completed
Questions:
Information
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
Results
Results
0 of 15 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
Categories
- Not categorized 0%
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- Current
- Review / Skip
- Answered
- Correct
- Incorrect
-
Question 1 of 15
1. Question
class ValueExample {
public static void main ( String args [ ] )
{
Float a = new Float(99f);
system.out.println(a.intValue);
}
}
CorrectIncorrect -
Question 2 of 15
2. Question
class CeilFloor {
public static void main ( string args [ ] )
{
float x = 99.65;
double y = 89.48;
system.out.println(Math.floor(x) + Math.ceil(y));
}
}
CorrectIncorrect -
Question 3 of 15
3. Question
class Example {
public static void main ( String args [ ] )
{
byte a = 3;
system.out.println(a,doubleValue()):
}
}
CorrectIncorrect -
Question 4 of 15
4. Question
class Rint {
public static void main ( String args [ ] )
{
double x = 70.500;
system.out.println(Math.rint(x));
}
}
CorrectIncorrect -
Question 5 of 15
5. Question
class Round {
public static void main ( String args [ ] )
{
double pi = 3.14;
system.out.println(Math.round(pi));
}
}
CorrectIncorrect -
Question 6 of 15
6. Question
class MaxExample {
public static void main ( String args [ ] )
{
system.out.println(Math.max(12,13.456));
}
}
CorrectIncorrect -
Question 7 of 15
7. Question
class MinSample {
Public static void main ( String args [ ] )
{
system.out.println(Math.min(13.56,14.0));
}
}
CorrectIncorrect -
Question 8 of 15
8. Question
class Floating {
float x = 30.5
int y = 6;
float z =(x%y);
system.out.println(z);
}
}
CorrectIncorrect -
Question 9 of 15
9. Question
class SquarerootSample {
public static void main ( String args [ ] )
{
double y = 82.5;
system.out.println(Math.sqrt(y));
}
}
CorrectIncorrect -
Question 10 of 15
10. Question
Why toRadian() method used in Java ?
CorrectIncorrect -
Question 11 of 15
11. Question
class AbsoluteValue {
public static void main ( String args [ ] )
{
float x = -1.11
system.out.println(Math.abs(x));
}
}
CorrectIncorrect -
Question 12 of 15
12. Question
Which method in Java is used to return the logarithm value of the argument?
CorrectIncorrect -
Question 13 of 15
13. Question
Which of the following methods are not present in Java?
CorrectIncorrect -
Question 14 of 15
14. Question
class Power {
public static void main ( String args [ ] )
{
double f = 3;
float d = 4;
system.out.println(Math.pow(f,d));
}
}
CorrectIncorrect -
Question 15 of 15
15. Question
class SinExample {
public static void main ( String args [ ] )
{
int a = 45;
double d = Math.toRadians(a);
system.out.println(Math.sin(d));
}
}
CorrectIncorrect
Summary:
Congratulations on completing your Number class exploration! This quiz has illuminated your strengths and areas for potential improvement. Embrace this knowledge to deepen your Java comprehension and fearlessly tackle numerical tasks within your code.
Remember, continuous learning fuels growth. Stay curious, explore further Number class intricacies, and watch your Java abilities soar!
