Which of the following correctly tests the char variable chr to determine whether it is not equal to the character B?
A) if (chr > 'B')
B) if (chr < 'B')
C) if (chr != 'B')
D) if (chr != "B")
Correct Answer:
Verified
Q19: When testing for character values, the switch
Q32: Which of the following will format 12.78
Q34: What will be the values of ans,x,and
Q34: This is a boolean variable that signals
Q35: What would be the value of discountRate
Q36: In an if/else statement,if the boolean expression
Q39: These operators are used to determine whether
Q42: What is the value of ans after
Q44: What is the value of x after
Q47: What does the following code display?
int
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents