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
Go To First  |  Previous Question  |  Next Question 
 C  |  Question 70 of 87    Print  
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


  
Total Answers and Comments: 6 Last Update: June 13, 2008   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
February 23, 2006 09:58:24   #1  
Rohan Member Since: November 2005   Contribution: 11    

RE: Identify the incorrect one1.if(c=1)2.if(...

ans is ( C )

  then not allowed


 
Is this answer useful? Yes | No
October 17, 2006 06:06:47   #2  
Sreehari        

RE: Identify the incorrect one1.if(c=1)2.if(...

Hi its answer is  a 1 only

because the condition to check must use == 


 
Is this answer useful? Yes | No
March 18, 2007 07:33:30   #3  
satyajit das Member Since: March 2007   Contribution: 1    

RE: Identify the incorrect one1.if(c=1)2.if(...

1. will always check the condition as true as c=1 is a true condition .

3.is not a syntax of if statement in C


 
Is this answer useful? Yes | No
March 20, 2008 13:36:37   #4  
Himanshu Mishra Member Since: January 2008   Contribution: 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 A & B.
in A dere is a syntax error i.e it should be if(c==1)
and in b u can't use then wid if statement.


 
Is this answer useful? Yes | No
March 20, 2008 13:40:27   #5  
Himanshu Mishra Member Since: January 2008   Contribution: 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.


 
Is this answer useful? Yes | No
June 13, 2008 11:38:04   #6  
chandradeepika Member Since: May 2008   Contribution: 36    

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
ans:B)1&3
Becoz intialization uses == & then is not included in the syntax of if statement.

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape