Deck 1: Introduction to Visual Basic 2010
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
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/54
Play
Full screen (f)
Deck 1: Introduction to Visual Basic 2010
1
In order to properly save changes that have been made to a Visual Basic project,you should choose Save All from the File menu.
True
2
Snap lines are blue lines that assist the programmer in aligning controls.
True
3
The Properties window is used to set the properties for the objects on your form.
True
4
Assignment statements work from left to right,assigning the value on the left side of the equal sign to the property named on the right side of the equal sign.
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck
5
If the programmer does not write code for a button control,Visual Basic automatically provides code in the Click procedure that will close the form when the user clicks the button.
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck
6
You are in run time when you design the user interface.
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck
7
With Visual Basic,you can write computer programs that run in the Microsoft Windows environment.
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck
8
The Visual Studio IDE will automatically create a new folder for each new project.
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck
9
In Form1.Text,the word Text is referring to a method.
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck
10
The Solution Explorer window is used to design a form that makes up your user interface.
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck
11
Programmers should add comments to their code in order to make the program logic easier to understand.
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck
12
You can use the Properties window to change the properties of controls during run time.
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck
13
A .vb file is a text file that can be opened with any text editor and it holds the code procedures that you write.
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck
14
Remark statements are not executable code.
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck
15
The .resx file is a text file that defines all resources used by the form including any graphics that are displayed on the form.
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck
16
When creating a project in Visual Basic,you should always begin by writing the Basic code.
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck
17
You write Visual Basic code statements during design time.
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck
18
Writing a program in Visual Basic is so easy that it is not necessary to do any planning.
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck
19
Visual Basic is an object-oriented programming language.
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck
20
After you have added a label to a form,you can change the words that are displayed inside the button by changing the Text property.
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck
21
If you have added a label to a form and you want to make sure that nothing is displayed in it when the program begins,you must delete the contents of the _______.
A)Text property
B)Alignment property
C)Name property
D)Form window
A)Text property
B)Alignment property
C)Name property
D)Form window
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck
22
While you are creating the user interface,you are in _______.
A)stop time
B)debug time
C)run time
D)design time
A)stop time
B)debug time
C)run time
D)design time
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck
23
Where does the Text property for a form appear?
A)In the lower left corner of the form
B)In the form's title bar
C)In the center of the form
D)In the Toolbox
A)In the lower left corner of the form
B)In the form's title bar
C)In the center of the form
D)In the Toolbox
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck
24
The Visual Studio environment contains many different windows.Which window will be the user interface when the project is running?
A)The Toolbox
B)The Solution window
C)The Properties window
D)The Form Designer window
A)The Toolbox
B)The Solution window
C)The Properties window
D)The Form Designer window
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck
25
After the steps for planning a Visual Basic project are competed,you can begin actually constructing a program by _______.
A)Setting the properties
B)Creating the interface
C)Writing the code
D)Executing the next step based on the programmer's preference
A)Setting the properties
B)Creating the interface
C)Writing the code
D)Executing the next step based on the programmer's preference
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck
26
Which of the following are coding conventions required by the textbook?
A)Remarks must be included in the Declarations section.
B)Every event procedure must include remarks.
C)All objects (except labels not referred to in code)must be given descriptive names.
D)All of these
A)Remarks must be included in the Declarations section.
B)Every event procedure must include remarks.
C)All objects (except labels not referred to in code)must be given descriptive names.
D)All of these
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck
27
If you encounter a run-time error or you pause the program execution,you are in _______.
A)stop time
B)debug time
C)pause time
D)design time
A)stop time
B)debug time
C)pause time
D)design time
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck
28
Microsoft Windows uses a GUI environment.GUI (pronounced "gooey")stands for _______.
A)Geographical User Interchange
B)Graphical User Interface
C)Geometrical Upper Intelligence
D)Grammatical User Incorporation
A)Geographical User Interchange
B)Graphical User Interface
C)Geometrical Upper Intelligence
D)Grammatical User Incorporation
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck
29
Which window do you open if you want to see all of the objects that you can add to a form?
A)The Toolbox
B)The Solution window
C)The Properties window
D)The Form Designer
A)The Toolbox
B)The Solution window
C)The Properties window
D)The Form Designer
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck
30
Visual Basic is a(n)_______.
A)Procedural programming language
B)Object-oriented programming language
C)Hyperlink programming language
D)Sequential programming language
A)Procedural programming language
B)Object-oriented programming language
C)Hyperlink programming language
D)Sequential programming language
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck
31
The _______ holds information about the solution and the projects it contains.This is the file that you open to work on or run your project.
A)project file
B)resource file
C)solution file
D)vb file
A)project file
B)resource file
C)solution file
D)vb file
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck
32
Which of the following shows the correct order for creating a Visual Basic program?
A)Set the properties,create the interface,write the code
B)Create the interface,set the properties,write the code
C)Create the interface,write the code,set the properties
D)Write the code,set the properties,create the interface
A)Set the properties,create the interface,write the code
B)Create the interface,set the properties,write the code
C)Create the interface,write the code,set the properties
D)Write the code,set the properties,create the interface
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck
33
If a project runs without a syntax error,you can be certain that the code has performed the project's task correctly.
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck
34
In Visual Basic,we work with objects that have _______.
A)Programmer preference
B)Projects,solutions,and procedures
C)Classes,actions,and disciplines
D)Properties,methods,and events
A)Programmer preference
B)Projects,solutions,and procedures
C)Classes,actions,and disciplines
D)Properties,methods,and events
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck
35
If a line of code is not considered "executable",it must be _______.
A)a Close statement
B)an Assignment statement
C)a Remark statement
D)an event procedure
A)a Close statement
B)an Assignment statement
C)a Remark statement
D)an event procedure
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck
36
When you plan a Visual Basic program,you follow a three-step process that should end with _______.
A)Setting the properties
B)Writing the Basic code
C)Coding all of the remark statements
D)Defining the user interface
A)Setting the properties
B)Writing the Basic code
C)Coding all of the remark statements
D)Defining the user interface
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck
37
A project in Visual Basic contains _______.
A)form(s)
B)controls
C)code
D)all of these
A)form(s)
B)controls
C)code
D)all of these
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck
38
The property used to display information in the title bar of a form is _______.
A)TitleBar
B)Name
C)Text
D)Title
A)TitleBar
B)Name
C)Text
D)Title
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck
39
Each Visual Basic project contains a text file that defines all resources used by the form.This file has a _______ extension.
A)Resx
B)Designer.vb
C)sln
D)vb
A)Resx
B)Designer.vb
C)sln
D)vb
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck
40
Remarks,or comments,that programmers add to their code in order to make the program more readable and understandable,_______.
A)are executable code
B)begin with an asterisk (*)
C)are not considered "executable"
D)display on the form when the program runs
A)are executable code
B)begin with an asterisk (*)
C)are not considered "executable"
D)display on the form when the program runs
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck
41
To print a form,add a _______ component to the component tray.
A)FormPrint
B)Print
C)PrintForm
D)PrintAll
A)FormPrint
B)Print
C)PrintForm
D)PrintAll
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck
42
What is the code used to display the words "Visual Basic" in a label named TitleLabel?
A)TitleLabel.Name = "Visual Basic"
B)TitleLabel.Name.Visual Basic
C)TitleLabel.Text = "Visual Basic"
D)"Visual Basic" = TitleLabel.Text
A)TitleLabel.Name = "Visual Basic"
B)TitleLabel.Name.Visual Basic
C)TitleLabel.Text = "Visual Basic"
D)"Visual Basic" = TitleLabel.Text
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck
43
If a project runs,but the results are not correct,this is called a(n)_______.
A)run-time error
B)logic error
C)syntax error
D)arithmetic error
A)run-time error
B)logic error
C)syntax error
D)arithmetic error
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck
44
With Visual Basic context-sensitive Help,you can view a Help topic by placing the insertion point in a word in the code window and pressing _______.
A)the Ctrl key and the H key
B)F1
C)F5
D)F8
A)the Ctrl key and the H key
B)F1
C)F5
D)F8
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck
45
A form in a project needs a label,a text box,and a button.Explain how you will add the objects,set their properties,and reference the object in the basic code.
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck
46
Which of the following choices CANNOT be used to start running a project?
A)Press and hold the CTRL key and then press the S key.
B)Open the Debug menu and choose Start Debugging.
C)Press the Start Debugging button on the toolbar.
D)Press F5 .
A)Press and hold the CTRL key and then press the S key.
B)Open the Debug menu and choose Start Debugging.
C)Press the Start Debugging button on the toolbar.
D)Press F5 .
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck
47
Visual Basic provides AutoCorrect,which is a handy way to fix _______.
A)syntax errors
B)logic errors
C)arithmetic errors
D)all types of errors
A)syntax errors
B)logic errors
C)arithmetic errors
D)all types of errors
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck
48
Use the code,_______,to end a program.
A)Me.Exit
B)Me.Close
C)Me.End
D)Me.Stop
A)Me.Exit
B)Me.Close
C)Me.End
D)Me.Stop
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck
49
How do the Editor and IntelliSense help you write Visual Basic code?
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck
50
_______ if the code Me.Cloose is contained in a project.
A)VB will automatically fix the misspelling when the program is run
B)A logic error will occur
C)The mispelling will cause a syntax error to occur and Me.Cloose will have a blue squiggly line underneath
D)No error will occur
A)VB will automatically fix the misspelling when the program is run
B)A logic error will occur
C)The mispelling will cause a syntax error to occur and Me.Cloose will have a blue squiggly line underneath
D)No error will occur
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck
51
Finding and fixing programming errors is called _______.
A)recoding
B)debugging
C)fix-its
D)tuning
A)recoding
B)debugging
C)fix-its
D)tuning
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck
52
When you create a new Visual Basic project and choose the disk location for your project,the VS IDE _______.
A)will create a folder and save all of the project files in the folder
B)will automatically save your project every 5 minutes
C)requires that the project file be stored on a hard drive
D)will create remarks in the Declarations section that list all of the files in the project
A)will create a folder and save all of the project files in the folder
B)will automatically save your project every 5 minutes
C)requires that the project file be stored on a hard drive
D)will create remarks in the Declarations section that list all of the files in the project
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck
53
When you break VB's rules for punctuation,format,or spelling,you generate a(n)_______.
A)run-time error
B)logic error
C)syntax error
D)arithmetic error
A)run-time error
B)logic error
C)syntax error
D)arithmetic error
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck
54
Where does the text recommend that you code the programmer's name and remarks defining the purpose of a project?
A)In Visual Basic Help
B)In the event procedure for exiting the project
C)In the Declarations section at the top of the file
D)In the form's title bar
A)In Visual Basic Help
B)In the event procedure for exiting the project
C)In the Declarations section at the top of the file
D)In the form's title bar
Unlock Deck
Unlock for access to all 54 flashcards in this deck.
Unlock Deck
k this deck