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
Q22: Assuming moreData is a Boolean variable, the
Q23: A flag is a variable, usually of
Q24: The following C++ test checks if the
Q25: What will the following statement do if
Q26: The default section of a switch statement
Q28: When a program lets the user know
Q29: The scope of a variable is the
Q30: The _ statement acts like a chain
Q31: The expression x < y is called
Q32: Relational operators connect two or more relational
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