Operating System

Showing posts with label OOPS. Show all posts
Showing posts with label OOPS. Show all posts

Monday, July 13, 2015

We cannot modify the code in base class as it will affect the derived classes as well.State true or false.

Leave a Comment
We cannot modify the code in base class as it will affect the derived classes as well.State true or false.
TRUE
FALSE
Read More

If the subclass does not define all the inherited abstract methods, then the sub class must be ________________.

Leave a Comment
If the subclass does not define all the inherited abstract methods, then the sub class must be ________________.
Abstract 
None of the listed options 
Complete 
Partially abstract 
Read More

We cannot modify the code in derived class as it will affect the base class.State true or false.

Leave a Comment
We cannot modify the code in derived class as it will affect the base class.State true or false.
TRUE
FALSE
Read More

In which of the following inheritance types. the derived class has only one base class?

Leave a Comment
In which of the following inheritance types. the derived class has only one base class?
Multiple 
Both of the listed options 
Single 
None of the listed options 
Read More

Which of the following statements explains the importance of multiple inheritance ?

Leave a Comment
Which of the following statements explains the importance of multiple inheritance ?
Multiple inheritance enables a derived class to inherit members from more than one parent. 
Multiple inheritance enables a base and derived classes to inherit members from more than one parent. 
None of the listed options 
Multiple inheritance enables a base class to inherit members from more than one parent.
Read More

Sunday, July 12, 2015

If a base class member access is public, and an inherited class accesses specifier is private, which of the following statement is true ?

Leave a Comment
If a base class member access is public, and an inherited class accesses specifier is private, which of the following statement is true ? 
The base class member can be accessed by derived class objects 
The derived class members can be accessed by the base class objects 
The base class members cannot be accessed by the derived class members
None of the listed options 
Read More

Which of the following statements is a definition for inheritance?

Leave a Comment
Which of the following statements is a definition for inheritance?
Manipulate objects of different classes and invoke methods on an object without knowing that object's type
Deriving new class from an existing class 
Ability to take on different forms 
It allows one interface to be used for general class of action 
Read More

Which of the following factors are an advantage for encapsulation?

Leave a Comment
Which of the following factors are an advantage for encapsulation?
High reusability 
Both of the listed options 
None of the listed options 
maintainability 
Read More

Encapsulation is understanding an object and representating it in terms of its characteristics and ____________.

Leave a Comment
Encapsulation is understanding an object and representating it in terms of its characteristics and ____________.
Usage frequency 
Both of the listed options 
None of the listed options 
Behaviour 
Read More

Which of the following is related to access specifier?

Leave a Comment
Which of the following is related to access specifier?
defines method 
read only objects 
determines variable and method access 
None of the listed options 
Read More

is used as default specifier for a member of class if no access specifier is mentioned for it

Leave a Comment
__________ is used as default specifier for a member of class if no access specifier is mentioned for it.
public 
private 
both the listed options 
None of the listed options 
Read More

Wednesday, May 27, 2015

Method names are case insensitive.State true or false.

Leave a Comment
Method names are case insensitive.State true or false.
TRUE
FALSE
Read More

Encapsulation assists abstraction by suppressing the non essential data.State true or false.

Leave a Comment

Encapsulation assists abstraction by suppressing the non essential data.State true or false.
TRUE
FALSE
Read More

Friday, May 1, 2015

Is used as default specifier for a member of class if no access specifier in and paid for it...

Leave a Comment
Is used as default specifier for a member of class if no access specifier in and paid for it...
private
both the listed option
none of the listed 
public
Read More

Which of the following factors are an advantage for encapsulation?

Leave a Comment
Which of the following factors are an advantage for encapsulation?
Both of the listed options
None of the listed options
High reusability
maintainability
Read More

If a base class member access is public, and an inherited class accesses specifier is private, which of the following statement is true ?

Leave a Comment
If a base class member access is public, and an inherited class accesses specifier is private, which of the following statement is true ?
The base class member can be accessed by derived class objects
The base class members cannot be accessed by the derived class members
None of the listed options
The derived class members can be accessed by the base class objects
Read More

Sunday, April 26, 2015

Which of the following statements are true with respect to encapsulation?

Leave a Comment
Which of the following statements are true with respect to encapsulation?
Enclosing items within a physical or logical package
Capping the products of a class in a different environment
Extracting the data from the package
Manages complexity by creating entities that focus on essential characteristics
Read More

Which of the following statements is true as far as method names are concerned?

Leave a Comment
Which of the following statements is true as far as method names are concerned?
Method names are unique identifiers
Method names are case sensitive
Method names can't be same as the variable name or any other non method item declared in the class
All the mentioned options
Read More

The operation defined by Abstract data type are the only operations permitted on its ____________

1 comment
The operation defined by Abstract data type are the only operations permitted on its ____________
None of the listed options
object
Method
Data
Read More

Which of the following factors influences an object's change of behaviour?

Leave a Comment
Which of the following factors influences an object's change of behaviour?
Both of the listed options
Number of input parameters
None of the listed options
Type of input parameters
Read More