Basics Of C Language: Test 7 - Online Test

Test Difficulty Level: Medium

Syllabus of Test

Sample Question from this online test:

Question: #include<stdio.h>
int main(){
int a=0;
#if (a==0)
printf("Equal");
#else if
printf("Not equal");
#endif
return 0;
}

Option A: Equal

Option B: Not equal

Option C: Compilation error

Option D: Garbage

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

Start this Test






Comments

karthik ravi on 2011-10-18 07:41:57 wrote,

the answer for the question 13 is C not B. U have also explained the same but considered B is right answer. Please correct it...

chut chut on 2012-08-25 03:42:15 wrote,

very good question

prasanth s on 2012-09-15 07:39:47 wrote,

question 13 correct answer is c

ruchi bohra on 2012-09-15 08:14:39 wrote,

good questions..best way to test your skills..:)