| Wyo Visual Basic Ch. 5 Worksheet #1 |
Name - |
Answer the following on lined paper numbering #1-20 down the
left side of the paper
and #21-33 in a column down the center. Blank spaces are represented on this
worksheet as underscore characters ( _ ).
Simplify the following to True or False. Write out the word "True" or "False".
1. ("A" < "a")
2. ("Apple" < "A")
3. ("Apple" < "zeus")
4. ("Zeus" < "apple")
5. ("Zeus" < UCase("apple"))
6. ("_Zeus" < UCase("apple"))
7. ("apple" < "apples")
What value is returned by the each of the following? Write 1, 0, or -1 as your answer for each problem.
8. StrComp("Apple", "Zeus")
9. StrComp("APPLE", "apple")
10. StrComp("APPLE", "apple", 0)
11. StrComp("APPLE", "apple", 1)
12. StrComp("_Zeus", "AAA")
13. StrComp(UCase("apple"), "apple")
14. StrComp("apple", "APPLE", 1)
15. StrComp(UCase("apple"), "APPLE", 1)
Simplify the following to True or False. Write out the word "True" or "False".
16. (UCase("Bob") = "BOB")
17. (UCase("Bob") = "_BOB")
18. (UCase("Bob") = "Bob")
19. (UCase("bob") = "b" & UCase("ob"))
20. (LCase("Bob") = "b" & LCase("OB"))
21. (Trim("Bob") = Trim("_Bo") & "b")
What string literal is returned from the following. Make sure that you surround your final answer with double quotes. Indicate any blank spaces with underscore characters in your answers. Represent the null string as a set of double quotes.
22. Right("Wyomissing", 3)
23. Left("Wyomissing", 4)
24. Right("John_Doe", 5)
25. Right(UCase("Wyomissing"), 4)
26. Mid("Wyomissing", 3, 2)
27. Mid("Wyomissing", 3, 1)
28. Mid("Wyomissing", 3, 0)
29. Right(Left("Wyomissing", 4), 2)
30. Mid(Mid("Wyomissing", 3, 4), 2, 1)
31. Mid("Wyomissing", 4)
32. Left("Wyomissing", 10)
33. Left("Wyomissing", 15)