Site icon DataFlair

Quiz on Java Number Class

quiz on java number class

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.

Time limit: 0

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

Quiz complete. Results are being recorded.

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

  1. Not categorized 0%
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14
  15. 15
  1. Current
  2. Review / Skip
  3. Answered
  4. Correct
  5. Incorrect
  1. Question 1 of 15
    1. Question

    class ValueExample {

    public static void main ( String args [ ] ) 

    {

    Float a = new Float(99f);

    system.out.println(a.intValue);

    }

    }

     

    Correct
    Incorrect
  2. 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));

    }

    }

    Correct
    Incorrect
  3. Question 3 of 15
    3. Question

    class Example {

    public static void main ( String args [ ] )

    {

    byte a = 3;

    system.out.println(a,doubleValue()):

    }

    }

    Correct
    Incorrect
  4. Question 4 of 15
    4. Question

    class Rint {

    public static void main ( String args [ ] )

    {

    double x = 70.500;

    system.out.println(Math.rint(x));

    }

    }

    Correct
    Incorrect
  5. Question 5 of 15
    5. Question

    class Round {

    public static void main ( String args [ ] )

    {

    double pi = 3.14;

    system.out.println(Math.round(pi));

    }

    }

    Correct
    Incorrect
  6. Question 6 of 15
    6. Question

    class MaxExample {

    public static void main ( String args [ ] )

    {

    system.out.println(Math.max(12,13.456));

    }

    }

    Correct
    Incorrect
  7. Question 7 of 15
    7. Question

     class MinSample {

    Public static void main ( String args [ ] )

    {

    system.out.println(Math.min(13.56,14.0));

    }

    }

    Correct
    Incorrect
  8. Question 8 of 15
    8. Question

     class Floating {

        float x = 30.5

        int y = 6;

        float z =(x%y);

        system.out.println(z);

    }

    }

    Correct
    Incorrect
  9. Question 9 of 15
    9. Question

    class SquarerootSample {

    public static void main ( String args [ ] )

    {

    double y = 82.5;

    system.out.println(Math.sqrt(y));

    }

    }

    Correct
    Incorrect
  10. Question 10 of 15
    10. Question

    Why toRadian() method used in Java ?

    Correct
    Incorrect
  11. Question 11 of 15
    11. Question

    class AbsoluteValue {

    public static void main ( String args [ ] )

    {

    float x = -1.11

    system.out.println(Math.abs(x));

    }

    }

    Correct
    Incorrect
  12. Question 12 of 15
    12. Question

    Which method in Java is used to return the logarithm value of the argument?

    Correct
    Incorrect
  13. Question 13 of 15
    13. Question

    Which of the following methods are not present in Java?

    Correct
    Incorrect
  14. 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));

    }

    }

    Correct
    Incorrect
  15. 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));

    }

    }

    Correct
    Incorrect

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!

Exit mobile version