If string str1 = "Florida" and String str2 = "Gators" then what is the value of str1 + str2?

A. Florida
B. Florida Gators
C. Gators
D. FloridaGators
E. Florida, Gators

if string str = "supercalifragilisticexpialidocious", then what is the value of the str.substring (10,14);

A. agili
B. agil
C. ragili
D. ragil
E. ragi

If String str = "supercalifragilisticexpealidocious", then what is the value of str.substring(21);"?

A. supercalifragilistice
B. supercalifragilistic
C. expealidocious
D. cexpealidocious
E. xpealidocious

Please someone help me and explain it to me thank you

see this is what i was talking about this is the utmost disrespect i wait for 3 hours how rude

Why do you keep posting these same things? You need to be patient until a tutor comes online who can help with programming.

Stop with the multiple posts, please.

I am a little in a hurry my weekend homework was given yesterday night and I need it by tonight at 11:00 and I posted my post an hour ago so Im a little annoyed on the long wait and other students are posting after me and getting there homework solved and done while I was patiently waiting so i decided to post again

We are all volunteers and help students on Jiskha when we have the time. If no one has answered your question, it means that the one or two regular tutors who may be able to answer your question have not seen it.

How can you be annoyed at a free site?

To answer these questions, we need to understand some basic concepts in Java regarding strings and string manipulation.

Question 1: If string str1 = "Florida" and String str2 = "Gators" then what is the value of str1 + str2?
- In Java, the "+" operator is used to concatenate strings.
- Therefore, str1 + str2 would give us "FloridaGators".
- The correct answer is D. FloridaGators.

Question 2: If string str = "supercalifragilisticexpialidocious", then what is the value of the str.substring(10,14)?
- In Java, the "substring" method is used to extract a portion of a string.
- The first parameter of the substring method specifies the index at which the extraction should start (inclusive), and the second parameter specifies the index at which it should end (exclusive).
- Counting in Java starts from 0, so str.substring(10, 14) would extract characters from index 10 to 13 (i.e., "agil").
- The correct answer is A. agili.

Question 3: If String str = "supercalifragilisticexpealidocious", then what is the value of str.substring(21)?
- In this case, since we only provide one parameter to the substring method, it will extract all characters from the specified index to the end of the string.
- Therefore, str.substring(21) would give us "expealidocious".
- The correct answer is C. expealidocious.

Remember, understanding the concepts of string manipulation in Java will help you solve similar questions in the future.

I'm a bit rusty on my C++ but I believe D,D, and E