Methods


  1. What is the output of this program?
    public class Result 
    {
    public static void main(String args[])
    {
    double num = 4.13;
    int p = (int) Math.toDegrees(num);
    System.out.print(p);
    }
    }











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    4.13 in degree 236.0.


  1. Which of these method returns a smallest whole number greater than or equal to variable p?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    ciel(double X) returns the smallest whole number greater than or equal to variable p.



  1. toRadian() and toDegree() methods were added by which version of Java?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    toRadian() and toDegree() methods were added by Java 2.0 before that there was no method which could directly convert degree into radians and vice versa.


  1. Which of these method converts radians to degrees?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    toDegree()



  1. Which of these method returns the remainder of dividend / divisor?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    IEEEremainder() returns the remainder of dividend / divisor.