Вы находитесь на странице: 1из 7

Tutorial 2

1. ------------------ is the name of the blank form that Visual Studio initially creates in a
new project.
a. Form1
b. Main
c. New1
d. Blank
2. The --------------- property holds the text that is displayed on the face of the button.
a. Name
b. Text
c. Tag
d. Face
3. A file that contains program code is called a(n)-------------------------.
a. destination code file
b. executable file
c. machine language file
d. source code file
4. A namespace is container that holds -------------------------.
a. methods
b. names
c. spaces
d. classes

5. A(n) -------------------- is a method that executes when a specific event takes place
while an application is running
a. action process
b. event handler
c. runtime procedure
d. event method
6. The statement MessageBox.Show(Hello); is an example of a(n) ----------------------.
a. method call
b. namespace
c. Click event
d. event handler
7. In programming we use the term string to mean ------------------------.
a. many lines of code
b. parallel memory locations
c. string of characters
d. virtually anything
8. A(n) -------------------------- marks the end of a programming statement in C#
a. semicolon
b. period
c. hyphen
d. underscore
9. The time during which you build the GUI and write the applications code is
referred to as ---------------.
a. run time
b. design time
c. code time
d. planning

10. The time during which an application is executing is referred to as


---------------------------.
a. go time
b. design time
c. execution
d. run time
11. When you want to display text on a form you use a --------------------- control.
a. Button
b. Picture Box
c. Label
d. Text Box
12. The -------------------- property allows you to set the font, font style, and size of the
controls text.
a. Style
b. AutoSize
c. Text
d. Font
13. A(n) ------------------ property can be set to one of two possible values: True of
False.
a. Boolean
b. Logical
c. Binary
d. Dual
14. Label controls have a(n) ---------------- property that controls the way they can be
resized.
a. Stretch
b. AutoSize
c. Dimension

d. Fixed
15. The ------------------ property can be used to change the texts alignment in the
Label.
a. TextPosition
b. AutoAlign
c. TextCenter
d. TextAlign
16. In code, you use a(n) --------------------- to store a value in a controls property.
a. Click event
b. method call
c. assignment statement
d. Boolean Value
17. The equal sign (=) is known as the ------------------------------.
a. equal symbol
b. assignment operator
c. equality operator
d. properly position
18. The standard notation for referring to a controls property in code is
-------------------------.
a. ControlName.PropertyName
b. ControlName=PropertyName
c. PropertyName.ControlName
d. PropertyName = ControlName
19. -------------------------- is a feature of Visual Studio that provides automatic code
completion as you write programming statements.
a. AutoCode
b. AutoComplete

c. IntelliSense
d. IntelliCode
20. You can use a(n) -------------------- control to display a graphic image on a form.
a. Graphics
b. PictureBox
c. Drawing
d. ImageBox
21. Once you have created a PictureBox control, you use its ------------------- property
to specify the image that it will display.
a. Image
b. Source
c. DrawSource
d. ImageList
22. The PictureBox controls ------------------------ property specifies how the controls
image is to be displayed.
a. RenderMode
b. DrawMode
c. SizeMode
d. ImageMode
23. -------------------- is the images width to height ratio.
a. Aspect Ratio
b. Size Ratio
c. Projection Ratio
d. Area Ratio

24. Most controls have a --------------- property that determines whether the control is
visible on the form at run time.
a. Render
b. Viewable
c. Visible
d. Draw
25. A --------------------- appears on one line in a program
a. inline statement
b. line comment
c. forward comment
d. block comment
26. A ------------------- can occupy multiple consecutive lines in a program.
a. block comment
b. square comment
c. multiline comment
d. machine comment
27. Programmers commonly use blank lines and indentations in their code to create
a sense of ------------.
a. logic
b. visual organization
c. documentation
d. program flow
28. To close an applications form in code, you use the statement
--------------------------.
a. Close();
b. Close.This();

c. Close();
d. this.Close();

Вам также может понравиться