Você está na página 1de 3

COMPUTER PROGRAMMING 3

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.

II. True of False.


______1. Visual Studio .NET is Microsoft's integrated development environment (IDE) for creating
running, and debugging programs written in a variety of .NET programming languages.
______2. Visual Studio .NET doesn't offer editing tools for manipulating any types of files.
______3. The programmer can access all menu commands from the toolbar.
______4. By clicking on the pluses and minuses at the left of the project and solution names in the
Solution Explorer, you can add or remove items.
______5. While in run mode, programmers have access to all the environment windows.
______6. Visual programming allows us to create controls and set properties using windows, rather
than manually entering lines of code.
______7. The Properties window is used to set the properties for the objects on your form.
______8. The Visual Studio IDE will automatically create a new folder for each new project.
______9. After you have added a button to a form you can change the words that are displayed inside
the button by changing the Text property.
______10. In order to properly save changes that have been made to a Visual Basic project you should
choose Save All from the File menu.

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.

______ 2. Visual Studio .NET provides which feature:


a.) debugging.
b.) application deployment.
c.) syntax checking.
d.) Both a and b.
e.) All of the above.

______ 3. What does IDE stand for?


a.) Integrated Development Environment
b.) Integrated Design Environment
c.) Interior Development Environment
d.) Interior Design Environment
e.) None of the above.

______ 4. Which is not a main component of the Visual Studio IDE?


a.) Solution Explorer c.) Start Menu e.) Properties Window
b.) Tool Box d.) Designer Window

______ 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.

______7. An object like button, text, etc are composed of:


a.) properties. c.) events. e.) All of the above.
b.) methods. d.) Both a and b.

______ 8. Which property determines whether a control is displayed to the user?


a.) Hide c.) Visible e.) Cursor
b.) Show d.) Enabled

______ 9. The Button control can be activated:


a.) programmatically through the click event.
b.) by clicking the button with the mouse.
c.) with the forms DefaultButton property.
d.) Both a and b.
e.) All of the above.

______ 10. The CancelButton property belongs to which object?


a.) Button b.) Form c.) Label

2
d.) TextBox e.) Timer

______ 11. Which is not a common control event?


a.) Click c.) DoubleClick e.) MouseDown
b.) SingleClick d.) MouseMove

______ 12. The Tick event is found only in which object?


a.) Form c.) TextBox e.) Timer
b.) Button d.) Label

______ 13. The name of a constant variable:


a.) must both begin with a letter and be all upper case.
b.) does not have to begin with a letter but must be all upper case.
c.) must begin with a letter but can be upper or lower case.
d.) does not have to begin with a letter and be either upper or lower case.
e.) None of the above.

______ 14. Which TextBox property should always be changed first?


a.) AcceptsReturn c.) Font e.) Text
b.) BorderStyle d.) Name

______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

______16. The Items property of a ComboBox:


a.) is a collection of items.
b.) is the same as the Items property of a ListBox.
c.) contains methods and properties.
d.) Both a and b.
e.) All of the above.

______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.

______ 19. Which is true of a DoLoop?


a.) The While condition goes after the Do keyword.
b.) The Until condition goes after the Do keyword.
c.) The While condition goes after the Loop keyword.
d.) The Until condition goes after the Loop keyword.
e.) All of the above.

______ 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.

Você também pode gostar