CIS 230 - Visual Basic
Ch. 7 Worksheet #2 Answers
Determine the value of the following expressions where:
strName = "Johnny Appleseed"
strTeam = "Yankees"
strPlace = "Idaho"
strState = "New York"
strAmount = "123.45"
- Left(strTeam, 3) =
check answer
- Right(strAmount, 4) = check answer
- Mid(strPlace, 2, 3) =
check answer
- Mid(strName, 11, 1) = check answer
- Len(strTeam) =
check answer
- Right(Left(strTeam,6), 2) = check answer
- Mid(Mid(strState, 3), 2, 1) = " "
- Left(strName, Len("hello")) = "Johnn"
- Left(strState, 3) & Right(strState, 4) = "NewYork"
- Len(strPlace) + Val(Mid(strAmount, 2, 2)) = 28