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
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
A
2
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
D
3
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
C
4
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
5
Syntax 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 keywords 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 keywords or incorrect use of operators
Unlock Deck
Unlock for access to all 36 flashcards in this deck.
Unlock Deck
k this deck
6
Which FormBorderStyle property setting causes the form to not be resizable, and it displays a thick border?
A) FixedDialog
B) Fixed3D
C) NonSizeable
D) ToolWindow
A) FixedDialog
B) Fixed3D
C) NonSizeable
D) ToolWindow
Unlock Deck
Unlock for access to all 36 flashcards in this deck.
Unlock Deck
k this deck
7
You can run an application in all of the following ways except which one?
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
8
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
9
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
10
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
11
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
12
When you add a StatusStrip control to a form, which additional control must be added to the StatusStrip if you want to display messages at runtime?
A) TextBox
B) Label
C) PictureBox
D) ToolStripStatusLabel
A) TextBox
B) Label
C) PictureBox
D) ToolStripStatusLabel
Unlock Deck
Unlock for access to all 36 flashcards in this deck.
Unlock Deck
k this deck
13
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
14
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
15
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
Unlock Deck
Unlock for access to all 36 flashcards in this deck.
Unlock Deck
k this deck
16
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
17
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
18
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
19
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
20
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
21
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
22
How do you make a Label control's text display bold characters?
A) Select Font from the View menu, and then select the label.
B) Select the Label in the designer, and click the ellipses button next to Font in the Solution Explorer window.
C) Select the Label in the designer, and click the ellipses button next to Font in the Properties window.
D) Select the Label control and set the BoldText property to True in the Properties window.
A) Select Font from the View menu, and then select the label.
B) Select the Label in the designer, and click the ellipses button next to Font in the Solution Explorer window.
C) Select the Label in the designer, and click the ellipses button next to Font in the Properties window.
D) Select the Label control and set the BoldText property to True in the Properties window.
Unlock Deck
Unlock for access to all 36 flashcards in this deck.
Unlock Deck
k this deck
23
What will the following section of code do when the user clicks the btnExit button? Private Sub btnExit_Click(ByVal 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
24
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
25
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
26
Code that executes when the user clicks a button at runtime 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
27
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
28
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
29
When you select an item in Visual Studio 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
30
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
31
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
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
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
34
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
35
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
36
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