Deck 1: An Introduction to Visual Basic 2012

Full screen (f)
exit full mode
Question
When you click the Auto Hide button on a window,the window is minimized and appears as a tab on the edge of the IDE.
Use Space or
up arrow
down arrow
to flip the card.
Question
The Windows ____ window allows you to create the graphical user interface for your application.

A) Property
B) Solution Designer
C) Designer
D) Form Designer
Question
The Project Designer window allows you to specify which form will display when the application starts.
Question
Each object has a set of attributes,called ____,that determine the object's appearance and behavior.

A) codes
B) events
C) global settings
D) properties
Question
If a solution is already open in the IDE,you are given the option to close the current solution before another solution is opened.
Question
A source file contains a list of projects in a solution.
Question
Actions performed by the user such as clicking,double-clicking,and scrolling are known as events.
Question
The Properties window lists the names of the files included in the application you are creating.
Question
A ____ is the general shape of the characters in the text.

A) property
B) splash
C) format
D) font
Question
A user ____ is what the user sees and interacts with while an application is running.

A) service
B) profile
C) splash
D) interface
Question
When an object is instantiated (created),each property must be assigned a value by the programmer.
Question
The Label tool is an appropriate control to use when you do not want the user to modify data.
Question
The Solution Explorer window ____.

A) displays a list of the projects contained in the current solution
B) displays data connections and servers
C) displays items that you can use when creating a project
D) displays the classes,methods,and properties included in a solution
Question
A class definition is a block of code that specifies or defines an object's appearance and behavior.
Question
The position of the form on the screen when an application first starts is controlled by setting the ____ property.

A) Position
B) Size
C) Location
D) StartPosition
Question
A(n)____ is a container that stores the projects and files for an entire application.

A) window
B) solution
C) interface
D) package
Question
To size a form using the keyboard,you can select the form and press and hold the ____ key(s),and then press one of the arrow keys on the keyboard.

A) Shift
B) Ctrl
C) Alt
D) Ctrl+Shift
Question
When you click the ellipsis (... )button in the Settings box of the Font property,____.

A) a list of font styles appears
B) a color palette appears
C) a dialog box opens
D) the attribute is removed
Question
The title bar on a form cannot be removed from splash screen applications.
Question
All objects in an object-oriented program are instantiated (created)from a ____.

A) project
B) form
C) class
D) property
Question
To align two or more selected controls along their left,right,top,or bottom borders,you would use the ____ menu.

A) Edit
B) Format
C) Align
D) View
Question
The Toolbox window ____.

A) displays the names of projects and files included in a solution
B) displays data connections and servers
C) displays the tools you use when creating your application's interface
D) displays the classes,methods,and properties included in a solution
Question
A Visual Basic 2012 solution file will have a(n)____ file extension.

A) .net
B) .app
C) .frm
D) .sln
Question
System.Windows.Forms.Button indicates that the control is an instance of the ____ class.

A) System
B) Windows
C) Forms
D) Button
Question
You enter the procedure's code in the ____ window.

A) Code Editor
B) Server
C) Solution
D) Designer
Question
When a timer control is added to a form,it appears ____.

A) at the location you placed the mouse pointer on the form
B) on the Title bar
C) in the component tray
D) in the lower-right corner of the form
Question
The location of a control on the screen can be modified by changing the X and Y properties measured in pixels.The Y value is measured from the ____ border.

A) left
B) right
C) top
D) bottom
Question
Which of the following is an example of an appropriate name for a control?

A) BtnMessage
B) btnExit
C) labelmessage
D) housepicturebox
Question
A(n)____ is a predefined procedure that you can call (or invoke)when needed.

A) method
B) object
C) class
D) event
Question
A(n)____ is a block of code that performs a specific task.

A) event
B) form
C) class
D) sub procedure
Question
The file within a Visual Basic application that can be run outside of the IDE has a(n)____ file extension.

A) .sln
B) .vb
C) .exe
D) .src
Question
The set of Visual Basic instructions that tells an object how to behave after an action by the user (such as clicking a button)is referred to as a(n)____.

A) sub-program
B) event procedure
C) object function
D) subroutine
Question
When an application is started,Visual Basic 2012 will automatically create a file that has the project name and a(n)____ file extension.

A) .dll
B) .exe
C) .sln
D) .suo
Question
To start an application using the menu bar,you click ____ and then click Start Debugging.

A) DEBUG
B) PROJECT
C) VIEW
D) BUILD
Question
When you want the application to end when the user clicks the Exit button,you write the following code: ____.

A) Me.Stop()
B) Me.Close()
C) Me.Terminate()
D) Me.End()
Question
Which of the following is a true statement?

A) The Me.Close()instruction should be coded in a timer control's Tick event procedure if an Exit button is not provided.
B) By default,the size of a form cannot be changed by a user while an application is running.
C) The title bar cannot be removed from an application.
D) The Minimize button can be removed from the title bar without removing the Maximize button from the title bar.
Question
To verify that a solution has been closed,you can look in the ____.

A) Class View
B) Server Explorer
C) Start Page
D) Solution Explorer
Question
A label control's ____ property determines the value that appears inside the control.

A) Caption
B) Label
C) Text
D) Values
Question
The location of a control on the screen can be modified by changing the X and Y properties measured in pixels.The X value is measured from the ____ border.

A) left
B) right
C) top
D) bottom
Question
The ____ function key will start a Visual Basic 2012 application in the IDE.

A) F2
B) F3
C) F4
D) F5
Question
An example of a valid value for the form's Name property is ____.

A) form Ridgeline
B) formridgeline
C) Ridgeline
D) frmRidgeline
Question
What is the Toolbox window? Describe how it is used in Visual Studio 2012.
Question
If a timer control is used to display the office image and company logo for five seconds,you will need to set the timer's Interval property to ____.

A) 5
B) 50
C) 500
D) 5000
Question
What is a button control? Provide two examples of common button controls found in Windows applications.
Question
Define a source file and describe how it relates to a form file.Provide an example of a source file name,including the appropriate file extension.
Question
What is a startup form? Describe the steps used to define it for an application.
Question
Describe the use of the Format menu and controls on the form.
Question
To create the Windows application for Ridgeline,you will first need to ____.

A) auto-hide any windows you do not need to use
B) set the StartPosition for the form
C) create a New Project and determine the directory for the solution
D) code the Exit button
Question
What does it mean when an asterisk (*)sometimes appears on the Windows Form Designer window? When it appears,what should you do to remove it?
Question
Explain the difference between a solution and a project.
Question
How is a timer control used in an application? Provide one example.
Question
The most effective way to accomplish this task is to create a(n)____.

A) PictureBox control
B) splash screen
C) Label control
D) Exit button
Question
If a control is deleted from a form,is the related code for the control also deleted? Explain.
Question
Why should you print a copy of your application's code and user interface?
Question
What is the Solution Explorer window? Describe how it is used in Visual Studio 2012.
Question
What is the Properties window? Describe how it is used in Visual Studio 2012.
Question
Anyone using the application does not need to change the size of the form,so you must set the FormBorderStyle property to ____.

A) FixedSingle
B) Sizable
C) Zero
D) False
Question
What is a label control? Explain how it is used on a form.
Question
What is the Windows Form Designer window? Describe how it is used in Visual Studio 2012.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/59
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 1: An Introduction to Visual Basic 2012
1
When you click the Auto Hide button on a window,the window is minimized and appears as a tab on the edge of the IDE.
True
2
The Windows ____ window allows you to create the graphical user interface for your application.

A) Property
B) Solution Designer
C) Designer
D) Form Designer
D
3
The Project Designer window allows you to specify which form will display when the application starts.
True
4
Each object has a set of attributes,called ____,that determine the object's appearance and behavior.

A) codes
B) events
C) global settings
D) properties
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
5
If a solution is already open in the IDE,you are given the option to close the current solution before another solution is opened.
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
6
A source file contains a list of projects in a solution.
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
7
Actions performed by the user such as clicking,double-clicking,and scrolling are known as events.
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
8
The Properties window lists the names of the files included in the application you are creating.
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
9
A ____ is the general shape of the characters in the text.

A) property
B) splash
C) format
D) font
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
10
A user ____ is what the user sees and interacts with while an application is running.

A) service
B) profile
C) splash
D) interface
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
11
When an object is instantiated (created),each property must be assigned a value by the programmer.
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
12
The Label tool is an appropriate control to use when you do not want the user to modify data.
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
13
The Solution Explorer window ____.

A) displays a list of the projects contained in the current solution
B) displays data connections and servers
C) displays items that you can use when creating a project
D) displays the classes,methods,and properties included in a solution
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
14
A class definition is a block of code that specifies or defines an object's appearance and behavior.
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
15
The position of the form on the screen when an application first starts is controlled by setting the ____ property.

A) Position
B) Size
C) Location
D) StartPosition
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
16
A(n)____ is a container that stores the projects and files for an entire application.

A) window
B) solution
C) interface
D) package
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
17
To size a form using the keyboard,you can select the form and press and hold the ____ key(s),and then press one of the arrow keys on the keyboard.

A) Shift
B) Ctrl
C) Alt
D) Ctrl+Shift
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
18
When you click the ellipsis (... )button in the Settings box of the Font property,____.

A) a list of font styles appears
B) a color palette appears
C) a dialog box opens
D) the attribute is removed
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
19
The title bar on a form cannot be removed from splash screen applications.
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
20
All objects in an object-oriented program are instantiated (created)from a ____.

A) project
B) form
C) class
D) property
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
21
To align two or more selected controls along their left,right,top,or bottom borders,you would use the ____ menu.

A) Edit
B) Format
C) Align
D) View
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
22
The Toolbox window ____.

A) displays the names of projects and files included in a solution
B) displays data connections and servers
C) displays the tools you use when creating your application's interface
D) displays the classes,methods,and properties included in a solution
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
23
A Visual Basic 2012 solution file will have a(n)____ file extension.

A) .net
B) .app
C) .frm
D) .sln
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
24
System.Windows.Forms.Button indicates that the control is an instance of the ____ class.

A) System
B) Windows
C) Forms
D) Button
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
25
You enter the procedure's code in the ____ window.

A) Code Editor
B) Server
C) Solution
D) Designer
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
26
When a timer control is added to a form,it appears ____.

A) at the location you placed the mouse pointer on the form
B) on the Title bar
C) in the component tray
D) in the lower-right corner of the form
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
27
The location of a control on the screen can be modified by changing the X and Y properties measured in pixels.The Y value is measured from the ____ border.

A) left
B) right
C) top
D) bottom
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
28
Which of the following is an example of an appropriate name for a control?

A) BtnMessage
B) btnExit
C) labelmessage
D) housepicturebox
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
29
A(n)____ is a predefined procedure that you can call (or invoke)when needed.

A) method
B) object
C) class
D) event
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
30
A(n)____ is a block of code that performs a specific task.

A) event
B) form
C) class
D) sub procedure
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
31
The file within a Visual Basic application that can be run outside of the IDE has a(n)____ file extension.

A) .sln
B) .vb
C) .exe
D) .src
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
32
The set of Visual Basic instructions that tells an object how to behave after an action by the user (such as clicking a button)is referred to as a(n)____.

A) sub-program
B) event procedure
C) object function
D) subroutine
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
33
When an application is started,Visual Basic 2012 will automatically create a file that has the project name and a(n)____ file extension.

A) .dll
B) .exe
C) .sln
D) .suo
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
34
To start an application using the menu bar,you click ____ and then click Start Debugging.

A) DEBUG
B) PROJECT
C) VIEW
D) BUILD
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
35
When you want the application to end when the user clicks the Exit button,you write the following code: ____.

A) Me.Stop()
B) Me.Close()
C) Me.Terminate()
D) Me.End()
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
36
Which of the following is a true statement?

A) The Me.Close()instruction should be coded in a timer control's Tick event procedure if an Exit button is not provided.
B) By default,the size of a form cannot be changed by a user while an application is running.
C) The title bar cannot be removed from an application.
D) The Minimize button can be removed from the title bar without removing the Maximize button from the title bar.
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
37
To verify that a solution has been closed,you can look in the ____.

A) Class View
B) Server Explorer
C) Start Page
D) Solution Explorer
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
38
A label control's ____ property determines the value that appears inside the control.

A) Caption
B) Label
C) Text
D) Values
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
39
The location of a control on the screen can be modified by changing the X and Y properties measured in pixels.The X value is measured from the ____ border.

A) left
B) right
C) top
D) bottom
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
40
The ____ function key will start a Visual Basic 2012 application in the IDE.

A) F2
B) F3
C) F4
D) F5
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
41
An example of a valid value for the form's Name property is ____.

A) form Ridgeline
B) formridgeline
C) Ridgeline
D) frmRidgeline
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
42
What is the Toolbox window? Describe how it is used in Visual Studio 2012.
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
43
If a timer control is used to display the office image and company logo for five seconds,you will need to set the timer's Interval property to ____.

A) 5
B) 50
C) 500
D) 5000
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
44
What is a button control? Provide two examples of common button controls found in Windows applications.
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
45
Define a source file and describe how it relates to a form file.Provide an example of a source file name,including the appropriate file extension.
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
46
What is a startup form? Describe the steps used to define it for an application.
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
47
Describe the use of the Format menu and controls on the form.
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
48
To create the Windows application for Ridgeline,you will first need to ____.

A) auto-hide any windows you do not need to use
B) set the StartPosition for the form
C) create a New Project and determine the directory for the solution
D) code the Exit button
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
49
What does it mean when an asterisk (*)sometimes appears on the Windows Form Designer window? When it appears,what should you do to remove it?
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
50
Explain the difference between a solution and a project.
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
51
How is a timer control used in an application? Provide one example.
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
52
The most effective way to accomplish this task is to create a(n)____.

A) PictureBox control
B) splash screen
C) Label control
D) Exit button
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
53
If a control is deleted from a form,is the related code for the control also deleted? Explain.
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
54
Why should you print a copy of your application's code and user interface?
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
55
What is the Solution Explorer window? Describe how it is used in Visual Studio 2012.
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
56
What is the Properties window? Describe how it is used in Visual Studio 2012.
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
57
Anyone using the application does not need to change the size of the form,so you must set the FormBorderStyle property to ____.

A) FixedSingle
B) Sizable
C) Zero
D) False
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
58
What is a label control? Explain how it is used on a form.
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
59
What is the Windows Form Designer window? Describe how it is used in Visual Studio 2012.
Unlock Deck
Unlock for access to all 59 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 59 flashcards in this deck.