Deck 2: Creating Applications With Visual Basic
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/36
Play
Full screen (f)
Deck 2: Creating Applications With Visual Basic
1
Compile errors .
A) result from an attempt to perform an operation that cannot execute
B) are not syntax errors
C) are errors found while an application is running
D) are errors such as misspelled key words or incorrect use of operators
A) result from an attempt to perform an operation that cannot execute
B) are not syntax errors
C) are errors found while an application is running
D) are errors such as misspelled key words or incorrect use of operators
D
2
The project file is saved with this file extension.
A) .sln
B) .vb
C) .vbproj
D) .proj
A) .sln
B) .vb
C) .vbproj
D) .proj
C
3
To lock all of the controls on a form during design time, ____.
A) left-click an empty spot on the form, then click Locked in the properties window
B) right-click an empty spot on the form, then select the Lock Controls option from the pop-up menu
C) click Window on the Menu Bar, then click Lock Controls d right-click the form, then click the lock controls icon on the toolbar
A) left-click an empty spot on the form, then click Locked in the properties window
B) right-click an empty spot on the form, then select the Lock Controls option from the pop-up menu
C) click Window on the Menu Bar, then click Lock Controls d right-click the form, then click the lock controls icon on the toolbar
B
4
In order to delete a control from a form, you should select the control and then .
A) click the Remove Item icon on the menu bar
B) click the Cut icon in the Properties window
C) press the Delete key on the keyboard
D) click Delete from the VIEW menu
A) click the Remove Item icon on the menu bar
B) click the Cut icon in the Properties window
C) press the Delete key on the keyboard
D) click Delete from the VIEW menu
Unlock Deck
Unlock for access to all 36 flashcards in this deck.
Unlock Deck
k this deck
5
A Visual Studio project may be saved in all of the following ways except ___.
A) Click FILE on the Visual Studio menu bar, and then click Save All
B) Press Ctrl+Shift+S on the keyboard
C) Click the Save Project button on the standard toolbar
D) Click the Save All button on the standard toolbar
A) Click FILE on the Visual Studio menu bar, and then click Save All
B) Press Ctrl+Shift+S on the keyboard
C) Click the Save Project button on the standard toolbar
D) Click the Save All button on the standard toolbar
Unlock Deck
Unlock for access to all 36 flashcards in this deck.
Unlock Deck
k this deck
6
The _property can prevent the user from resizing your application's form at runtime.
A) WindowState
B) ShowInTaskBar
C) MinMaxSize
D) FormBorderStyle
A) WindowState
B) ShowInTaskBar
C) MinMaxSize
D) FormBorderStyle
Unlock Deck
Unlock for access to all 36 flashcards in this deck.
Unlock Deck
k this deck
7
When you select a control on a form in the Designer window, __.
A) its color changes to dark blue
B) the tool box will be visible
C) its sizing handles appear
D) the project will automatically be saved
A) its color changes to dark blue
B) the tool box will be visible
C) its sizing handles appear
D) the project will automatically be saved
Unlock Deck
Unlock for access to all 36 flashcards in this deck.
Unlock Deck
k this deck
8
In the statement Me.Close), the keyword Me refers to .
A) the current form
B) the programmer
C) the Close method
D) the Close button
A) the current form
B) the programmer
C) the Close method
D) the Close button
Unlock Deck
Unlock for access to all 36 flashcards in this deck.
Unlock Deck
k this deck
9
Which value of the SizeMode property is used to automatically adjust the size of a PictureBox control to fit the size of the image?
A) Normal
B) Zoom
C) CenterImage
D) AutoSize
A) Normal
B) Zoom
C) CenterImage
D) AutoSize
Unlock Deck
Unlock for access to all 36 flashcards in this deck.
Unlock Deck
k this deck
10
The form's _property can be set to True or False, depending on whether or not you want the minimize button to appear.
A) MinimizeBox
B) ShowMinimizeButton
C) HideButtonMinimize
D) FormBorderStyle
A) MinimizeBox
B) ShowMinimizeButton
C) HideButtonMinimize
D) FormBorderStyle
Unlock Deck
Unlock for access to all 36 flashcards in this deck.
Unlock Deck
k this deck
11
Which of one of the following will stop an application and end its execution?
A) Click the EDIT on the Visual Studio menu bar, and then click Delete
B) Click the Minimize button on the applications window
C) Click DEBUG on the Visual Studio menu bar, and then click Stop Debugging
D) Press F1 on the keyboard
A) Click the EDIT on the Visual Studio menu bar, and then click Delete
B) Click the Minimize button on the applications window
C) Click DEBUG on the Visual Studio menu bar, and then click Stop Debugging
D) Press F1 on the keyboard
Unlock Deck
Unlock for access to all 36 flashcards in this deck.
Unlock Deck
k this deck
12
When Visual Studio displays a new project, a blank form is shown in the _window.
A) Properties
B) ToolBox
C) Project
D) Designer
A) Properties
B) ToolBox
C) Project
D) Designer
Unlock Deck
Unlock for access to all 36 flashcards in this deck.
Unlock Deck
k this deck
13
A label control may be added to a form by double-clicking on the Label control icon in the _window.
A) Properties
B) ToolBox
C) Project
D) Designer
A) Properties
B) ToolBox
C) Project
D) Designer
Unlock Deck
Unlock for access to all 36 flashcards in this deck.
Unlock Deck
k this deck
14
If the Visible property of a control is set to false, it _in the Designer window.
A) is grayed out
B) is no longer displayed
C) continues to be shown
D) becomes inactive
A) is grayed out
B) is no longer displayed
C) continues to be shown
D) becomes inactive
Unlock Deck
Unlock for access to all 36 flashcards in this deck.
Unlock Deck
k this deck
15
You can display the Code window in all of the following ways except __.
A) Click the View Code button in the Solution Explorer window
B) Click PROJECT on the menu bar, and then click Show all files
C) Click VIEW on the menu bar, and then select Code
D) Press the F7 key
A) Click the View Code button in the Solution Explorer window
B) Click PROJECT on the menu bar, and then click Show all files
C) Click VIEW on the menu bar, and then select Code
D) Press the F7 key
Unlock Deck
Unlock for access to all 36 flashcards in this deck.
Unlock Deck
k this deck
16
You can run an application in all of the following ways except ___.
A) Click the Start Debugging button on the toolbar
B) Press the Ctrl-F4 keys
C) Press the F5 key
D) Click DEBUG on the menu bar, and then click Start Debugging
A) Click the Start Debugging button on the toolbar
B) Press the Ctrl-F4 keys
C) Press the F5 key
D) Click DEBUG on the menu bar, and then click Start Debugging
Unlock Deck
Unlock for access to all 36 flashcards in this deck.
Unlock Deck
k this deck
17
The properties of a control are listed in the _window.
A) Options
B) Properties
C) Solution Explorer
D) Project
A) Options
B) Properties
C) Solution Explorer
D) Project
Unlock Deck
Unlock for access to all 36 flashcards in this deck.
Unlock Deck
k this deck
18
The code template for an event handler identifies it as a type of _procedure.
A) Module
B) Function
C) Method
D) Sub
A) Module
B) Function
C) Method
D) Sub
Unlock Deck
Unlock for access to all 36 flashcards in this deck.
Unlock Deck
k this deck
19
If a Label control's AutoSize property equals False and the label is not wide enough for the text assigned to the control, ___.
A) the text will be only partially displayed
B) none of the text will be displayed
C) the extra text is wrapped onto the next line or lines
D) the label will expand to fit the text
A) the text will be only partially displayed
B) none of the text will be displayed
C) the extra text is wrapped onto the next line or lines
D) the label will expand to fit the text
Unlock Deck
Unlock for access to all 36 flashcards in this deck.
Unlock Deck
k this deck
20
A Label control's _property allows a label to change size to fit the text in its text property.
A) Autosize
B) Size
C) TextAlign
D) Grow
A) Autosize
B) Size
C) TextAlign
D) Grow
Unlock Deck
Unlock for access to all 36 flashcards in this deck.
Unlock Deck
k this deck
21
The code that is executed when the user clicks a button is known as .
A) a property
B) a control
C) an event handler
D) a keyword
A) a property
B) a control
C) an event handler
D) a keyword
Unlock Deck
Unlock for access to all 36 flashcards in this deck.
Unlock Deck
k this deck
22
Which property determines the characters that appear in the title bar of Form1?
A) Form1.Name
B) Form1.Text
C) Form1.Caption
D) Form1.Title
A) Form1.Name
B) Form1.Text
C) Form1.Caption
D) Form1.Title
Unlock Deck
Unlock for access to all 36 flashcards in this deck.
Unlock Deck
k this deck
23
Programs should use comments remarks) to .
A) explain what the code does
B) save time when the program must be modified
C) save time when you have to debug the program
D) all of the above
A) explain what the code does
B) save time when the program must be modified
C) save time when you have to debug the program
D) all of the above
Unlock Deck
Unlock for access to all 36 flashcards in this deck.
Unlock Deck
k this deck
24
The value of a control's property may be changed while the application is running by .
A) using an assignment statement
B) using the Properties window
C) using the Toolbox window
D) all of the above
A) using an assignment statement
B) using the Properties window
C) using the Toolbox window
D) all of the above
Unlock Deck
Unlock for access to all 36 flashcards in this deck.
Unlock Deck
k this deck
25
Which of the following is not a valid value for the FormBorderStyle property?
A) Fixed3D
B) Sizable
C) FixedSingle
D) FixedDouble
A) Fixed3D
B) Sizable
C) FixedSingle
D) FixedDouble
Unlock Deck
Unlock for access to all 36 flashcards in this deck.
Unlock Deck
k this deck
26
Assume you have a Button control named btnDisplayList. Which is the default name for an event procedure that will be executed when the user clicks on the control?
A) Click_btnDisplayList
B) btnDisplayList_Click
C) btnDisplayList_ClickEvent
D) btnDisplayList_ClickButton
A) Click_btnDisplayList
B) btnDisplayList_Click
C) btnDisplayList_ClickEvent
D) btnDisplayList_ClickButton
Unlock Deck
Unlock for access to all 36 flashcards in this deck.
Unlock Deck
k this deck
27
The _control uses a Label to display program status information and messages to the user.
A) LinkLabel
B) StatusStrip
C) ErrorProvider
D) TextBox
A) LinkLabel
B) StatusStrip
C) ErrorProvider
D) TextBox
Unlock Deck
Unlock for access to all 36 flashcards in this deck.
Unlock Deck
k this deck
28
IntelliSense is a feature of Visual Studio that __.
A) provides hints about the input data requested from the user
B) provides automatic code completion as you write programming statements
C) allows the user to easily modify properties for a control in design mode
D) is a feature that will help the programmer use proper naming conventions
A) provides hints about the input data requested from the user
B) provides automatic code completion as you write programming statements
C) allows the user to easily modify properties for a control in design mode
D) is a feature that will help the programmer use proper naming conventions
Unlock Deck
Unlock for access to all 36 flashcards in this deck.
Unlock Deck
k this deck
29
Which of the following statements are correct?
A) A Visual Studio project is a container that holds a solution.
B) A Visual Studio project may have multiple solutions.
C) A Visual Studio project must belong to a solution.
D) Both A and B are correct.
A) A Visual Studio project is a container that holds a solution.
B) A Visual Studio project may have multiple solutions.
C) A Visual Studio project must belong to a solution.
D) Both A and B are correct.
Unlock Deck
Unlock for access to all 36 flashcards in this deck.
Unlock Deck
k this deck
30
Which of the following displays a message box with the text "Hello World"?
A) MessageBox.Show"Hello World")
B) MessageBox.Display"Hello World")
C) MessageBox.Text"Hello World")
D) MessageBox.Send"Hello World")
A) MessageBox.Show"Hello World")
B) MessageBox.Display"Hello World")
C) MessageBox.Text"Hello World")
D) MessageBox.Send"Hello World")
Unlock Deck
Unlock for access to all 36 flashcards in this deck.
Unlock Deck
k this deck
31
Choose the correct assignment statement for a Label control named lblTitle that would align the control's text with the middle and center of the control's bounding box?
A) lblTitle.TextAlign = MiddleCenter
B) lblTitle.TextAlign = Middle
C) lblTitle.TextAlign = ContentAlignment.Center
D) lblTitle.TextAlign = ContentAlignment.MiddleCenter
A) lblTitle.TextAlign = MiddleCenter
B) lblTitle.TextAlign = Middle
C) lblTitle.TextAlign = ContentAlignment.Center
D) lblTitle.TextAlign = ContentAlignment.MiddleCenter
Unlock Deck
Unlock for access to all 36 flashcards in this deck.
Unlock Deck
k this deck
32
The color of the text in a Label control is determined by the _property.
A) Color
B) Font
C) ForeColor
D) TextColor
A) Color
B) Font
C) ForeColor
D) TextColor
Unlock Deck
Unlock for access to all 36 flashcards in this deck.
Unlock Deck
k this deck
33
The _property appears in parentheses so it will appear at the top of the alphabetical Property list.
A) Name
B) Text
C) Visible
D) all of the above
A) Name
B) Text
C) Visible
D) all of the above
Unlock Deck
Unlock for access to all 36 flashcards in this deck.
Unlock Deck
k this deck
34
When you have an item selected and press the F1 key, you get __.
A) properties window
B) the solution explorer window
C) context-sensitive help
D) tool-tip for the item
A) properties window
B) the solution explorer window
C) context-sensitive help
D) tool-tip for the item
Unlock Deck
Unlock for access to all 36 flashcards in this deck.
Unlock Deck
k this deck
35
The __property of a label determines if the label can be seen by the user at runtime.
A) Active
B) Visible
C) Invisible
D) Enabled
A) Active
B) Visible
C) Invisible
D) Enabled
Unlock Deck
Unlock for access to all 36 flashcards in this deck.
Unlock Deck
k this deck
36
What will the following section of code do? Private Sub btnExit_ClickByVal sender As System.Object, _
ByVal e as System.EventArgs) Handles btnExit.Click
Me)Close)
End Sub
A) Shut down the computer
B) Log off the current user
C) Close the current form
D) All of the above
ByVal e as System.EventArgs) Handles btnExit.Click
Me)Close)
End Sub
A) Shut down the computer
B) Log off the current user
C) Close the current form
D) All of the above
Unlock Deck
Unlock for access to all 36 flashcards in this deck.
Unlock Deck
k this deck