Java OOPs Quiz 2, Java OOPs Concepts Test Series 2
Finish Quiz
0 of 20 questions completed
Questions:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
Information
Java OOPs Quiz 2, Java OOPs Concepts Test Series 2, Take this Free Java OOPs Quiz and Clear your Fundamental Concepts. Free Java Online Practice Test. Evaluate Core Java Skills with this 20 question test.. Take Java OOPs Test Quiz 2 Question and Answers 2019. Java online Test Quiz 2. Java OOPs Quiz 2 Free Mock Test 2019. Java OOPs Test Quiz 2 Question and Answers in PDF. The Java online mock test paper is free for all students. Java OOPs Test is very useful for exam preparation and getting for Rank. Java OOPs Test Quiz 2 Question and Answers in English. Java OOPs Mock test for topic via OOPs Mode. Here we are providing Java OOPs Mock Test in English Now Test your self for “Java OOPs Test in English” Exam by using below quiz…
This paper has 20 questions.
Time allowed is 25 minutes.
The Java OOPs Mock Test is Very helpful for all students. Now Scroll down below n click on “Start Quiz” or “Start Test” and Test yourself.
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 have to finish following quiz, to start this quiz:
Results
0 of 20 questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 points, (0)
Average score |
|
Your score |
|
Categories
- Not categorized 0%
Pos. | Name | Entered on | Points | Result |
---|---|---|---|---|
Table is loading | ||||
No data available | ||||
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- Answered
- Review
-
Question 1 of 20
1. Question
What are the two common characteristics shared by all objects?
Correct
Incorrect
-
Question 2 of 20
2. Question
When sub class declares a method that has the same type arguments as a method declared by one of its superclass,it is termed as
Correct
Incorrect
-
Question 3 of 20
3. Question
OOP promotes a way of programming that allows programmers to think in terms of:
Correct
Incorrect
-
Question 4 of 20
4. Question
When a class is based on another class, it inherits:
Correct
Incorrect
-
Question 5 of 20
5. Question
Method with the same name or different return type and difference in the parameters either in number or type is known as
Correct
Incorrect
-
Question 6 of 20
6. Question
An object that has more than one form is referred to as
Correct
Incorrect
-
Question 7 of 20
7. Question
Constructors are used to
Correct
Incorrect
-
Question 8 of 20
8. Question
What is a template, or specification, that defines a type of object?
Correct
Incorrect
-
Question 9 of 20
9. Question
Keyword which is used to access the method or member variables from the superclass
Correct
Incorrect
-
Question 10 of 20
10. Question
The process by which one object can acquire the properties of another object
Correct
Incorrect
-
Question 11 of 20
11. Question
hat will be the output of the following program?
1. public class Test1 {
2. static{
3. System.out.println(“Static”);
4. }
5. {
6. System.out.println(“Instance”);
7. }
8. public void Test1(){
9. System.out.println(“Constructor”);
10. }
11. public static void main(String[] args) {
12.
13. Test1 t = new Test1();
14. } }Correct
Incorrect
-
Question 12 of 20
12. Question
1. class Foo {
2. public int left = 9;
3. public int right = 3;
4. public void setLeft(int leftNum) {
5. left = leftNum;
6. right = leftNum/3;
7. }
8. // lots of complex test code here
9. }
What is the problem with above code ?Correct
Incorrect
-
Question 13 of 20
13. Question
Which Man class properly represents the relationship “Man has a best friend who is a “Dog”?
Correct
Incorrect
-
Question 14 of 20
14. Question
1. 11. interface DeclareStuff {
2. 12. public static final int EASY = 3;
3. 13. void doStuff(int t); }
4. 14. public class TestDeclare implements DeclareStuff {
5. 15. public static void main(String [] args) {
6. 16. int x = 5;
7. 17. new TestDeclare().doStuff(++x);
8. 18. }
9. 19. void doStuff(int s) {
10. 20. s += EASY + ++s;
11. 21. System.out.println(“s ” + s);
12. 22. }
13. 23. }
What is the result?Correct
Incorrect
-
Question 15 of 20
15. Question
What will be the output?
1. public class Test6{
2. public Test6(){
3. this(4);
4. }
5. public Test6(byte var){
6. System.out.println(var);
7. }
8. public static void main(String[] args){
9. Test6 t6 = new Test6();
10. } }Correct
Incorrect
-
Question 16 of 20
16. Question
1. public class LinePrinter {
2. public static void main(String[] args) {
3. // Note: u000A is Unicode representation of linefeed (LF)
4. char c = 0x000A;
5. System.out.println(c);
6. }
7. }
What it will print?Correct
Incorrect
-
Question 17 of 20
17. Question
1. 11. public interface A111 {
2. 12. String s = “yo”;
3. 13. public void method1();
4. 14. }
5. 17. interface B { }
6. 20. interface C extends A111, B {
7. 21. public void method1();
8. 22. public void method1(int x);
9. 23. }
What is the result?Correct
Incorrect
-
Question 18 of 20
18. Question
What will be the output of the following program?
1. public class Test3 {
2. public static void main(String[] args) {
3. System.out.println(“Main Method1”);
4. main(“think”);
5. }
6. public static void main(String args){
7. System.out.println(“Main Method2”);
8. }
9. }Correct
Incorrect
-
Question 19 of 20
19. Question
What will be the output?
1. public class Test3{
2. public void method(){
3. System.out.println(“Called”); }
4. public static void main(String[] args){
5. method();
6. } }
Choose one:Correct
Incorrect
-
Question 20 of 20
20. Question
What Java keyword do you use to define a class?
Correct
Incorrect