If s1 and s2 are string objects, s1 == s2 is true when
A) s1 = "cat" and s2 = "cat ".
B) s1 = "lion" and s2 = "lioness".
C) s1 = "dog" and s2 = "DOG".
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
Q6: When an if statement is placed within
Q7: The expression x < y is called
Q8: A(n)is a variable, usually a bool, that
Q9: In C++ when a relational expression is
Q10: The statement acts like a chain of
Q12: If a switch statement has no statements,
Q13: The statement executes one block of statements
Q14: What will the following expression evaluate to?
Q15: What will the following statement do if
Q16: The statement causes other program statements to
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