Tuesday, February 24, 2009

Review Questions for Chapter 4

  1. C ~ number> 100 AndAlso number <=1000 is valid for condition
  2. C ~ firstNameTextBox.Text.ToUpper() = "BOB" checks if the text is bob.
  3. B ~ 3 is less than 6 and therefore false
  4. A ~ 10 is less than 12 and therefore true
  5. A ~ True, 7 is equal to 7 and therefore true
  6. C ~ Paul will be displayed
  7. B ~ Jerry
  8. C ~ Paul
  9. D ~ Sue
  10. C ~ Nested selection can exist in either case
  11. D ~ Case Is > 7 ~ Case 3, 5 ~ Case 1 To 4 all work
  12. C ~ Paul
  13. C ~ Paul
  14. D ~ Sue
  15. A ~ Advance.NewLine goes to the next line
  16. D ~ String.IsNullOrEmpty(cityname) checks if it is empty
  17. C ~ MessageBox.OK means the message box had been seen
  18. C ~ randomGenerator.Next(9, 55) generates a number between 10 to 55
  19. C ~ addressLabel.Text = city & ", " & state will print city name, state
  20. D ~ Both A and B Same reasoning as #11

No comments:

Post a Comment