A developer has defined the StrVar variable of type String. Which expression should the developer use to return four characters starting with the second character?
Option should be as A because indexing starts like 0,1,2..and so on hence index 1 will represent the second character of the string and need four characters so StrVar.Substring(1,4) is the correct option to go with.
upvoted 4 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
rolles
1 year, 8 months agoAutomationMaster
1 year, 8 months ago