The String class allows you to ______ strings.

a) search
b) retrieve characters from
c) replace characters in
d) All of the above.


Answer: D

Computer Science & Information Technology

You might also like to view...

Which of the following statements is true?

a. When you drive a car, pressing its gas pedal sends a message to the car to perform a task—that is, to go faster. b. You send messages to an object; each message is implemented as a method call that tells a method of the object to perform its task. c. A program might call a bank-account object’s deposit method to increase the account’s balance. d. All of the above statements are true.

Computer Science & Information Technology

What would be the value of bonus after the following statements are executed?

``` int bonus, sales = 85000; char dept = 'S'; if (sales > 100000) if (dept == 'R') bonus = 2000; else bonus = 1500; else if (sales > 75000) if (dept == 'R') bonus = 1250; else bonus = 1000; else bonus = 0; ``` a. 2000 b. 1500 c. 1250 d. 1000

Computer Science & Information Technology

You cannot change the Required field property after data has been entered

Indicate whether the statement is true or false

Computer Science & Information Technology

The pseudocode for the following problem is ____.Suppose all students in grade 12 at a high school are to be selected for a field trip, but the boys are leaving on the 8:30 a.m. bus and the girls are leaving at 9:00 a.m.

A. If gradeLevel == 12 Then    Display "Enter M for male, or F for female: "    If gender == "M" Then       Display "Your bus leaves at 8:30 a.m."    Else If       Display "Your bus leaves at 9:00 a.m."    End If End If B. If gradeLevel == 12;    Display "Enter M for male, or F for female: "    If gender == "M" Then;       Display "Your bus leaves at 8:30 a.m."    Else;       Display "Your bus leaves at 9:00 a.m."    End If; End If C. If gradeLevel == 12 Then    Display "Enter M for male, or F for female: "    Input gender    If gender == "M" Then       Display "Your bus leaves at 8:30 a.m."    Else       Display "Your bus leaves at 9:00 a.m."    End If End If D. If gradeLevel >= 12 Then    Display "Enter M for male, or F for female: "    If gender == "M"       Display "Your bus leaves at 8:30 a.m."    Else       Display "Your bus leaves at 9:00 a.m."    End End If

Computer Science & Information Technology