Welcome Guest | Sign in | Register
If statements - Discussion Page For Q.10499 | C Programming Questions and Answers | C Programming Free Online-Tests | LucentBlackBoard | LucentBlackBoard.com

Home > Java Programming > If statements > Questions and Answers

Q: The statement that compares the value of an integer called sum against the value 65, and if it is less, prints the text string "Sorry, try again", is
A. Statement 1
if( sum < "65" )
printf("Sorry, try again" );
B. Statement 2
if( sum <= 65 )
printf("Sorry, try again" );
C. Statement 3
if( 65 == sum )
printf("Sorry, try again" );
D. Statement 4
if( sum < 65 )
printf("Sorry, try again" );

Answer and Explanation

Answer:Statement 4
if( sum < 65 )
printf("Sorry, try again" );

Explanation:
There is no explanation...

Comment on this Question

Name:

Loading...




Partner Sites
LucentBlackBoard.com                  SoftLucent.com                  LucentJobs.com
All rights reserved © 2012-2015 SoftLucent.