Multiple Choice
If s1 and s2 are string objects, s1 == s2 is True when
A) s1 = "lion" and s2 = "lioness".
B) s1 = "dog" and s2 = "DOG".
C) s1 = "cat" and s2 = "cat ".
D) None of these because in each case one or more characters in the strings have different ASCII codes.
E) None of these because string objects cannot be compared with relational operators.
Correct Answer:

Verified
Correct Answer:
Verified
Q3: If the sub-expression on the left side
Q20: Which of the following correctly declares an
Q22: The _ operator takes an operand and
Q23: Relational operators allow you to _ numbers.<br>A)
Q24: What will the following expression evaluate to?<br>!(
Q26: A switch statement branches to a particular
Q27: The _ statement executes one statement, or
Q28: The following statements will not print anything.<br>x
Q29: An expression in a C++ if statement
Q30: Assuming moreData is a Boolean variable, the