Sunday, January 15, 2012

Programming Languages MCQS-SET 07


Member functions, when defined within the class specification:
(A) are always inline.
(B) are not inline.
(C) are inline by default, unless they are too big or too complicated.
(D) are not inline by default.

Ans:A

Which can be passed as an argument to a function?
(A) constant                                          (B) expression
(C) another function                             (D) all of the above.

Ans:A

Which of the following statement is valid?
(A) We can create new C++ operators.
(B) We can change the precedence of the C++ operators.
(C) We can change the associativity of the C++ operators
(D) We can not change operator templates
Ans:D

Maximum number of template arguments in a function template is
(A) on
(B) two 
(C) thre
(D) many

Ans:D

Which of the following operator can be overloaded through friend function?
(A) -> 
(B)
(C)( )
(D) *

Ans:D


What will be the result of the expressio13 & 25?
(A) 3
(B) 25
(C) 9
(D) 12

Ans:C

Which of the following declarations are illegal?
(A) void *ptr;
(B) char *str = hello”;
(C) char str = hello
(D) const *int p1;

Ans:C


Which of the following ways are legal to access a class data member using this pointer?
(A) this.x                                           (B) *this.x
(C) *(this.x)                                      (D) (*this).x

Ans:D

Overloading a postfix increment operator by means of a member function takes
(A) no argument                                (B) one argument
(C) two arguments                            (D) three arguments

Ans:A









Please Share it! :)

Ditulis Oleh : Nangraj Hari: 4:49 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