Question

Question 44 (1 point) ✓ Saved Suppose the input contains the characters Suzy Saves Seashells. What a the values of word and
0 0
Add a comment Improve this question Transcribed image text
Answer #1

String word =in.next() ;

Here in.next() will search for one complete token and pass it to string word. Here each word is considered as one token.

So word will assigned with string "Suzy"

String input= in.nextLine() ;

in.nextLine () will search till the end of character and pass it to string input.

in.nextLine () is used for accepting the whole complete sentence given as input.

So input = " saves seashells "

So the correct option is (D) .

Last option is not visible, but I'm assuming it what I have mentioned.

If you have any questions comment down and please? upvote thanks

Add a comment
Know the answer?
Add Answer to:
Question 44 (1 point) ✓ Saved Suppose the input contains the characters "Suzy Saves Seashells". What...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Please answer both questions thank you. Assuming that a user enters 8, 15, and 11 as...

    Please answer both questions thank you. Assuming that a user enters 8, 15, and 11 as input values one after another, separated by spaces, what is the output of the following code snippet? int num1 = 0; int num2 = 0; int num3 = 0; Scanner in = new Scanner (System.in); System.out.print("Enter a number: "); numl - in.nextInt(); System.out.print("Enter a number: "); num2 = in.nextInt(); System.out.print("Enter a number: "); num3 = in.nextInt(); if (numl > num2) if (numl > num3)...

  • Question 47 (1 point) What is the output generated by the code segment below, assuming that...

    Question 47 (1 point) What is the output generated by the code segment below, assuming that source is a Scanner object used to read the following text: Suzy sells seashells on the seashore. source.useDelimiter(" "); int count = 0; while (source.hasNext()) { char input = source.next().charAt(0); if (Character.isLetter (input)) count++; { } System.out.println(count); A/

  • Question 28 (1 point) ✓ Saved What does the code fragment print? double x = Math.sqrt...

    Question 28 (1 point) ✓ Saved What does the code fragment print? double x = Math.sqrt (3); double y = 4; if (x + x == y) { System.out.println(x); } else { System.out.println(y); } 4 1

  • What would be the results of the following code? Create array1 ← [33, 88, 11, 44,...

    What would be the results of the following code? Create array1 ← [33, 88, 11, 44, 99, 55] value ← array1[0] FOR each value in array1 IF(array1[i] < value) THEN value ← array1[i] ENDIF ENDFOR Question 7 options: A) Value contains the lowest value in array1. B) Value contains the highest value in array1. C) Value contains the sum of all the values in array1. D) Value contains the average of the values in array1. Question 8 (1 point) What...

  • Question 3 (1 point) Saved Alcohol contains 4 kcal/g True False Question 4 (1 point) The...

    Question 3 (1 point) Saved Alcohol contains 4 kcal/g True False Question 4 (1 point) The Acceptable Macronutrient Distribution Ranges are daily percentage energy intake values for the macronutrients fat, carbohydrate, and protein True False Question 5 (1 point) Nutrient density is the idea that the more nutrients and the fewer kcal a food provides, the lower its nutrient density True False

  • Question 15 (1 point) What does this program print? Please make sure your spacing is exact....

    Question 15 (1 point) What does this program print? Please make sure your spacing is exact. public class Test { System.out.print("39 + 3"); System.out.println(39 + 3); } 1 A/ Question 5 (1 point) Consider a file called input.txt that has the following 4 lines: Trace the program when it is 89 lines 78.5 is average. Isn't it? What would be the value of count after the following code snippet executes? Scanner in = new Scanner (new File("input.txt")); int count 0;...

  • Question 1 (1 point) Saved Which of the following is not an objective of the federal...

    Question 1 (1 point) Saved Which of the following is not an objective of the federal income tax law? Stimulate private investment Redistribution of wealth Encourage business activities Support local charities Question 3 (1 point) Roughly how large ( maximum) can your estate be in 2019 and not be subject to estate tax when you die. Assume single and O gifts during life-time. 11 million 5 million 15 million All estates will owe estate tax There is no estate tax...

  • Question 5 (1 point) Saved Suppose a cell that had a total enzyme concentration of 1,...

    Question 5 (1 point) Saved Suppose a cell that had a total enzyme concentration of 1, suddenly reduced that concentration to 0.5; everything else in the cell was constant. Choose all of the values from the list below that must change as a result of the change in enzyme concentration. 1) Km 2) Vmax 3) substrate concentration 4) reaction velocity

  • Please answer me as soon as possible Quiz Question 1 (1 point) Saved What metric is...

    Please answer me as soon as possible Quiz Question 1 (1 point) Saved What metric is used to measure bandwidth? Question 1 options: a. msec b. bit/sec c. bytes d. number of packets/sec Question 2 (1 point) Saved Ethernet is one of access network technologies. Question 2 options: True False Question 3 (1 point) Saved Consider two hosts, A and B, connected by a single link of rate R bps. Suppose that the two hosts are separated by m meters,...

  • Question 1 (1 point) Saved Suppose an AB3 molecule has the Lewis structure shown. Does this...

    Question 1 (1 point) Saved Suppose an AB3 molecule has the Lewis structure shown. Does this structure follow the octet rule? :B: :B-A-B: Yes, there are 8 electrons around A O No, there are 10 electrons around A Yes there are three bonds and one electron pair around A Yes, there are 4 bonds around A

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT