Welcome Guest | Sign in | Register
If statements - Discussion Page For Q.10495 | 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 tests to see if sum is equal to 10 and total is less than 20, and if so, prints the text string "incorrect.", is
A. Statement 1
if( (sum = 10) && (total < 20) )
printf("incorrect.");
B. Statement 2
if( (sum == 10) && (total < 20) )
printf("incorrect.");
C. Statement 3
if( (sum == 10) || (total < 20) )
printf("incorrect.");
D. Cannot be determined

Answer and Explanation

Answer:Statement 2
if( (sum == 10) && (total < 20) )
printf("incorrect.");

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.