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
Related Online Tests:
Comments
![]() | Rahul jha on 2009-08-17 06:17:37 wrote, q.14:- ans is wrong.if(a=b) is an error. |
![]() | gaurav khanna on 2009-09-13 12:39:34 wrote, some of the answers are wrong |
![]() | Rajat srivastava on 2009-10-24 13:11:13 wrote, many ques answer r wrong |
![]() | b verma on 2010-02-03 13:50:09 wrote, questions are correct..but answers are wrong.. |
![]() | Arti Shinde on 2010-09-15 02:59:05 wrote, Most of the answers are wrong |
![]() | giri babu on 2010-11-26 04:24:18 wrote, guys, many of answers are wrong......... |
![]() | Garima Agrawal on 2011-02-19 11:23:06 wrote, so many answers are wrong...atleast correct them up now.... |
![]() | nikhil verma on 2011-02-19 11: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 13:24:45 wrote, lots of answer will depend |
![]() | raindar tandu on 2011-05-18 00:07:30 wrote, some ans are worng |
![]() | Omprakash Bairy on 2011-06-03 05:13:25 wrote, Most of the answers are wrong |
![]() | Sandip Rano on 2011-08-08 05:53:25 wrote, some answers are wrong... |



