menu-iconExamlexExamLexServices

Discover

Ask a Question
  1. All Topics
  2. Topic
    Computing
  3. Study Set
    C++ How to Program
  4. Exam
    Exam 21: Class String and String Stream Processing
  5. Question
    If String S1 Is Lexicographically Greater Than String S2, Then
Solved

If String S1 Is Lexicographically Greater Than String S2, Then

Question 3

Question 3

Multiple Choice

If string s1 is lexicographically greater than string s2, then the value returned by s2.compare(0, s2.size() , s1) must be?


A) 0
B) -1
C) A negative number.
D) A positive number.

Correct Answer:

verifed

Verified

Related Questions

Q1: Which of the following cannot be used

Q2: Which of the following statements about C++11's

Q4: The arguments passed to replace do not

Q5: The total number of elements that can

Q6: If string s1 has the value "computer"

Q7: String iterators:<br>A) Must be dereferenced in order

Q8: Which of the following provides bounds checking?<br>A)

Q9: Given the strings defined below, which statement

Q10: Which of the following is an invalid

Q11: What type of value is returned by

Examlex

ExamLex

About UsContact UsPerks CenterHomeschoolingTest Prep

Work With Us

Campus RepresentativeInfluencers

Links

FaqPricingChrome Extension

Download The App

Get App StoreGet Google Play

Policies

Privacy PolicyTerms of ServiceHonor CodeCommunity Guidelines

Scan To Download

qr-code

Copyright © (2025) ExamLex LLC.

Privacy PolicyTerms Of ServiceHonor CodeCommunity Guidelines