Computer Programming 3 Midterm Examinations Name: - Score: - Course, Yr & Section
Computer Programming 3 Midterm Examinations Name: - Score: - Course, Yr & Section
Computer Programming 3 Midterm Examinations Name: - Score: - Course, Yr & Section
MIDTERM EXAMINATIONS
Name: ____________________________________________________ Score: _______
Course, Yr & Section: ________________________________________
I. Match the descriptions in Column A with the terms in Column B. Letters only.
A B
______1. Occurs when the Check property is changed. A. Button
______2. Enables the user to select a date and time, and to B. CheckBox
display that date and time in a specified format. C. CheckedChanged
______3. Displays a list from which the user can select items. D. Click
______4. Displays an image. E. ComboBox
______5. Indicates if the text in the edit control should appear as F. DateTimePicker
the default password character. G. FormClosed
______6. Raises an event when the user clicks. H. KeyPress
______7. Occurs when the component is clicked I. KeyUp
______8. Provides run-time information or descriptive text for a J. Label
control. K. ListBox
______9. Occurs whenever the user closes the form. L. Name
______10. The text associated with the control. M. PictureBox
______11. Event raised when the value of the Text property is N. ProgressBar
changed on Control. O. RadioButton
______12. Displays an editable text box with a drop-down list of P. SelectIndexChanged
permitted values. Q. Text
______13. Enables the user to select or clear the associated option. R. TextChanged
______14. Occurs when a key is released. S. UseSystemPasswordChar
______15. Occurs when the value of the SelectedIndex property
changes.
______16. Occurs when the control has focus and the user presses
and releases a key.
______17. Displays a bar that fills to indicate to the user the
progress of an operation.
______18. Enables the user to select a single oprion from a group
of choices.
______19. Indicates the name used in code to identify the object.
1
III. Write the letter of the correct answer on the space provided for.
______ 1. A GUI:
a.) uses buttons, menus, and icons.
b.) should be easy for a user to manipulate.
c.) stands for Graphic Use Interaction.
d.) Both a and b.
e.) All of the above.
______ 5. Which is true about the name and text property of a control?
a.) They are the same when the control is first created.
b.) The text property changes to match any changes in the name property.
c.) The name property changes to match any changes in the text property.
d.) They are never the same unless the programmer makes it that way.
e.) They are not allowed to be the same and an error will occur if they are.
______ 6. For which task does the IDE provide multiple ways to accomplish the task?
a.) Putting a control on the form
b.) Running the program
c.) Activating the property window for a control
d.) Both a and b.
e.) All of the above.
2
d.) TextBox e.) Timer
______15. Which method of a ListBox will remove just one item at a time?
a.) Items.RemoveAt c.) Items.ClearAt e.) Items.Clear
b.) Item.RemoveAt d.) Item.ClearAt
______17. Which two controls seemly combined to form the ComboBox control?
a.) ListBox and TextBox c.) ListBox and MsgBox e.) Label and InputBox
b.) ListBox and InputBox d.) Label and TextBox
______18. How many times is the test expression of a Select Case or Switch Case evaluated?
a.) 0
b.) 1
c.) 2
d.) Once for each Case.
e.) It depends on the value of the test expression.
______ 20. In the For statement the default value for the Step is:
a.) -1
b.) 0
c.) 1
d.) 2
e.) There is no default for the step value.