Sunday, January 15, 2012

Programming Languages MCQS-SET 06


Mechanism of deriving a class from another derived class is known as                 
(A) Polymorphism                             (B) Single Inheritance
(C) Multilevel Inheritance                 (D) Message Passing

Ans: C

RunTime Polymorphism is achieved by                          
(A) friend function                            (B) virtual function
(C) operator overloading                   (D) function overloading

Ans: B

A function call mechanism that passes arguments to a function by passing a copy of the values of the arguments is             
(A) call by name                                (B) call by value
(C) call by reference                         (D) call by value result

Ans: B

In C++, dynamic memory allocation is accomplished with the operator           
(A) new                                              (B) this
(C) malloc( )                                       (D) delete

Ans: A

If we create a file by ifstream’, then the default mode of the file is         
(A) ios :: out                                      (B) ios :: in
(C) ios :: app                                     (D) ios :: binary

Ans: B

 The break statement causes an exit
(A) from the innermost loop only.


(B) only from the innermost switch.

(C) from all loops & switches.
(D) from the innermost loop or switch.


Ans: D

A property which is not true for classes is that they
(A) are removed from memory when not in use.
(B) permit data to be hidden from other classes.
(C) bring together all aspects of an entity in one place.
(D) Can closely model objects in the real world.
 Ans: C



The process of building new classes from existing one is called
(A) Structure.                                    (B) Inheritance.
(C) Polymorphism.                            (D) Template.

Ans: B








Please Share it! :)

Ditulis Oleh : Nangraj Hari: 4:29 AM Kategori:

0 comments:

Post a Comment

 
PLEASE VISIT MY OTHER BLOG TO DOWNLOAD LATEST FULL CRACKED SOFTWARES,GAMES,COMPUTER NOTES,VIDEO TUTORIALS,AND MUCH MORECLICK HERE