Construtors And Deconstructors Test 1 - Online Test

Test Difficulty Level: Easy

Syllabus of Test

Sample Question from this online test:

Question: Which of the following statement declares and initializes, to the empty string, a 10 - element character array named firstName ?

Option A: char firstName[10] = " " ;

Option B: char firstName[10] = { " " } ;

Option C: char firstName[10] = { "0" } ;

Option D: Both A and B.

To answer, click the "Start This Test" button below.

Start this Test






Comments

gajendra kumar jena on 2009-02-11 14:17:33 wrote,

excelent

Rajesh Kumar Gupta on 2009-02-11 21:58:21 wrote,

@Gajendra,
Thnkx for the appreciation.

Arindam Chatterjee on 2009-03-07 12:09:38 wrote,

good for wake up call .. need to check whether constant parameters for constructors work or not ...

Many thanks

Piyush Patel on 2009-08-06 00:53:08 wrote,

12 is a bit confusing ..rest is nice

omar meshal on 2011-01-01 14:13:52 wrote,

great one