Fe JV 3 QS en
Fe JV 3 QS en
Fe JV 3 QS en
Code: JAVA 03
Total question: 30
Allowed time: 30’
Note:
- Select one answer for each question.
- You are NOT allowed to used mobile or internet device during the exam.
Questions & answers
1. Which of the following is not an OOPS concept in Java??
A. Polymorphism
B. Inheritance
C. Compilation
D. Encapsulation
2. Which of these class is related to all the exceptions that can be caught by using catch?
A. Error
B. Exception
C. RuntimeExecption
D. All of the mentioned
3. What is the result?
A. 200.0 : 100.0
B. 400.0 : 200.0
C. 400.0 : 100.0
D. Compilation fails.
A. ArrayList
B. Abstract class
C. Object class
D. String
8. Which of this access specifies can be used for a class so that its members can be accessed by
a different class in the same package?
A. Public
B. Protected
C. No Modifier
D. All of the mentioned
A. Abstraction.
B. Encapsulation.
C. Polymorphism
D. Inheritance
11. Which of these keywords are used for the block to be examined for exceptions?
A. check
B. throw
C. catch
D. try
A. 2851
B. 1582
C. 2
D. 2185
13. Identify the keyword among the following that makes a variable belong to a class,rather
than being defined for each instance of the class?
A. final
B. static
C. abstract
D. public
A. Compilation Error.
B. Class One method1.
C. Class Two method1.
D. Throws a NoSuchMethodException at runtime.
A. 22
B. 33
C. Runtime Error
D. Compilation Error
A. 1 bit
B. 7 bits
C. 1 byte
D. 2 bytes
21. Which code, inserted at the demanded place, allows the Sprite class to compile?
A. 0;
B. Compilation error, arrays cannot be initialized to zero size;
C. Compilation error, it is a.length() not a.length;
D. None of the above;
A. Statement;
B. PreparedStatement;
C. QueryStatement;
D. CallableStatement;
A. 0
B. 1
C. 2
D. 3
A. Set.
B. List.
C. Map.
D. All the answers are true.
27. Which of these interfaces is not part of the collection framework in Java?
A. Collection
B. Set
C. Group.
D. List.
28. Which component is used to compile, debug and execute the java programs?
A. JRE.
B. JIT.
C. JDK.
D. JVM.
A. True.
B. false.