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
Q18: What will be the values of ans,
Q19: What will be the value of bonus
Q20: If you prematurely terminate an if statement
Q21: Enclosing a group of statements inside a
Q23: What will be the value of pay
Q25: What will be the values of ans,
Q26: What will be printed when the following
Q27: _ works like this: If the expression
Q46: Which of the following expressions will determine
Q54: Which of the following will format 12.78
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