U2L3 RQs

pdf

School

Rowan College, Burlington County *

*We aren’t endorsed by this school

Course

MISC

Subject

Computer Science

Date

Dec 6, 2023

Type

pdf

Pages

4

Uploaded by MagistrateDiscoveryKangaroo81

Report
9/28/21, 12:07 PM Quiz: Unit 2: Lesson 3 - Review Questions https://courses.projectstem.org/courses/10083/quizzes/220982/take 1/4 Unit 2: Lesson 3 - Review Questions Started: Sep 28 at 12:07pm Quiz Instructions 1 pts Question 1 Using the - symbol between them Using a comma between them Using the + symbol between them None of the items listed. Using the String method merge The correct way to concatenate two Strings is ______. 1 pts Question 2 sauce applesauce Nothing, + does not work on strings apple Use the following code for questions 2-7: String w1; String w2 = "apple"; String w3 = "banana"; What is stored in w1 by the following? w1 = w2 + " sauce";
9/28/21, 12:07 PM Quiz: Unit 2: Lesson 3 - Review Questions https://courses.projectstem.org/courses/10083/quizzes/220982/take 2/4 apple sauce 1 pts Question 3 ba ban na ana an What is stored in w1 by the following? w1 = w3.substring(1,3); 1 pts Question 4 a anana n ana nana What is stored in w1 by the following? w1 = w3.substring(2);
9/28/21, 12:07 PM Quiz: Unit 2: Lesson 3 - Review Questions https://courses.projectstem.org/courses/10083/quizzes/220982/take 3/4 1 pts Question 5 3 4 -3.5 error -4 What is the output? System.out.println(w3.compareTo("fruit")); 1 pts Question 6 2 1 0 -1 error What is the output? System.out.println(w2.compareTo(w3)); 1 pts Question 7 What is stored in w1 by the following?
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
9/28/21, 12:07 PM Quiz: Unit 2: Lesson 3 - Review Questions https://courses.projectstem.org/courses/10083/quizzes/220982/take 4/4 Not saved Apple apple applE error APPLE w1 = w2.toUpperCase(); Submit Quiz