Solved

If S1 and S2 Are String Objects, S1 == S2

Question 11

Multiple Choice

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents