The Preprocessor - Online Test

Test Difficulty Level: Medium

Syllabus of Test

Macro Expansion, File Inclusion, Conditional Compilation

Sample Question from this online test:

Question: #define CUBE(X) (X*X*X)
main()
{
int a;
a=27/CUBE(3);
printf("%d", a);
}

Option A: 9

Option B: 3

Option C: 1

Option D: None Of These

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

Start this Test






Comments

Ganesh Borle on 2009-10-26 14:31:54 wrote,

Your second question is wrong.
Missing of variable in the printf statement.

nuthan murarysetty on 2011-04-22 16:41:17 wrote,

i feel confuse

Joanse nithin riju on 2012-06-01 12:51:34 wrote,

Not bad

vasanth kumar on 2012-06-18 06:55:38 wrote,

second Q wrong missing m var in printf statment

anuj saxena on 2012-06-18 09:00:21 wrote,

it is not bad