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.


D) None of these because in each case one or more characters in the strings have different ASCII codes.

Computer Science & Information Technology

You might also like to view...

Why is string matching important?

a. String matching is used to find patterns in text b. String matching is used in data encryption c. String matching is used for data compression d. String matching is used for efficient hash tables

Computer Science & Information Technology

In the accompanying figure, Item 2 points to the ____.

A. Compatibility Report tab B. Toolbox tab C. Compatibility Report button D. Toolbox button

Computer Science & Information Technology

Answer the following statement(s) true (T) or false (F)

The term malware is derived from a combination of the words malicious and software.

Computer Science & Information Technology

Imagine that you are faced with an ethical dilemma at work, and you must determine the "right," or ethical, course of action. List the eight steps you will go through to make this decision, including some of the questions you'll ask yourself at each step in the process.

What will be an ideal response?

Computer Science & Information Technology