Test1-OOC: Total Points Test1-Object Oriented Concepts in Java
Test1-OOC: Total Points Test1-Object Oriented Concepts in Java
Name *
Google Demo
USN *
1010
Semester *
10
a.) Encapsulation
(b.) Abstraction
(c.) Polymorphism
(d.) Exceptions
Correct answer
(d.) Exceptions
Feedback
https://docs.google.com/forms/d/e/1FAIpQLSeeBuCmo-1r1SnmgO2-ADXN8I2OkIarsayZPOwx6Fip72vTJQ/viewscore?viewscore=AE0zAgAJP… 1/19
29/04/2020 Test1-OOC
2. If container classes are carefully constructed, then these tools are 0/1
available to work with structures that are not ______
(b.) programmer-defined
(c.) type-specific
(d.) public
Correct answer
(c.) type-specific
(c.) Inheritance
Correct answer
https://docs.google.com/forms/d/e/1FAIpQLSeeBuCmo-1r1SnmgO2-ADXN8I2OkIarsayZPOwx6Fip72vTJQ/viewscore?viewscore=AE0zAgAJP… 2/19
29/04/2020 Test1-OOC
(b.) Functions allow programmers to break large and complex problems into small
and manageable tasks
(c.) Functions allow programmers to use existing code to perform common tasks
Correct answer
a.) Destructor
(b.) Destroyer
(c.) Remover
(d.) Terminator
https://docs.google.com/forms/d/e/1FAIpQLSeeBuCmo-1r1SnmgO2-ADXN8I2OkIarsayZPOwx6Fip72vTJQ/viewscore?viewscore=AE0zAgAJP… 3/19
29/04/2020 Test1-OOC
Feedback
Correct answer
https://docs.google.com/forms/d/e/1FAIpQLSeeBuCmo-1r1SnmgO2-ADXN8I2OkIarsayZPOwx6Fip72vTJQ/viewscore?viewscore=AE0zAgAJP… 4/19
29/04/2020 Test1-OOC
Correct answer
Feedback
(c.) Templates
Correct answer
Feedback
https://docs.google.com/forms/d/e/1FAIpQLSeeBuCmo-1r1SnmgO2-ADXN8I2OkIarsayZPOwx6Fip72vTJQ/viewscore?viewscore=AE0zAgAJP… 5/19
29/04/2020 Test1-OOC
(b.) Bottom Up
Correct answer
(b.) Bottom Up
Feedback
11. When the compiler cannot differentiate between two overloaded 0/1
constructors, they are called
a.) overloaded
(b.) Destructed
(c.) Ambiguous
(d.) Dubious
Correct answer
(c.) Ambiguous
Feedback
https://docs.google.com/forms/d/e/1FAIpQLSeeBuCmo-1r1SnmgO2-ADXN8I2OkIarsayZPOwx6Fip72vTJQ/viewscore?viewscore=AE0zAgAJP… 6/19
29/04/2020 Test1-OOC
12. To expose a data member to the program, you must declare the data 0/1
member in the _____ section of the class
(a.) Common
(b.) Exposed
(c.) public
(d.) unrestricted
Correct answer
(c.) public
Feedback
13. What happens if the base and derived class contains definition of a 0/1
function with same prototype?
(b.) Only base class function will get called irrespective of object
(c.) Only derived class function will get called irrespective of object.
(d.) Base class object will call base class function and derived class object will call
derived class function.
Correct answer
(d.) Base class object will call base class function and derived class object will call
derived class function.
Feedback
https://docs.google.com/forms/d/e/1FAIpQLSeeBuCmo-1r1SnmgO2-ADXN8I2OkIarsayZPOwx6Fip72vTJQ/viewscore?viewscore=AE0zAgAJP… 7/19
29/04/2020 Test1-OOC
(a.) Multiple
(b.) Multilevel
(c.) Distributive
(d.) Hierarchial
Correct answer
(c.) Distributive
Feedback
15. If a class C is derived from class B, which is derived from class A, all 0/1
through public inheritance, then a class C member function can access
Correct answer
Feedback
https://docs.google.com/forms/d/e/1FAIpQLSeeBuCmo-1r1SnmgO2-ADXN8I2OkIarsayZPOwx6Fip72vTJQ/viewscore?viewscore=AE0zAgAJP… 8/19
29/04/2020 Test1-OOC
(a.) overload
(b.) operator
(c.) friend
(d.) override
Correct answer
(b.) operator
Feedback
(a.) Friend function can access public data members of the class.
(b.) Friend function can access protected data members of the class.
(c.) Friend function can access private data members of the class.
Correct answer
Feedback
https://docs.google.com/forms/d/e/1FAIpQLSeeBuCmo-1r1SnmgO2-ADXN8I2OkIarsayZPOwx6Fip72vTJQ/viewscore?viewscore=AE0zAgAJP… 9/19
29/04/2020 Test1-OOC
18. Which of the following access specifier is used as a default in a class 0/1
definition?
(a.) protected
(b.) public
(c.) private
(d.) friend
Correct answer
(c.) private
Feedback
Correct answer
Feedback
https://docs.google.com/forms/d/e/1FAIpQLSeeBuCmo-1r1SnmgO2-ADXN8I2OkIarsayZPOwx6Fip72vTJQ/viewscore?viewscore=AE0zAgAJ… 10/19
29/04/2020 Test1-OOC
a) At run time
b) At compile time
c) At coding time
d) At execution time
Correct answer
b) At compile time
Feedback
Correct answer
interface
Feedback
Interface
https://docs.google.com/forms/d/e/1FAIpQLSeeBuCmo-1r1SnmgO2-ADXN8I2OkIarsayZPOwx6Fip72vTJQ/viewscore?viewscore=AE0zAgAJ… 11/19
29/04/2020 Test1-OOC
Correct answer
Feedback
Correct answer
Feedback
Correct answer
alan kay
Feedback
Alan kay
https://docs.google.com/forms/d/e/1FAIpQLSeeBuCmo-1r1SnmgO2-ADXN8I2OkIarsayZPOwx6Fip72vTJQ/viewscore?viewscore=AE0zAgAJ… 12/19
29/04/2020 Test1-OOC
Correct answers
compilation error
Correct Answer
Feedback
compilation error
26. ----- is the additional feature in classes that was not in structures ···/1
Correct answer
Feedback
https://docs.google.com/forms/d/e/1FAIpQLSeeBuCmo-1r1SnmgO2-ADXN8I2OkIarsayZPOwx6Fip72vTJQ/viewscore?viewscore=AE0zAgAJ… 13/19
29/04/2020 Test1-OOC
27. Pure OOP can be implemented without using class in a program. (True 0/1
or False)
Correct answer
false
Feedback
False
Correct answer
inheritance
Feedback
inheritance
29. Which language does not support all 4 types of inheritance? ···/1
Correct answer
java
Feedback
java
https://docs.google.com/forms/d/e/1FAIpQLSeeBuCmo-1r1SnmgO2-ADXN8I2OkIarsayZPOwx6Fip72vTJQ/viewscore?viewscore=AE0zAgAJ… 14/19
29/04/2020 Test1-OOC
10
Correct answer
any number
Feedback
any number
31. When OOP concept did first came into picture? ···/1
Correct answer
1966 or 1967
Feedback
1966 or 1967
32. How many types of constructors are available for use in general (with ···/1
respect to parameters)?
10
Correct answer
Feedback
https://docs.google.com/forms/d/e/1FAIpQLSeeBuCmo-1r1SnmgO2-ADXN8I2OkIarsayZPOwx6Fip72vTJQ/viewscore?viewscore=AE0zAgAJ… 15/19
29/04/2020 Test1-OOC
Correct answer
true
Feedback
34. How many types of access specifiers are provided in OOP (C++)? ···/1
10
Correct answer
Feedback
https://docs.google.com/forms/d/e/1FAIpQLSeeBuCmo-1r1SnmgO2-ADXN8I2OkIarsayZPOwx6Fip72vTJQ/viewscore?viewscore=AE0zAgAJ… 16/19
29/04/2020 Test1-OOC
35. Which specifier allows a programmer to make the private members ···/1
which can be inherited?
Correct answer
protected
Feedback
protected
36. If a class has all the private members, which specifier will be used for ···/1
its implicit constructor?
Correct answer
public
Feedback
public
https://docs.google.com/forms/d/e/1FAIpQLSeeBuCmo-1r1SnmgO2-ADXN8I2OkIarsayZPOwx6Fip72vTJQ/viewscore?viewscore=AE0zAgAJ… 17/19
29/04/2020 Test1-OOC
37. If an abstract class has all the private members, then _________ ···/1
10
Correct answer
Feedback
38. Which specifier should be used for member functions of a class? ···/1
Correct answer
public
Feedback
public
39. What is the term used to indicate the variable and constants of a ···/1
class?
Correct answer
Data members
https://docs.google.com/forms/d/e/1FAIpQLSeeBuCmo-1r1SnmgO2-ADXN8I2OkIarsayZPOwx6Fip72vTJQ/viewscore?viewscore=AE0zAgAJ… 18/19
29/04/2020 Test1-OOC
Correct answer
Variables
Feedback
variable
Forms
https://docs.google.com/forms/d/e/1FAIpQLSeeBuCmo-1r1SnmgO2-ADXN8I2OkIarsayZPOwx6Fip72vTJQ/viewscore?viewscore=AE0zAgAJ… 19/19