Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Assuming that the following variables have been declared: evaluate the following

ID: 3663691 • Letter: A

Question

Assuming that the following variables have been declared:

evaluate the following expression. (e.g., 7.0 rather than 7 for a double, Strings in quotes).

Answer:

------------------------------------------------

Assuming that the following variables have been declared:

evaluate the following expression. (e.g., 7.0 rather than 7 for a double, Strings in quotes).

Answer:

--------------------------------------------------

Assuming that the following variables have been declared:

evaluate the following expression. (e.g., 7.0 rather than 7 for a double, Strings in quotes).

Answer:

Explanation / Answer

Ans: 6

2. str2.toUpperCase() (Convert the string str2 to uppercase letters)

Ans: ARCTURAN MEGADONKEY

3. str1.indexOf("D") ( index of function returns the position of the first occurrence of a specified value in a string)

Ans: 4