Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Students also viewed these Databases questions