1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
BlackZzzverrR [31]
3 years ago
6

Which expression correctly determines that String s1 comes before String s2 in lexicographical order

Computers and Technology
1 answer:
Assoli18 [71]3 years ago
8 0

Options :

A.) s1 < s2

B.) s1 <= s2

C.) s1.compareTo(s2) == −1

D.) s2.compareTo(s1) < 0

E.) s1.compareTo(s2) < 0

Answer: E.) s1.compareTo(s2) < 0

Explanation: Lexicographical ordering simply means the arrangement of strings based on the how the alphabets or letters of the strings appear. It could also be explained as the dictionary ordering principle of words based on the arrangement of the alphabets. In making lexicographical comparison between strings, the compareTo () method may be employed using the format below.

If first string = s1 ; second string = s2

To compare s1 with s2, the format is ;

s1.compareTo(s2) ;

If s1 comes first, that is, before s2, the method returns a negative value, that is a value less than 0 '< 0', which is the case in the question above.

If s2 comes first, that is, before s1, the method returns a positive value, that is a value greater than 0 '> 0'.

If both are s1 and s2 are the same, the output will be 0.

You might be interested in
Sino ang pinaka matalino sa math sa buong mundo​
Svetllana [295]

Answer:

lahat ng tao ay matalino kasama ka na dun kaya lang di natin ito inilalabas dahil natatamad tayo

6 0
3 years ago
Read 2 more answers
5.2
Ray Of Light [21]

Answer:

In order to reduce the risk of accidents on the roads.

Explanation:

The special equipment is used when  testing eyesight for a driver's license in order to reduce the risk of accidents on the roads. Good eyesight is very important for good and safe driving so to find out the eyesight of the driver, the license officer used special equipment in order to check driver's eyes. If the eyesight is good, the officer provide license to the person otherwise not so that no accidents happen on the road.

8 0
3 years ago
Which instrument is NOT an example of a chordophone?
Colt1911 [192]

Answer:

b. xylophone

Explanation:

7 0
3 years ago
Tools such as microsoft's word, excel, and powerpoint are examples of ________ software. question content area bottom part 1 a.
Leona [35]

Tools such as microsoft's word, excel, and PowerPoint are examples of Application software.

<h3>What is Application Software?</h3>

Application software exists as an end-user program typically separated into two classes: application software and systems software. Systems software delivers an operating system and utilities that allow applications software such as database programs, spreadsheets, web browsers, and more to run.

The most common examples of application software stand the computer programs that we utilized in our everyday life. This application software includes Microsoft products such as Office, PowerPoint, Word, Excel, Outlook, etc. Music Application Software like Pandora and Spotify.

Types of Application Software

  • Web browsers.
  • Presentation software.
  • Spreadsheet software.
  • Graphic software.
  • Word processors.
  • Database software.
  • Multimedia software.
  • Education software.

Hence, Option e Application Software is correct.

To learn more about Application Software refer to:

brainly.com/question/25704037

#SPJ4

3 0
2 years ago
How is a LCD screen and view finder similar?
dem82 [27]

Answer:

LCD screens have advantages, but so do optical viewfinders. ... Unlike the optical viewfinder, the LCD screen displays the entire frame that the sensors capture. Optical viewfinders, even on a professional level DSLR, only show 90-95% of the image. You lose a small percentage on the edges of the image.

Explanation:

6 0
3 years ago
Other questions:
  • What is the primary purpose for a screen saver in windows?
    8·1 answer
  • Show what this program prints. Be exact and complete. Can you explain the behavior of each print statement? 1 2 3 4 5 6 7 public
    12·1 answer
  • 2. Statement: "I don't agree with you." Nonverbal gesture: Type of gesture:
    6·1 answer
  • Which of the following is NOT a function of the Web Accessibility Initiative​ (WAI)? A. Offering links to a variety of software
    10·1 answer
  • Write a program to calculate and return total surface area of a box using FUNCTION _END FUNCTION.​
    15·1 answer
  • Suppose testcircle1 and circle1 in listing 9.1 are in two separate files named testcircle1.java and circle1.java, respectively.
    14·1 answer
  • ____ is a technique for confirming that q received packet or frame is likely to match what was sent
    15·1 answer
  • WHY DO YOU DElete EVERY QUESTIONS THAT IS ASKED! Im a freaking guy, yes and i wont followers for my channel so leave me alone!
    7·2 answers
  • Besides your computer, where else can you find and use an operating system?
    11·1 answer
  • Common names for computer-based information systems are transaction processing, management information, ________, and executive
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!