C Language: Conditional Statements Test 2 - Online Test

Test Difficulty Level: Medium

Syllabus of Test

Questions of C language from conditional statement (if...else)

Sample Question from this online test:

Question: main( )
int x = 30 , y = 40 ;
if ( x != y )
printf( "x is equal to y" ) ;
elseif ( x > y )
printf( "x is greater than y" ) ;
elseif ( x < y )
printf( "x is less than y" ) ;

Option A: x is equal to y

Option B: x is greater than y

Option C: x is less than y

Option D: none

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

Start this Test


Rahul jha on 2009-08-17 11:17:37 wrote,

q.14:- ans is wrong.if(a=b) is an error.
q.11:-and will be 0 50 0

gaurav khanna on 2009-09-13 17:39:34 wrote,

some of the answers are wrong
e.g Q13,Q17,Q18.............

Rajat srivastava on 2009-10-24 18:11:13 wrote,

many ques answer r wrong

b verma on 2010-02-03 19:50:09 wrote,

questions are correct..but answers are wrong..

Arti Shinde on 2010-09-15 07:59:05 wrote,

Most of the answers are wrong

giri babu on 2010-11-26 10:24:18 wrote,

guys, many of answers are wrong.........
if u compile them in your system u get different answers.

Garima Agrawal on 2011-02-19 17:23:06 wrote,

so many answers are wrong...atleast correct them up now....

nikhil verma on 2011-02-19 17:40:38 wrote,

lots of answers were wrong, the answer of questions 5 and 11 totally depends upon compiler's expression evaluation..

Ankit Sabharwal on 2011-05-11 18:24:45 wrote,

lots of answer will depend
on compiler...

raindar tandu on 2011-05-18 05:07:30 wrote,

some ans are worng

Omprakash Bairy on 2011-06-03 10:13:25 wrote,

Most of the answers are wrong

Sandip Rano on 2011-08-08 10:53:25 wrote,

some answers are wrong...

sagar kulkarni on 2012-08-10 05:09:37 wrote,

some questions are confusing and some are not understable.

victor munna on 2013-09-15 05:47:31 wrote,

q11 ans 0 50 0

vella durai on 2013-12-29 09:16:53 wrote,

q.no:19,20 are errors,because "then" is undefined symbol