Sams Teach Yourself Visual Basic 6 in 24 Hours

Sams Teach Yourself Visual Basic 6 in 24 Hours

By Greg Perry

Workshop

The quiz questions and exercises are provided for your further understanding. See Appendix B for the answers.

Quiz

  1. What is the difference between a message box and a text box?
  2. Which stays on the user's screen during the majority of a program's execution: a text box or an input box?
  3. Why do the named literals provide for better program maintenance?
  4. What are the two kinds of remark statements?
  5. Whom are remarks for?
  6. What does modal mean?
  7. How many icons can you display with message boxes?
  8. True or false: You can pass multiple arguments and receive multiple return values from functions.
  9. What role do default values play in input boxes?
  10. True or false: The MsgBox() function can return one of seven values.

Exercises

  1. Write three remarks for the top of a program that calculates sales tax. The first remark should hold your name, the second should hold the date that you write the remark, and the third should span at least two lines and should describe the purpose of the program.
  2. Write an input box function that asks users for their ages. Display a default value of 25.

Share ThisShare This

Informit Network