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 02: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...