GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Placement Papers  >  TCS  >  C

 Print  |  
Question:  Identify the incorrect one
1.if(c=1)
2.if(c!=3)
3.if(a<b)then
4.if(c==1)

A. 1 only
B. 1&3
C. 3 only
D. All of the above




March 03, 2008 13:40:27 #5
 Himanshu Mishra   Member Since: January 2008    Total Comments: 2 

RE: Identify the incorrect one1.if(c=1)2.if(c!=3)3.if(a<b)then4.if(c==1)A. 1 onlyB. 1&3C. 3 onlyD. All of the above
 
 

the answer is  B i.e 1&3.
in 1. dere is a syntax error i.e it should be if(c==1)
and in 3. u can't use then wid if statement.

     

 

Back To Question