My Report

Java Programming Mock Test 4


Correct Answer: 2 points | Wrong: -1 point
Grades: A* (100% score) | A (80%-99%) | B (60%-80%) | C (40%-60%) | D (0%-40%)
advertisement
 10%

Question 1 of 10

1. Which of function return absolute value of a variable?

Question 1 of 10

Question 2 of 10

2. Which of these methods loads the specified dynamic library?

Question 2 of 10

Question 3 of 10

3. What will be the output of the following Java code?

   
    class Output 
    {
         public static void main(String args[]) 
         {
             double x = 3.14;  
             int y = (int) Math.abs(x);
             System.out.print(y);
         }
    }

Question 3 of 10

Question 4 of 10

4. Which of the following is method of wrapper Integer for converting the value of an object into int?

Question 4 of 10

Question 5 of 10

5. Which of these is a super class of Character wrapper?

Question 5 of 10

Question 6 of 10

6. Which of these method of Object class can generate duplicate copy of the object on which it is called?

Question 6 of 10

Question 7 of 10

7. What is JVM?

Question 7 of 10

Question 8 of 10

8. Which of these is a super class of wrappers Double and Float?

Question 8 of 10

Question 9 of 10

9. Which of these classes is used for input and output operation when working with bytes?

Question 9 of 10

Question 10 of 10

10. Which of these is specified by a File object?

Question 10 of 10


 

Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.