BCA Third Semester
Object-oriented Programming in Java (oops in JAVA)
2020 MCQ With Answersheet
1.Which of the following is a java compiler?
a. java.exe b. javac.class c. java.exe d. java.class
2. What is the size of char type in java?
a.1byte b. 2bytes c. 4 bytes d. 4 bits
3. Which of the following is not a keyword in java?
a.main b. class c. new d. super
4. If a=10 and b=6, then what will be the value of a^b java?
a. 4 b. 3 c. 14 d. 12
5. Which of the following inheritance is not directly available in java?
a. single inheritance b. multi-level inheritance
c. multiple inheritance d. hybrid inheritance
6. Which of the following method is directly accessed without creating object?
a. Public method b. static method
c. Final method d. abstract method
7. Which of the following keyword is used to throw an exception manually?
a. throw b. try c. catch d. finally
8. Which of the following is not a byte steam input class?
a. FileInputStream b. ObjectInputStream
c. BuffereReader d. SequenceInputStream
9. Which of the following package is imputed by default in Java?
a. java.util b. java.lang c. java.io d. java.awt
10. Which of the following is not a mouse event in java?
a. mouseClick() b.mousePressed()
c. mouseScrolled() d. mouseExited()
Warm welcome and Thank u 😊 for visit.