Solved

Assuming the Following Variable Declaration

Question 9

Multiple Choice

Assuming the following variable declaration,
Declare String str = "ABC"
which of the following pseudocode statements displays the last character in the string?


A) Display str[0]
B) Display str[3]
C) Display str[length(str) ]
D) Display str[length(str) - 1]
E) None of the above.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions