Deck 3: Program Design and Coding
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
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/103
Play
Full screen (f)
Deck 3: Program Design and Coding
1
A ____ object is used to display a graphic image.
A) FormImage
B) PictureBox
C) BoxImage
D) Graphic
A) FormImage
B) PictureBox
C) BoxImage
D) Graphic
B
2
The ____ option of the SizeMode property of the PictureBox object does not change the size of the image or the size of the PictureBox object, and aligns the center of the image with the center of the PictureBox object.
A) AutoSize
B) CenterImage
C) Normal
D) Zoom
A) AutoSize
B) CenterImage
C) Normal
D) Zoom
B
3
____ is a choice on the SizeMode list in the Properties window for PictureBox objects.
A) StretchImage
B) Normal
C) AutoSize
D) CenterImage
A) StretchImage
B) Normal
C) AutoSize
D) CenterImage
A,B,C,D
4
The Image property of the ____ object is used to specify the image that will be displayed.
A) Graphic
B) ClipArt
C) PictureBox
D) Visual
A) Graphic
B) ClipArt
C) PictureBox
D) Visual
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
5
When the ____ property of an object is set to False, the object will not appear on the form when the program starts.
A) Visible
B) Display
C) Show
D) View
A) Visible
B) Display
C) Show
D) View
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
6
Which of the following color palettes for the BackColor and ForeColor properties is restricted to colors selected in other areas of the computer system?
A) Web palette
B) Custom palette
C) System palette
D) Artistic palette
A) Web palette
B) Custom palette
C) System palette
D) Artistic palette
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
7
Which of the following color palettes for the BackColor and ForeColor properties contains colors that are guaranteed to be displayed properly on every computer?
A) Artistic palette
B) Custom palette
C) System palette
D) Web palette
A) Artistic palette
B) Custom palette
C) System palette
D) Web palette
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
8
The Error List window will display the ____ number where the error was detected.
A) index
B) line
C) column
D) row
A) index
B) line
C) column
D) row
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
9
____ automatically creates indentations in program code to make it easier to read and understand.
A) Project Control
B) IntelliSense
C) Visual Studio
D) Code Manager
A) Project Control
B) IntelliSense
C) Visual Studio
D) Code Manager
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
10
The unit of measurement for a selected PictureBox object is ____.
A) picas
B) inches
C) pixels
D) millimeters
A) picas
B) inches
C) pixels
D) millimeters
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
11
The ____ attribute of the SizeMode property of a PictureBox object will enlarge or shrink 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 103 flashcards in this deck.
Unlock Deck
k this deck
12
The ____ property of an object controls the color of text that appears in the object.
A) TextColor
B) ContentColor
C) ObjectColor
D) ForeColor
A) TextColor
B) ContentColor
C) ObjectColor
D) ForeColor
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
13
Clicking the ellipsis button at the end of the Image property of the PictureBox object will display the ____ dialog box.
A) Visuals
B) Select Resource
C) Graphics
D) Objects
A) Visuals
B) Select Resource
C) Graphics
D) Objects
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
14
To use an image in a program, the image first must be ____ into the Resources folder.
A) linked
B) attached
C) imported
D) synced
A) linked
B) attached
C) imported
D) synced
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
15
The ____ option of the SizeMode property of the PictureBox object will adjust the size of the image to match the size of the PictureBox object.
A) AutoSize
B) CenterImage
C) StretchImage
D) Zoom
A) AutoSize
B) CenterImage
C) StretchImage
D) Zoom
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
16
The Normal attribute of the SizeMode property places the image in the ____ corner of the PictureBox object without any changes.
A) upper-left
B) upper-right
C) bottom-left
D) bottom-right
A) upper-left
B) upper-right
C) bottom-left
D) bottom-right
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
17
IntelliSense choices can be selected by ____.
A) using the ENTER key
B) using the F2 key
C) using the TAB key
D) double-clicking or double-tapping the desired entry
A) using the ENTER key
B) using the F2 key
C) using the TAB key
D) double-clicking or double-tapping the desired entry
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
18
To make an image available for display in a PictureBox object, the image should be imported into the ____ folder.
A) Resources
B) Objects
C) Pictures
D) Forms
A) Resources
B) Objects
C) Pictures
D) Forms
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
19
The ____ option of the SizeMode property of the PictureBox object will increase or decrease the size of the PictureBox object to accommodate the size of the image.
A) CenterImage
B) Normal
C) AutoSize
D) Zoom
A) CenterImage
B) Normal
C) AutoSize
D) Zoom
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
20
Visual Studio 2017 offers three ____ of colors to use for the BackColor and ForeColor properties.
A) indices
B) grids
C) rosters
D) palettes
A) indices
B) grids
C) rosters
D) palettes
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
21
A set of rules that specify how each code statement must be written is called the ____ of the programming language.
A) grammar
B) syntax
C) glossary
D) roster
A) grammar
B) syntax
C) glossary
D) roster
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
22
When you see the build errors message in Visual Basic, you should always click the _____ button.
A) Exit
B) Yes
C) No
D) Save
A) Exit
B) Yes
C) No
D) Save
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
23
The first code written for an event should be ____ code that identifies the event and the processing that will occur.
A) assignment
B) comment
C) enabling
D) disabling
A) assignment
B) comment
C) enabling
D) disabling
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
24
The ____ feature displays all allowable entries you can make in a Visual Basic statement each time a dot, equal sign, or other special character required for the statement is typed.
A) AutoComplete
B) AutoSense
C) IntelliComplete
D) IntelliSense
A) AutoComplete
B) AutoSense
C) IntelliComplete
D) IntelliSense
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
25
A button must be ____ in order for the user to click it and cause an event.
A) enabled
B) compiled
C) indexed
D) executed
A) enabled
B) compiled
C) indexed
D) executed
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
26
In the code editor, ____ is used to indicate the location of an error.
A) blue text
B) a red squiggly line
C) green text
D) a green squiggly line
A) blue text
B) a red squiggly line
C) green text
D) a green squiggly line
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
27
A(n) ____ is used for denoting a comment statement.
A) semicolon (;)
B) period (.)
C) apostrophe (')
D) comma (,)
A) semicolon (;)
B) period (.)
C) apostrophe (')
D) comma (,)
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
28
Which of the following is the correct general format for assigning a value to a property?
A) propertyvalue = propertyname.objectname
B) propertyvalue = objectname.property
C) propertyname.objectname = propertyvalue
D) objectname.property = propertyvalue
A) propertyvalue = propertyname.objectname
B) propertyvalue = objectname.property
C) propertyname.objectname = propertyvalue
D) objectname.property = propertyvalue
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
29
The ____ operator separates the name of the object from the next entry in the statement.
A) assignment
B) dot
C) property
D) arithmetic
A) assignment
B) dot
C) property
D) arithmetic
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
30
The ____ is used in an assignment statement.
A) plus sign (+)
B) equal sign (=)
C) ampersand (&)
D) percent sign (%)
A) plus sign (+)
B) equal sign (=)
C) ampersand (&)
D) percent sign (%)
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
31
Every program should begin with ____ comments.
A) Final
B) Introductory
C) Inline
D) Same line
A) Final
B) Introductory
C) Inline
D) Same line
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
32
____ error messages indicate coding errors detected by the compiler.
A) Run
B) Compile
C) Build
D) Executable
A) Run
B) Compile
C) Build
D) Executable
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
33
A(n) ____ statement is used to set the value of an object's property with the desired value.
A) comparison
B) logical
C) assignment
D) remastered
A) comparison
B) logical
C) assignment
D) remastered
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
34
When the ____ property of an object is set to False, the object will appear dimmed on the form.
A) Visible
B) Enabled
C) Targeted
D) Active
A) Visible
B) Enabled
C) Targeted
D) Active
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
35
When build errors occur, Visual Studio will display the errors in the ____ window.
A) Command
B) Error List
C) Output
D) Task
A) Command
B) Error List
C) Output
D) Task
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
36
A Label can be hidden by setting the ____ property to False.
A) Visible
B) Activation
C) Display
D) Show
A) Visible
B) Activation
C) Display
D) Show
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
37
The Start button appears on the ____ toolbar.
A) Build
B) Standard
C) Compilation
D) Program
A) Build
B) Standard
C) Compilation
D) Program
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
38
When you type the first few letters of the ____ name, IntelliSense displays a list of all the entries that can be specified in the statement.
A) object
B) character
C) indices
D) assignment
A) object
B) character
C) indices
D) assignment
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
39
An event ____ takes care of the event that a user action triggers by executing code that performs the required processing.
A) manager
B) executor
C) handler
D) guide
A) manager
B) executor
C) handler
D) guide
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
40
The predefined ____ procedure will terminate the program and close the window.
A) Off
B) Sleep
C) Exit
D) Close
A) Off
B) Sleep
C) Exit
D) Close
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
41
The CenterImage attribute for the SizeMode property of a PictureBox object centers the image and stretches it to fit the PictureBox.
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
42
A set of braces at the end of a statement indicates that it is a procedure call statement. _________________________
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
43
Even if some entries within a program statement are not correct, the program will still compile.
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
44
Changing the value of the Enabled property of an object in code statements can be used to make an object appear on the form during program execution. _________________________
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
45
A Visual Basic 2017 coding statement contains instructions that the computer eventually executes.
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
46
A(n) ____ document is a table that specifies objects in the user interface that will cause events, the actions taken by the user to trigger the events, and the event processing that must occur.
A) event handler
B) event-planning
C) event coding
D) event specification
A) event handler
B) event-planning
C) event coding
D) event specification
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
47
The AutoSize attribute of the SizeMode property of a PictureBox object may cause distortion of an image. _________________________
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
48
You should match a light BackColor with a light ForeColor property for the best usability.
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
49
Use the Print choice on the ____ menu to print the Visual Basic code.
A) File
B) Edit
C) View
D) Tools
A) File
B) Edit
C) View
D) Tools
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
50
Programming code is the set of rules used to specify how each statement must be written.
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
51
The ImageCollection folder holds all the images that the program uses.
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
52
A(n) ____ means the user has initiated an action that causes the program to perform the type of processing called for by the user's action.
A) link
B) assignment
C) event
D) activation
A) link
B) assignment
C) event
D) activation
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
53
The forward slash (/) is used to identify a statement as a comment. _________________________
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
54
The default value of the SizeMode property is CenterImage . _________________________
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
55
A code handler is a section of the program that handles user actions by executing code.
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
56
Good coding practice dictates that elements within a statement should be separated by a space to make the statement easier to read, even though the space is not required.
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
57
Open and close ____ immediately following the name of a procedure identify a Visual Basic statement as a procedure call statement.
A) curly braces
B) square brackets
C) quotation marks
D) parentheses
A) curly braces
B) square brackets
C) quotation marks
D) parentheses
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
58
In order to write the code for an event handler, a developer first must identify the GUI object that will be used to trigger the event.
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
59
The Disabled property controls whether an object can trigger an event.
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
60
Image file names should not contain spaces.
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
61
The ____________________ option of the SizeMode property of a PictureBox object will increase or decrease the image size to make it fit into the PictureBox object.
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
62
A comment can exist on the same line as a code statement if the comment is placed first and then followed by another apostrophe.
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
63
The property value specified in an assignment statement must be a valid value for the property identified on the left side of the equal sign.
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
64
The only valid procedures are the prewritten procedures included in Visual Studio 2015.
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
65
The use of IntelliSense is the standard within the software industry.
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
66
The developer should not begin to write code until after the events and tasks within the events have been identified.
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
67
The Coding Problem window identifies the number of errors that occurred during compilation and displays a description of each error.
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
68
In Visual Basic, capitalization of words is important.
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
69
In an assignment statement, the value appearing on the right of the equal sign receives the value of the object appearing to the left of the equal sign.
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
70
An event-planning document specifies objects in the user interface that will cause events, the actions taken by the user to trigger the events, and the event processing that must occur.
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
71
The ____________________ of an object is the color that is displayed in its background.
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
72
The ____________________ property of the PictureBox object determines the manner in which an image is displayed in a PictureBox object.
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
73
Visual Studio 2015 provides a tool to print the user interface designed in the application.
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
74
IntelliSense allows you to type the first few letters of an object name, and then it displays a list of all the entries that can be specified in the statement.
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
75
The event-planning document describes what processing must occur for each event as well as the manner in which to accomplish it.
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
76
Procedures written by a developer cannot be stored in a Visual Basic library; only prewritten procedures provided by Microsoft can be stored in a library.
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
77
Using the ____________________ option of the SizeMode property of a PictureBox object may result in some distortion of the image.
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
78
The ___________________ option of the SizeMode property adjusts the size of the PictureBox object to fit the image precisely.
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
79
The ____________________ property controls whether a GUI object is displayed on the Windows Form object.
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck
80
Programs written using a GUI normally are event-driven programs.
Unlock Deck
Unlock for access to all 103 flashcards in this deck.
Unlock Deck
k this deck