OOAD Quiz
OOAD Quiz
OOAD Quiz
Quiz 2-OOAD
Note: \\ denote line change in options given
* Required
1. Email address *
Inheritance
Polymorphism
Exception
Abstraction
https://docs.google.com/forms/d/1SWi4DdWWm-DmceyTP4j39SSh2Y5WbQEd3D-pB5242BE/edit 1/12
3/25/2021 Quiz 2-OOAD
https://docs.google.com/forms/d/1SWi4DdWWm-DmceyTP4j39SSh2Y5WbQEd3D-pB5242BE/edit 2/12
3/25/2021 Quiz 2-OOAD
5. An empty interface i.e., without data members and methods is known as a 1 point
______. *
Runnable Interface
Marker Interface
Abstract Interface
CharSequence Interface
A private member of a class cannot be accessed by the methods of the same class.
https://docs.google.com/forms/d/1SWi4DdWWm-DmceyTP4j39SSh2Y5WbQEd3D-pB5242BE/edit 3/12
3/25/2021 Quiz 2-OOAD
An interface can contain following type of members: 1) public, static, final fields (i.e.,
constants) 2) default and static methods with bodies
https://docs.google.com/forms/d/1SWi4DdWWm-DmceyTP4j39SSh2Y5WbQEd3D-pB5242BE/edit 4/12
3/25/2021 Quiz 2-OOAD
a=10
a=20
compilation error
https://docs.google.com/forms/d/1SWi4DdWWm-DmceyTP4j39SSh2Y5WbQEd3D-pB5242BE/edit 5/12
3/25/2021 Quiz 2-OOAD
True
False
Compilation error
Runtime Error
200
https://docs.google.com/forms/d/1SWi4DdWWm-DmceyTP4j39SSh2Y5WbQEd3D-pB5242BE/edit 6/12
3/25/2021 Quiz 2-OOAD
9.0 \\ 9.0
9 \\ 9
Compilation error
https://docs.google.com/forms/d/1SWi4DdWWm-DmceyTP4j39SSh2Y5WbQEd3D-pB5242BE/edit 7/12
3/25/2021 Quiz 2-OOAD
I am a Person
I am a Student
15. Which of the following is/are not true about constructors in Java? 1) 1 point
none of these
234
1234
https://docs.google.com/forms/d/1SWi4DdWWm-DmceyTP4j39SSh2Y5WbQEd3D-pB5242BE/edit 8/12
3/25/2021 Quiz 2-OOAD
Compilation error
https://docs.google.com/forms/d/1SWi4DdWWm-DmceyTP4j39SSh2Y5WbQEd3D-pB5242BE/edit 9/12
3/25/2021 Quiz 2-OOAD
17. Which of these keywords cannot be used for a class which has been 1 point
declared final? *
abstract
extends
Compilation Error
https://docs.google.com/forms/d/1SWi4DdWWm-DmceyTP4j39SSh2Y5WbQEd3D-pB5242BE/edit 10/12
3/25/2021 Quiz 2-OOAD
19. Which of the following is FALSE about abstract classes in Java * 1 point
If we derive an abstract class and do not implement all the abstract methods, then
the derived class should also be marked as abstract using 'abstract' keyword
12
21
13
31
https://docs.google.com/forms/d/1SWi4DdWWm-DmceyTP4j39SSh2Y5WbQEd3D-pB5242BE/edit 11/12
3/25/2021 Quiz 2-OOAD
21. * 1 point
Forms
https://docs.google.com/forms/d/1SWi4DdWWm-DmceyTP4j39SSh2Y5WbQEd3D-pB5242BE/edit 12/12