Tuesday, March 23, 2010

Answers to the second sample exam:
m/ch
1) b
2) d
3) c
4) c, because of the clear
5) the person who wroye the question was looking for a
6) c
7) a
8) a
9) d
10) d. the two labels, the two textboxes, and the form.

pt 2

Private Sub Button1_Click() Handles Button1.Click
   Dim name as String
   name = InputBox("what is your name", "get name")
   If name > "carl" Then
      MessageBox.Show("your name comes after carl")
   ElseIf name < "carl" Then
      MessageBox.Show("your name comes before carl")
   Else
      MessageBox.Show("your name is carl!")
   EndIf
End Sub

pt 3 -- functions not on test

No comments:

Post a Comment