Question: If s 1 and s 2 are string objects, s 1 = = s 2 is true when Question 9 Answer a . None of

If s1 and s2 are string objects, s1== s2 is true when
Question 9Answer
a.
None of these because string objects cannot be compared with relational operators.
b.
None of these because in each case one or more characters in the strings have different ASCII codes.
c.
s1= "dog" and s2= "DOG".
d.
s1= "lion" and s2= "lioness".
e.
s1= "cat" and s2= "cat ".

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!