Docstoc

cs201 quizz

Document Sample
cs201 quizz Powered By Docstoc
					Question # 3 of 10 ( Start time: 09:13:21 PM )                                      Total Marks: 1
____________will return the number of bytes reserved for a variable or data type.
    Select correct option:

           sizeof operator




           free operator




           void pointer




           new operator




Question # 4 of 10 ( Start time: 09:14:30 PM )                                      Total Marks: 1
In a class we can have ___________ constructor(s).
    Select correct option:

           only one




           no




           two




           many




A class is _____________.
    Select correct option:

           a built in function
          a user defined data type




          an array




          a member function




Question # 6 of 10 ( Start time: 09:16:33 PM )                                                           Total Marks: 1
If NULL is returned by the calloc function, it should be handled ___________________ So that program exit safely.
    Select correct option:

          according to logic




          with if-else statements




          with sizeof function




          with Void pointer




Question # 7 of 10 ( Start time: 09:17:42 PM )                                                           Total Marks: 1
While using _________________ operator we do not need to supply number of bytes allocated.
    Select correct option:

          insertion




          dot




          malloc
           new




The default visibility for the data members of the class is
     Select correct option:

           private




           protected




           public




           accessible outside the class




                                                                   Click here to Save Answer & Move to Next Question

The members of a class declared with the keyword class are __________ by default
     Select correct option:

           protected




           private




           public




           constant




                                                                   Click here to Save Answer & Move to Next Question

Question # 10 of 10 ( Start time: 09:20:27 PM )                                                       Total Marks: 1
symbolic constant PI can be defined as:
    Select correct option:
#define PI 3.14 ;




#define PI 3.14




#define PI=3.14




# include pi= 3.14

				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:25
posted:6/8/2012
language:
pages:4