Object Oriented Programming - Object Modelling - 2

176:  
Using a statement at the wrong time or with an inappropriate object creates a
A.

logical error

B.

syntax error

C.

compiler error

D.

language error

 
 

Option: A

Explanation :

Click on Discuss to view users comments.

Write your comments here:



177:  
Which of the following are good reasons to use an object-oriented language?
A.

You can define your own data types

B.
Program statements are simpler than in procedural languages
C.
An OO program can be taught to correct its own errors
D.

It is easier to conceptualize an OO program.

 
 

Option: D

Explanation :

Click on Discuss to view users comments.

Write your comments here:



178:  
A normal C++ operator that acts in special ways on newly defined data types is called
A.

glorified

B.

encapsulated

C.

classified

D.

overloaded

 
 

Option: D

Explanation :

Click on Discuss to view users comments.

Write your comments here:



179:  
When two types are used in a function template and One is labelled T, the other
A.

must also be named T

B.

must be named U

C.

can be any legal C++ identifier

D.

it is illegal to have two types.

 
 

Option: A

Explanation :

Click on Discuss to view users comments.

Write your comments here:



180:  
Compiler determines the type used in a template function via
A.

name of the function

B.

first variable declared within the function

C.

type of argument passed to the function

D.

type of the value turned from the function.

 
 

Option: C

Explanation :

Click on Discuss to view users comments.

Write your comments here: