<< Home



C Multiple Choice Questions


Page 1 2 >>>

Question No. 1 -->
Consider a linked list implemented of a queue with two pointers: front and rear. What is the time needed to insert element in a queue of length of n?

1) O(log2n)
2) O(n).
3) O(1).
4) O(n log2n).

See Answer(s) of Question no. 1

Question No. 2 -->
Time taken for addition of element in queue is

1) O(

1)
2) O(n)
3) O(log n)
4) None of these options

See Answer(s) of Question no. 2
Question No. 3 -->
The statement that tests to see if sum is equal to 10 and total is less than 20, and if so, prints the text string "incorrect.", is

1) if( (sum = 10) && (total < 20) )printf(
2) if( (sum == 10) && (total < 20) )printf(
3) if( (sum == 10) ¦¦ (total < 20) )printf(
4) None of these options

See Answer(s) of Question no. 3
Question No. 4 -->
Consider a linked list of n elements. What is the time taken to insert an element pointer ?

1) O(log2n)
2) O(n)
3) O(1)
4) O(n log2n)

See Answer(s) of Question no. 4
Question No. 5 -->
What is the program design method we learned in order to write Object Oriented Programs?

1) Declare - Define - Use
2) Public functions and private variables
3) Top - Down programming
4) Bottom - Up programming

See Answer(s) of Question no. 5
Question No. 6 -->
Which is a logical abstract base class for a class called "footballPlayer"?

1) Salary
2) Sport
3) Athlete
4) Team.

See Answer(s) of Question no. 6
Question No. 7 -->
A recursive function would result in infinite recursion, if the following were left out:

1) Base case
2) Recursive call
3) Subtraction
4) Local variable declarations

See Answer(s) of Question no. 7
Question No. 8 -->
Can two classes contain member functions with the same name?

1) No.
2) Yes, but only if the two classes have the same name.
3) Yes, but only if the main program does not declare both kinds.
4) Yes, this is always allowed

See Answer(s) of Question no. 8
Question No. 9 -->
A derived class

1) Inherits data members and member functions from base class.
2) Inherits constructors and destructor.
3) Object can access protected members with the dot operator.
4) Inherits data members and member functions from base class as well as Inherits constructors and destructor.

See Answer(s) of Question no. 9
Question No. 10 -->
_________is a relationship

1) Polymorphism
2) Inheritance
3) Overloading
4) None of these options

See Answer(s) of Question no. 10
Question No. 11 -->
Abstract class cannot have ________-.

1) Zero instance.
2) Multiple instance.
3) Both Zero instance & Multiple instance.
4) None of these options

See Answer(s) of Question no. 11
Question No. 12 -->
Which is a logical abstract base class for a class called "CricketPlayer"?

1) Bank.
2) Athlete.
3) Sport.
4) Team.

See Answer(s) of Question no. 12
Question No. 13 -->
Maintaining the state of an object is called____.

1) Serialization
2) Persistence
3) Marshalling
4) None of these options

See Answer(s) of Question no. 13
Question No. 14 -->
______ means that both the data and the methods which may access it are defined together in the same unit.

1) Data hiding.
2) Encapsulation
3) Data Binding
4) None of these options

See Answer(s) of Question no. 14
Question No. 15 -->
If a catch statement is written to catch exception objects of a base class type, it can also catch all _____ derived from that base class

1) Exceptions for objects
2) Objects of classes
3) Arguments
4) Errors

See Answer(s) of Question no. 15
Question No. 16 -->
Association in UML can be represented by:

1) Only with a double line between base class & derived classes.
2) A plane line with no shape on either end.
3) A line with an arrow-head pointing in direction of parent or superclass.
4) Diamond shape between classes.

See Answer(s) of Question no. 16
Question No. 17 -->
Suppose that the Test class does not have an overloaded assignment operator. What happens when an assignment a=b; is given for two Test objects a and b?

1) The automatic assignment operator is used
2) The copy constructor is used
3) Compiler error
4) Run-time error

See Answer(s) of Question no. 17
Question No. 18 -->
Peer-to-peer relationship is a type of _________.

1) Association
2) Aggregation
3) Link
4) None of these options

See Answer(s) of Question no. 18
Question No. 19 -->
Which of the following are good reasons to use an object oriented language.

1) You can define your own data types
2) An object oriented program can be taught to correct its own errors
3) It is easier to conceptualize an object oriented program
4) You can define your own data types and It is easier to conceptualize an object oriented program

See Answer(s) of Question no. 19
Question No. 20 -->
What is a Constructor?

1) A function called when an instance of a class is initialized.
2) A function that is called when an instance of a class is deleted.
3) A special function to change the value of dynamically allocated memory.
4) A function that is called in order to change the value of a variable.

See Answer(s) of Question no. 20
Question No. 21 -->
An application uses encapsulation to achieve ________

1) Information hiding
2) Minimizing interdependencies among modules
3) Make implementation independent
4) All of these options

See Answer(s) of Question no. 21
Question No. 22 -->
A class is_____

1) Data Type
2) Abstract Type
3) User Defined Type
4) All of these options

See Answer(s) of Question no. 22
Question No. 23 -->
Can two classes contain member functions with the same name?

1) No.
2) Yes, but only if the two classes have the same name.
3) Yes, but only if the main program does not declare both kinds.
4) Yes, this is always allowed.

See Answer(s) of Question no. 23
Question No. 24 -->
In object orientated programming a class of objects can _____________ properties from another class of objects

1) Utilize
2) Borrow
3) Inherit
4) Adapt

See Answer(s) of Question no. 24
Question No. 25 -->
Suppose that the Test class does not have an overloaded assignment operator. What happens when an assignment a=b; is given for two Test objects a and b?

1) The automatic assignment operator is used
2) The copy constructor is used
3) Compiler error
4) Run-time error

See Answer(s) of Question no. 25
Question No. 26 -->
Reusability can be achieved through.

1) Inheritance.
2) Composition.
3) Association.
4) All of these options

See Answer(s) of Question no. 26
Question No. 27 -->
When a class uses dynamic memory, what member functions should be provided by the class?

1) An overloaded assignment operator.
2) The copy constructor.
3) A destructor.
4) All of these optionsq To cancel the answer given by you first

See Answer(s) of Question no. 27
Question No. 28 -->
UML is:

1) Used to graphically represent & manipulate an object oriented software system.
2) Used as a markup-language.
3) Used as documentation system tool.
4) A utility to improve your oops concept.

See Answer(s) of Question no. 28
Question No. 28 -->
If a catch statement is written to catch exception objects of a base class type, it can also catch all _____ derived from that base class

1) Exceptions for objects
2) Objects of classes
3) Arguments
4) Errors

See Answer(s) of Question no. 28
Question No. 29 -->
Object Oriented Technology`s use of _________ facilitates the reuse of the code and architecture and its __________ feature provides systems with stability, as a small change in requirements does not require massive changes in the system:

1) Encapsulation; inheritance
2) Inheritance; polymorphism
3) Inheritance; encapsulation
4) Polymorphism; abstraction

See Answer(s) of Question no. 29
Question No. 30 -->
A recursive function would result in infinite recursion, if the following were left out:

1) Base case
2) Recursive call
3) Subtraction
4) Local variable declarations

See Answer(s) of Question no. 30
Question No. 31 -->
Which of the following are class relationships?

1) is-a relationship.
2) Part-of relationship.
3) Use-a relationship.
4) All of these options.

See Answer(s) of Question no. 31
Question No. 32 -->
In OOP`s, advantage of inheritance include.

1) Providing a useful conceptual framework.
2) Avoiding rewriting a code.
3) Facilitating class libraries.
4) All of these options.

See Answer(s) of Question no. 32
Question No. 33 -->
What is inheritance?

1) It is same as encapsulation.
2) Aggregation of information.
3) Generalization and specialization.
4) All of these options.

See Answer(s) of Question no. 33
Question No. 34 -->
Object orientated programming allows for extension of an objects function or of class function. This ability within OOP is called ________________ .

1) extendibility
2) expansion capacity
3) virtual extension
4) scalability

See Answer(s) of Question no. 34
Question No. 35 -->
UML stands for

1) Unique modeling language.
2) Unified modeling language
3) Unified modern language
4) Unified master laqnguage

See Answer(s) of Question no. 35
Question No. 36 -->
Which of the following programming technique focuses on the algorithm.

1) Procedural language
2) Object oriented language
3)Object based language
4) Structural language

See Answer(s) of Question no. 36
Question No. 37 -->
_______ provide useful conceptual framework.

1) Inheritance
2) Polymorphysm
3) Encapsulation
4) None of these options

See Answer(s) of Question no. 37
Question No. 38 -->
Which of the following is true:

1) Class is an object of an object.
2) Class is meta class.
3) Class cannot have zero instances.
4) None of these options.

See Answer(s) of Question no. 38
Question No. 39 -->
The design of classes in a way that hides the details of implementation from the user is known as:

1) Encapsulation
2) Information Hiding
3) Data abstraction
4) All of these options

See Answer(s) of Question no. 39
Question No. 40 -->
Which are the main three features of OOP language?

1) Data Encapsulation, Inheritance & Exception handling
2) Inheritance, Polymorphism & Exception handling
3) Data Encapsulation, Inheritance & Polymorphism
4) Overloading, Inheritance & Polymorphism

See Answer(s) of Question no. 40
Question No. 41 -->
Which are the main three features of OOP language?

1) Data Encapsulation, Inheritance & Exception handling
2) Inheritance, Polymorphism & Exception handling
3) Data Encapsulation, Inheritance & Polymorphism
4) Overloading, Inheritance & Polymorphism

See Answer(s) of Question no. 41
Question No. 42 -->
A derived class

1) Inherits data members and member functions from base class.
2) Inherits constructors and destructor.
3) Object can access protected members with the dot operator.
4) Inherits data members and member functions from base class as well as Inherits constructors and destructor.

See Answer(s) of Question no. 42
Question No. 43 -->
The ability to reuse objects already defined, perhaps for a different purpose, with modification appropriate to the new purpose, is referred to as

1) Information hiding.
2) Inheritance.
3) Redefinition.
4) Overloading

See Answer(s) of Question no. 43
Question No. 44 -->
______ is the good example of a method that is shared by all instance of a class.

1) Constructor
2) Attribute
3) Constructor and Attribute
4) None of these options

See Answer(s) of Question no. 44
Question No. 45 -->
An ______ Denotes the essential characteristics of an object that distinguish it from all other kinds of objects.

1) Aggregation
2) Abstraction
3) Modularity
4) None of these options

See Answer(s) of Question no.45
Question No. 46 -->
What is a base class?

1) An abstract class that is at the top of the inheritance hierarchy.
2) A class with a pure virtual function in it.
3) A class that inherits from another class
4) A class that is inherited by another class, and thus is included in that class.

See Answer(s) of Question no. 46
Question No. 47 -->
______ is the property of an object that distinguishes it from all other object.

1) Identity
2) State
3) Behaviour.
4) None of these options.

See Answer(s) of Question no. 47
Question No. 48 -->
Statement I : All the non-private members of the base class can be accessed from the derived class as if they were members of the derived class. Statement II : The protected data members can be accessed in the same class or in its derived class

1) Both are true.
2) Both are false
3) Statement I is true, statement II is false
4) Statement I is false, statement II is true.

See Answer(s) of Question no. 48
Question No. 49 -->
A derived class

1) Inherits data members and member functions from base class.
2) Inherits constructors and destructor.
3) Object can access protected members with the dot operator.
4) Inherits data members and member functions from base class as well as Inherits constructors and destructor.

See Answer(s) of Question no. 49
Question No. 50 -->
How do you define an abstract class? In other words, what makes a class abstract?

1) The class must not have method definitions.
2) The class must have a constructor that takes no arguments.
3) The class must have a function definition equal to zero.
4) The class may only exist during the planning phase.

See Answer(s) of Question no. 50
Question No. 51 -->
Interface is also known as _________.

1) Virtual class.
2) Dependent class.
3) Pure Abstract Class.
4) None of these options

See Answer(s) of Question no. 51
Question No. 52 -->
When a class uses dynamic memory, what member functions should be provided by the class?

1) An overloaded assignment operator.
2) The copy constructor.
3) A destructor.
4) All of these optionsq

See Answer(s) of Question no. 52
Question No. 53 -->
The (+) sign and (-) sign to the left of the attributes & methods signify:

1) Whether the methods & attributes are public or private.
2) Whether the methods & attributes are global or local.
3) Whether the methods & attributes are overloaded or overridden.
4) Used only with attributes not with methods

See Answer(s) of Question no. 53
Question No. 54 -->
If a catch statement is written to catch exception objects of a base class type, it can also catch all _____ derived from that base class

1) Exceptions for objects
2) Objects of classes
3) Arguments
4) Errors

See Answer(s) of Question no. 54
Question No. 55 -->
Shallow copy is defined as

1) Memberwise copying of objects
2) There is nothing like shallow copy
3) Is same like Deep copy
4) None of these options

See Answer(s) of Question no. 55
Question No. 56 -->
An application uses encapsulation to achieve ________

1) Information hiding
2) Minimizing interdependencies among modules
3) Make implementation independent
4) All of these options

See Answer(s) of Question no. 56
ANSWERS -->

Answer of Question No. 1 -->
Consider a linked list implemented of a queue with two pointers: front and rear. What is the time needed to insert element in a queue of length of n?

1) O(log2n)
2) O(n).
3) O(

1).
4) O(n log2n).

See Answer(s) of Question no. 1
Answer of Question No. 2 -->
Time taken for addition of element in queue is

1) O(

1)
2) O(n)
3) O(log n)
4) None of these options

See Answer(s) of Question no. 2
Answer of Question No. 3 -->
The statement that tests to see if sum is equal to 10 and total is less than 20, and if so, prints the text string "incorrect.", is

1) if( (sum = 10) && (total < 20) )printf(
2) if( (sum == 10) && (total < 20) )printf(
3) if( (sum == 10) ¦¦ (total < 20) )printf(
4) None of these options

See Answer(s) of Question no. 3
Answer of Question No. 4 -->
Consider a linked list of n elements. What is the time taken to insert an element pointer ?

1) O(log2n)
2) O(n)
3) O(

1)
4) O(n log2n)

See Answer(s) of Question no. 4
Answer of Question No. 5 -->
What is the program design method we learned in order to write Object Oriented Programs?

1) Declare - Define - Use
2) Public functions and private variables
3) Top - Down programming
4) Bottom - Up programming

See Answer(s) of Question no. 5
Answer of Question No. 6 -->
Which is a logical abstract base class for a class called "footballPlayer"?

1) Salary
2) Sport
3) Athlete
4) Team.

See Answer(s) of Question no. 6
Answer of Question No. 7 -->
A recursive function would result in infinite recursion, if the following were left out:

1) Base case
2) Recursive call
3) Subtraction
4) Local variable declarations

See Answer(s) of Question no. 7
Answer of Question No. 8 -->
Can two classes contain member functions with the same name?

1) No.
2) Yes, but only if the two classes have the same name.
3) Yes, but only if the main program does not declare both kinds.
4) Yes, this is always allowed

See Answer(s) of Question no. 8
Answer of Question No. 9 -->
A derived class

1) Inherits data members and member functions from base class.
2) Inherits constructors and destructor.
3) Object can access protected members with the dot operator.
4) Inherits data members and member functions from base class as well as Inherits constructors and destructor.

See Answer(s) of Question no. 9
Answer of Question No. 10 -->
_________is a relationship

1) Polymorphism
2) Inheritance
3) Overloading
4) None of these options

See Answer(s) of Question no. 10
Answer of Question No. 11 -->
Abstract class cannot have ________-.

1) Zero instance.
2) Multiple instance.
3) Both Zero instance & Multiple instance.
4) None of these options

See Answer(s) of Question no. 11
Answer of Question No. 12 -->
Which is a logical abstract base class for a class called "CricketPlayer"?

1) Bank.
2) Athlete.
3) Sport.
4) Team.

See Answer(s) of Question no. 12
Answer of Question No. 13 -->
Maintaining the state of an object is called____.

1) Serialization
2) Persistence
3) Marshalling
4) None of these options

See Answer(s) of Question no. 13
Answer of Question No. 14 -->
______ means that both the data and the methods which may access it are defined together in the same unit.

1) Data hiding.
2) Encapsulation
3) Data Binding
4) None of these options

See Answer(s) of Question no. 14
Answer of Question No. 15 -->
If a catch statement is written to catch exception objects of a base class type, it can also catch all _____ derived from that base class

1) Exceptions for objects
2) Objects of classes
3) Arguments
4) Errors

See Answer(s) of Question no. 15
Answer of Question No. 16 -->
Association in UML can be represented by:

1) Only with a double line between base class & derived classes.
2) A plane line with no shape on either end.
3) A line with an arrow-head pointing in direction of parent or superclass.
4) Diamond shape between classes.

See Answer(s) of Question no. 16
Answer of Question No. 17 -->
Suppose that the Test class does not have an overloaded assignment operator. What happens when an assignment a=b; is given for two Test objects a and b?

1) The automatic assignment operator is used
2) The copy constructor is used
3) Compiler error
4) Run-time error

See Answer(s) of Question no. 17
Answer of Question No. 18 -->
Peer-to-peer relationship is a type of _________.

1) Association
2) Aggregation
3) Link
4) None of these options

See Answer(s) of Question no. 18
Answer of Question No. 19 -->
Which of the following are good reasons to use an object oriented language.

1) You can define your own data types
2) An object oriented program can be taught to correct its own errors
3) It is easier to conceptualize an object oriented program
4) You can define your own data types and It is easier to conceptualize an object oriented program

See Answer(s) of Question no. 19
Answer of Question No. 20 -->
What is a Constructor?

1) A function called when an instance of a class is initialized.
2) A function that is called when an instance of a class is deleted.
3) A special function to change the value of dynamically allocated memory.
4) A function that is called in order to change the value of a variable.

See Answer(s) of Question no. 20
Answer of Question No. 21 -->
An application uses encapsulation to achieve ________

1) Information hiding
2) Minimizing interdependencies among modules
3) Make implementation independent
4) All of these options

See Answer(s) of Question no. 21
Answer of Question No. 22 -->
A class is_____

1) Data Type
2) Abstract Type
3) User Defined Type
4) All of these options

See Answer(s) of Question no. 22
Answer of Question No. 23 -->
Can two classes contain member functions with the same name?

1) No.
2) Yes, but only if the two classes have the same name.
3) Yes, but only if the main program does not declare both kinds.
4) Yes, this is always allowed.

See Answer(s) of Question no. 23
Answer of Question No. 24 -->
In object orientated programming a class of objects can _____________ properties from another class of objects

1) Utilize
2) Borrow
3) Inherit
4) Adapt

See Answer(s) of Question no. 24
Answer of Question No. 25 -->
Suppose that the Test class does not have an overloaded assignment operator. What happens when an assignment a=b; is given for two Test objects a and b?

1) The automatic assignment operator is used
2) The copy constructor is used
3) Compiler error
4) Run-time error

See Answer(s) of Question no. 25
Answer of Question No. 26 -->
Reusability can be achieved through.

1) Inheritance.
2) Composition.
3) Association.
4) All of these options

See Answer(s) of Question no. 26
Answer of Question No. 27 -->
When a class uses dynamic memory, what member functions should be provided by the class?

1) An overloaded assignment operator.
2) The copy constructor.
3) A destructor.
4) All of these optionsq To cancel the answer given by you first

See Answer(s) of Question no. 27
Answer of Question No. 28 -->
UML is:

1) Used to graphically represent & manipulate an object oriented software system.
2) Used as a markup-language.
3) Used as documentation system tool.
4) A utility to improve your oops concept.

See Answer(s) of Question no. 28
Answer of Question No. 28 -->
If a catch statement is written to catch exception objects of a base class type, it can also catch all _____ derived from that base class

1) Exceptions for objects
2) Objects of classes
3) Arguments
4) Errors

See Answer(s) of Question no. 28
Question No. 29 -->
Object Oriented Technology`s use of _________ facilitates the reuse of the code and architecture and its __________ feature provides systems with stability, as a small change in requirements does not require massive changes in the system:

1) Encapsulation; inheritance
2) Inheritance; polymorphism
3) Inheritance; encapsulation
4) Polymorphism; abstraction

See Answer(s) of Question no. 29
Question No. 30 -->
A recursive function would result in infinite recursion, if the following were left out:

1) Base case
2) Recursive call
3) Subtraction
4) Local variable declarations

See Answer(s) of Question no. 30
Question No. 31 -->
Which of the following are class relationships?

1) is-a relationship.
2) Part-of relationship.
3) Use-a relationship.
4) All of these options.

See Answer(s) of Question no. 31
Question No. 32 -->
In OOP`s, advantage of inheritance include.

1) Providing a useful conceptual framework.
2) Avoiding rewriting a code.
3) Facilitating class libraries.
4) All of these options.

See Answer(s) of Question no. 32
Question No. 33 -->
What is inheritance?

1) It is same as encapsulation.
2) Aggregation of information.
3) Generalization and specialization.
4) All of these options.

See Answer(s) of Question no. 33
Question No. 34 -->
Object orientated programming allows for extension of an objects function or of class function. This ability within OOP is called ________________ .

1) extendibility
2) expansion capacity
3) virtual extension
4) scalability

See Answer(s) of Question no. 34
Question No. 35 -->
UML stands for

1) Unique modeling language.
2) Unified modeling language
3) Unified modern language
4) Unified master laqnguage

See Answer(s) of Question no. 35
Question No. 36 -->
Which of the following programming technique focuses on the algorithm.

1) Procedural language
2) Object oriented language
3)Object based language
4) Structural language

See Answer(s) of Question no. 36
Question No. 37 -->
_______ provide useful conceptual framework.

1) Inheritance
2) Polymorphysm
3) Encapsulation
4) None of these options

See Answer(s) of Question no. 37
Question No. 38 -->
Which of the following is true:

1) Class is an object of an object.
2) Class is meta class.
3) Class cannot have zero instances.
4) None of these options.

See Answer(s) of Question no. 38
Question No. 39 -->
The design of classes in a way that hides the details of implementation from the user is known as:

1) Encapsulation
2) Information Hiding
3) Data abstraction
4) All of these options

See Answer(s) of Question no. 39
Answer of Question No. 40 -->
Which are the main three features of OOP language?

1) Data Encapsulation, Inheritance & Exception handling
2) Inheritance, Polymorphism & Exception handling
3) Data Encapsulation, Inheritance & Polymorphism
4) Overloading, Inheritance & Polymorphism

See Answer(s) of Question no. 40
Answer of Question No. 41 -->
Which are the main three features of OOP language?

1) Data Encapsulation, Inheritance & Exception handling
2) Inheritance, Polymorphism & Exception handling
3) Data Encapsulation, Inheritance & Polymorphism
4) Overloading, Inheritance & Polymorphism

See Answer(s) of Question no. 41
Answer of Question No. 42 -->
A derived class

1) Inherits data members and member functions from base class.
2) Inherits constructors and destructor.
3) Object can access protected members with the dot operator.
4) Inherits data members and member functions from base class as well as Inherits constructors and destructor.

See Answer(s) of Question no. 42
Answer of Question No. 43 -->
The ability to reuse objects already defined, perhaps for a different purpose, with modification appropriate to the new purpose, is referred to as

1) Information hiding.
2) Inheritance.
3) Redefinition.
4) Overloading

See Answer(s) of Question no. 43
Answer of Question No. 44 -->
______ is the good example of a method that is shared by all instance of a class.

1) Constructor
2) Attribute
3) Constructor and Attribute
4) None of these options

See Answer(s) of Question no. 44
Answer of Question No. 45 -->
An ______ Denotes the essential characteristics of an object that distinguish it from all other kinds of objects.

1) Aggregation
2) Abstraction
3) Modularity
4) None of these options

See Answer(s) of Question no.45
Answer of Question No. 46 -->
What is a base class?

1) An abstract class that is at the top of the inheritance hierarchy.
2) A class with a pure virtual function in it.
3) A class that inherits from another class
4) A class that is inherited by another class, and thus is included in that class.

See Answer(s) of Question no. 46
Answer of Question No. 47 -->
______ is the property of an object that distinguishes it from all other object.

1) Identity
2) State
3) Behaviour.
4) None of these options.

See Answer(s) of Question no. 47
Answer of Question No. 48 -->
Statement I : All the non-private members of the base class can be accessed from the derived class as if they were members of the derived class. Statement II : The protected data members can be accessed in the same class or in its derived class

1) Both are true.
2) Both are false
3) Statement I is true, statement II is false
4) Statement I is false, statement II is true.

See Answer(s) of Question no. 48
Answer of Question No. 49 -->
A derived class

1) Inherits data members and member functions from base class.
2) Inherits constructors and destructor.
3) Object can access protected members with the dot operator.
4) Inherits data members and member functions from base class as well as Inherits constructors and destructor.

See Answer(s) of Question no. 49
Answer of Question No. 50 -->
How do you define an abstract class? In other words, what makes a class abstract?

1) The class must not have method definitions.
2) The class must have a constructor that takes no arguments.
3) The class must have a function definition equal to zero.
4) The class may only exist during the planning phase.

See Answer(s) of Question no. 50
Answer of Question No. 51 -->
Interface is also known as _________.

1) Virtual class.
2) Dependent class.
3) Pure Abstract Class.
4) None of these options

See Answer(s) of Question no. 51
Answer of Question No. 52 -->
When a class uses dynamic memory, what member functions should be provided by the class?

1) An overloaded assignment operator.
2) The copy constructor.
3) A destructor.
4) All of these optionsq

See Answer(s) of Question no. 52
Answer of Question No. 53 -->
The (+) sign and (-) sign to the left of the attributes & methods signify:

1) Whether the methods & attributes are public or private.
2) Whether the methods & attributes are global or local.
3) Whether the methods & attributes are overloaded or overridden.
4) Used only with attributes not with methods

See Answer(s) of Question no. 53
Answer of Question No. 54 -->
If a catch statement is written to catch exception objects of a base class type, it can also catch all _____ derived from that base class

1) Exceptions for objects
2) Objects of classes
3) Arguments
4) Errors

See Answer(s) of Question no. 54
Answer of Question No. 55 -->
Shallow copy is defined as

1) Memberwise copying of objects
2) There is nothing like shallow copy
3) Is same like Deep copy
4) None of these options

See Answer(s) of Question no. 55
Answer of Question No. 56 -->
An application uses encapsulation to achieve ________

1) Information hiding
2) Minimizing interdependencies among modules
3) Make implementation independent
4) All of these options

See Answer(s) of Question no. 56


 
Copyright © 2006-2012 ExamBlast.com Last Updated 08-April-2012