Name: 
 

Programming - Skills USA



True/False
Indicate whether the statement is true or false.
 

 1. 

The instructions executed by a computer when it is first turned on are stored in the computer's random-access memory.
 

 2. 

It is the responsibility of a computer's operating system to manage system resources, such as memory allocation and the amount of processor time given to programs.
 

 3. 

Software designed for one operating system will usually work just as well on a different operating system.
 

 4. 

The instructions actually executed by a computer must be translated into machine language before the computer can understand them.
 

 5. 

The assembler programming language is an example of a high-level language.
 

 6. 

Programs written in a high-level language are generally easier to move and adapt to a different computer than programs written in a low-level language.
 

 7. 

Programs written in a high-level language usually run more quickly than programs written in a low-level language.
 

 8. 

Interpreted programs will generally run faster than a compiled program.
 

 9. 

HTML is a language used primarily to create Web pages.
 

 10. 

JavaScript is a powerful language used to quickly build GUI based application programs.
 

 11. 

Visual Basic combines a graphical interface and programming code to ease the process of program development.
 

 12. 

The Visual Basic New Project dialog box can be opened by clicking the View menu, and then clicking Open Project.
 

 13. 

When a new or existing project is opened in Visual Basic, the development window includes a Toolbox containing various tools that can be used to create objects for your program.
 

 14. 

Unlike many Windows programs, Visual Basic only has one toolbar.
 

 15. 

The Project Explorer window contains a Forms folder which shows the name of all forms in the current project.
 

 16. 

Command buttons, text boxes, and other objects placed on a form are also referred to as properties.
 

 17. 

The window that usually appears just below the Project Explorer window and contains the characteristics for each object in the program is the Object Traits window.
 

 18. 

The Visual Basic standard toolbar has the buttons required to create objects on a form, such as command buttons and text boxes.
 

 19. 

A Visual Basic program that is running can be stopped by clicking the End button on the standard toolbar.
 

 20. 

You can move the form to a new location in the Visual Basic environment window to change the placement of the form when the program is executed.
 

 21. 

The VB Application Wizard will create a Windows program with standard Windows components already included when the project opens.
 

 22. 

When a Standard EXE Visual Basic project is created for the first time, it is an empty project and does not contain a form or any objects.
 

 23. 

One advantage to Visual Basic is that a lot of functionality can be achieved without writing any code simply by modifying an object's properties.
 

 24. 

Setting the Movable property for a form to False will prevent the user from moving the form when the program is run.
 

 25. 

The Title property of a Visual Basic object is referenced when manipulating the object via code statements.
 

 26. 

Visual Basic programmers normally add a prefix to the name of an object to help identify what type of object it is, such as frm for a form.
 

 27. 

You can automatically create a control on a form by right-clicking the icon for the tool in the Toolbox.
 

 28. 

A control can be added to a form by clicking the control in the Toolbox, then positioning the cursor on the form where you want the control to be, and then clicking and dragging the cursor to create the object.
 

 29. 

Once a command button has been created, it may not be resized.
 

 30. 

The Visual Basic unit of measurement that allows for very precise measurements is called swibs.
 

 31. 

Windows is called an event-driven environment because the computer is always waiting for the user to take some action.
 

 32. 

You should always write procedures for all events, even those that you want to ignore.
 

 33. 

When an object is created in Visual Basic, a small block of code is automatically set up for the object.
 

 34. 

The Code window is just like a word processor in that it will automatically wrap text at the end of each line.
 

 35. 

Visual Basic is a case-sensitive language.
 

 36. 

Program statements, comments, and keywords may appear in different colors within the Visual Basic Code window.
 

 37. 

When a picture is placed within an image control, the picture will automatically resize itself to fit the control.
 

 38. 

The value you assign to an image control's Object property can be referenced when you manipulate the image in code statements.
 

 39. 

When the Expand property of an image control is set to True, changing the size of the control will change the size of the image within the control.
 

 40. 

The properties of an object can be modified in the development environment, but they cannot be changed while the program is running.
 

 41. 

The text that appears in a label on a Visual Basic form can be modified by the user while the program is running.
 

 42. 

The Visual Basic assignment operator changes the value on the right side of the operator to the value on the left side of the operator.
 

 43. 

A control can be placed on a form by clicking the tool once in the Toolbox, positioning the cursor over the form at the desired location, and then doing a click and drag operation to draw the control.
 

 44. 

All data is stored internally in a computer as a numeric value, even text data.
 

 45. 

When naming controls in Visual Basic it is good practice to give each control a three letter prefix indicating the type of control, such as txt for text boxes, and lbl for labels.
 

 46. 

The line-continuation character is not necessary for breaking a line into multiple text lines, but it is good programming practice to use it.
 

 47. 

The subtraction operator can also be used for negation, which turns a positive number negative, and a negative number positive.
 

 48. 

The remainder of an integer division operation can be returned by using the Remainder operator.
 

 49. 

The symbol used in Visual Basic to represent the Modulus operation is the pound sign (#).
 

 50. 

The statement: lblResult.Caption = 7 % 3 results in a value of 2 being placed in the lblResult Caption property.
 

 51. 

A double asterisk (**) is used to indicate exponentiation in Visual Basic.
 

 52. 

The expression: x = (1 + 2 * 3 / 2) results in a value of 4.5 being stored in the variable x.
 

 53. 

An object's Hide property can be set to True to make the object invisible.
 

 54. 

Comment statements are frequently added to programs to keep track of programmers who have worked on that program.
 

 55. 

When a comment symbol is found, the compiler will ignore everything to the right of the symbol.
 

 56. 

Many program run-time errors are caused by a user entering incorrect or invalid data.
 

 57. 

Visual Basic can automatically handle any run-time error that occurs as long as you turn on error trapping within the program.
 

 58. 

Code labels cannot be used for any purpose in Visual Basic other than identifying an error handling routine.
 

 59. 

The text supplied to a MsgBox function must be enclosed in quotation marks, and surrounded by parentheses.
 

 60. 

Although not required, it is good programming practice to include an Exit Sub statement at the end of an error handler routine.
 

 61. 

Single and Double are two examples of Visual Basic integer data types.
 

 62. 

Setting an label control's AutoSize property to True will increase the size of the label to match the size of the control.
 

 63. 

Variable names in Visual Basic programs must begin with an alphabetic character.
 

 64. 

The maximum size of a variable name in Visual Basic is 128 characters.
 

 65. 

It is common in Visual Basic programs to precede variable names with a three digit prefix identifying the data type just as is normally done when using a prefix to name a control.
 

 66. 

You must use the Val function to extract a numeric value from a numeric variable.
 

 67. 

A form-level variable is one that is defined in the Form Load section of the Code window.
 

 68. 

Local variables are only retained in memory as long as the procedure they are defined in continues to execute.
 

 69. 

Declaring a variable as a global variable when it only needs to be defined as a local variable could result in unpredictable results if the variable is modified by some other procedure.
 

 70. 

The Visual Basic Variant data type is not very efficient and should not be used unless it is absolutely required.
 

 71. 

A string variable has a maximum length of 4096 characters.
 

 72. 

Each time you assign a string to a string variable, the new string is appended to the end of the existing string.
 

 73. 

It is possible to concatenate more than two strings in a single expression.
 

 74. 

In addition to string variables, concatenation can also be used with the Caption property of a label control.
 

 75. 

If a variable may need to hold more than 6 or 7 significant digits, you should declare the variable as a Single data type.
 

 76. 

The Format function 0 symbol will force a zero to appear in that space if the data value does not have a digit in that space.
 

 77. 

The default value for an object's Enabled property is False.
 

 78. 

Setting the SelStart property to 0 will position the cursor at the far right of a text box when the box is selected.
 

 79. 

Setting the SelLength property to the length of the text currently in a text box will cause all the text to be selected when the text box gets the focus.
 

 80. 

Using the SelStart and the SelLength properties makes it easier for a user to enter new data into a text box.
 

 81. 

When a computer program prompts the user to enter data values, the program can control what keys the user will press.
 

 82. 

The statement: lblStrLen.Caption = (intInputLen >= 50) will result in a value of True being set in the Caption field of lblStrLen if the integer field intInputLen is 50 or less.
 

 83. 

A Visual Basic If statement allows a program to execute a specific statement or block of statements only if the result of a conditional expression is true.
 

 84. 

If there is more than one statement to be executed when an If statement expression is true, they must be enclosed in curly braces.
 

 85. 

When a diamond symbol is used in a flowchart diagram, it indicates some input/output operation is taking place.
 

 86. 

Flowcharts are not usually used to trace an entire Visual Basic program because Visual Basic is an event-driven environment, but they are used to trace individual event procedures.
 

 87. 

The If...Else statement allows a program to execute one block of code if the result of an expression is true, and a different block of code if the expression is false.
 

 88. 

When a check box control is not checked, its Selection property will contain a value of 0 (zero).
 

 89. 

A check box control can be set to either checked or unchecked as a default value.
 

 90. 

In the Visual Basic order of operations, the logical operators are processed after the mathematical operators, but before the conditional operators.
 

 91. 

When using nested If statements, it is always a good idea to indent each level to make it clearer to someone reading the program which block of code belongs to which statement.
 

 92. 

Visual Basic option buttons appear identical to check boxes but you can only select one at a time.
 

 93. 

The frame control's Title property is used to specify the text that will appear across the top of the frame.
 

 94. 

When a frame contains other controls, deleting the frame will also delete the controls contained within it.
 

 95. 

You can automatically create a frame on a form by double-clicking the Frame tool in the Toolbox.
 

 96. 

A form-level variable can be created by selecting General from the Code window's Procedure list.
 

 97. 

An event procedure must be coded for every option button on the form.
 

 98. 

It is always a good idea to set one option button as selected before the form displays in case the user does not select any of the options and tries to do some calculation based on the buttons.
 

 99. 

When a Visual Basic form is loaded and opened by the program, a special event called an Open event is triggered.
 

 100. 

The Visual Basic Select Case statement is used to provide for multiple decision paths in a single structure.
 

 101. 

Visual Basic has two types of Do loops, the Do While and the Do Until.
 

 102. 

The Visual Basic Do While loop will repeat a block of code while a specified condition remains false.
 

 103. 

If a Do While loop contains more than one statement to be executed, the statements must be enclosed in curly braces.
 

 104. 

The Visual Basic Do Until loop will execute a block of code until a specified condition becomes True.
 

 105. 

You should always use a Do While loop when you want to be sure that the loop code is executed at least one time.
 

 106. 

The third string supplied to the InputBox function is optional and does not have to be coded.
 

 107. 

The InputBox function will display a dialog box to the user with a title bar, a prompt telling the user what to do, and a text box to receive the user's input.
 

 108. 

The InputBox function should not be used inside a Do loop structure.
 

 109. 

While executing a long running loop, the computer may be unresponsive to other events that are occurring because it is busy processing the loop.
 

 110. 

The BreakLoop statement can be coded inside a loop to allow the computer to interrupt the loop when some other event occurs.
 

 111. 

You can prevent a user from interrupting a button's click event procedure while it is processing by disabling the button at the beginning of the procedure, and then enable it again when the procedure is finished.
 

 112. 

Unlike If statements, loops may not be nested within each other.
 

 113. 

The Visual Basic print statement requires the form to have a label control to hold the print statement output.
 

 114. 

A For Next loop always begins with a For Next statement, and always ends with a Loop keyword.
 

 115. 

The counter variable for a For Next loop changes with every iteration of the loop.
 

 116. 

Sometimes, using a For Next loop instead of a Do While loop can result in a loop that is smaller and easier to read.
 

 117. 

A For Next loop counter can count backwards by substituting the keyword Down instead of using the Step keyword.
 

 118. 

As with other loop structures, a For Next loop can be nested within another For Next loop as long as the entire inner loop is contained within the outer loop.
 

 119. 

You can change the color of the text for a label control by accessing the label's Font property and choosing a new color from the Font dialog box.
 

 120. 

Visual Basic projects are allowed to have multiple forms defined for the project.
 

 121. 

The Add Form dialog box has many pre-formatted form types that can selected and added to your Visual Basic project.
 

 122. 

An About screen for a Visual Basic project usually requires a command button or menu option to display it.
 

Multiple Choice
Identify the choice that best completes the statement or answers the question.
 

 123. 

What is the name for a set of instructions put into a logical sequence that are to be executed by a computer?
a.
process
c.
program
b.
string
d.
language
 

 124. 

What is the name for the set of programs that control operations within the computer and manages the execution of other programs running on the computer?
a.
application software
c.
BIOS
b.
operating system
d.
processor controller
 

 125. 

Which of the following terms is used to describe the device within a computer that actually executes the program instructions?
a.
BIOS
c.
the core unit
b.
the digitizer
d.
the microprocessor
 

 126. 

Which of the programming languages below is most like machine language?
a.
assembly language
c.
C++
b.
C
d.
Visual Basic
 

 127. 

Which of the following items is one advantage of writing a program in a low-level language?
a.
they are easier to read
b.
they require less time to write
c.
they are easier to move to another computer
d.
they usually require less memory
 

 128. 

What is the name for a program that converts high-level language source code into object code?
a.
translator
c.
compiler
b.
linker
d.
assembler
 

 129. 

Which item below describes a program that translates high-level source code into executable code while the program is being executed?
a.
compiler
c.
assembler
b.
interpreter
d.
converter
 

 130. 

Which of the following is NOT an advantage of writing a program in a high-level language?
a.
better utilization of hardware's capabilities
b.
fewer programming errors
c.
requires less time to write
d.
program is easier to read
 

 131. 

Which of the following languages does use a compiler?
a.
Assembler language
c.
C++
b.
JavaScript
d.
BASIC
 

 132. 

Which of the following languages makes it easy to create a powerful GUI based application program?
a.
JavaScript
c.
HTML
b.
Visual Basic
d.
Assembler language
 

 133. 

Which dialog box appears when Visual Basic first starts?
a.
New Program
c.
New Project
b.
Create Program
d.
Create Project
 

 134. 

What file extension is assigned to a Visual Basic project file?
a.
PVB
c.
VSP
b.
VBP
d.
PVS
 

 135. 

Which tab in the New Project dialog box can be clicked to open a previously created Visual Basic project?
a.
Existing
c.
Old Projects
b.
Recent
d.
Saved
 

 136. 

Which Visual Basic menu contains the New, Open, Save, and Print commands?
a.
View
c.
Tools
b.
Project
d.
File
 

 137. 

What will appear when you position the mouse pointer over a toolbar button or Toolbox item and leave it there for a few seconds?
a.
a tool cue
c.
nothing
b.
the Visual Basic Assistant
d.
a tool tip
 

 138. 

Which Visual Basic window shows the forms and files that make up your Visual Basic project?
a.
Properties
c.
Project Explorer
b.
Objects
d.
Form Layout
 

 139. 

Which of the following is the default location for the Project Explorer window?
a.
upper left corner of the screen
c.
upper right corner of the screen
b.
lower left corner of the screen
d.
lower right corner of the screen
 

 140. 

What button can you click to show a project's forms if the Forms folder is not visible in the Project Explorer window?
a.
Toggle Folders
c.
Open Forms
b.
Show Folders
d.
List Forms
 

 141. 

What is the name given to the various pieces that make up a Visual Basic program?
a.
components
c.
icons
b.
objects
d.
entities
 

 142. 

Which tab in the Properties window can be clicked to list the properties grouped by the function they perform?
a.
Sort By Function
c.
Categorized
b.
Group By Function
d.
Grouped
 

 143. 

Which of the following would you select from the New tab of the Visual Basic New Project dialog box to create a Windows program from scratch?
a.
Standard EXE
c.
Windows App
b.
Standard GUI
d.
Windows GUI
 

 144. 

What is included when a Standard EXE project is created in Visual Basic?
a.
one blank form
c.
a form, a command button and a label
b.
one form and one command button
d.
no objects are included at all
 

 145. 

When saving a new project for the first time, what is the first thing to be saved?
a.
The project code files
c.
the project properties
b.
the project's form(s)
d.
the project options file
 

 146. 

Which property can be set to False in the Properties window to cause a form's Maximize button to become inactive?
a.
Maximize
c.
MaxOption
b.
MaxYesNo
d.
MaxButton
 

 147. 

Which form object property controls the text that appears in the title bar of the form?
a.
Name
c.
Title
b.
Caption
d.
Text
 

 148. 

Which prefix is normally used with a command button to indicate the type of object?
a.
cmb
c.
cmd
b.
com
d.
cbo
 

 149. 

Which property of a command button control determines the text that appears on the button?
a.
Caption
c.
Text
b.
Description
d.
Title
 

 150. 

How can you tell when a Visual Basic object is selected?
a.
it changes color
c.
handles appear around its edges
b.
it appears with a white background
d.
it appears with a blue background
 

 151. 

When a Visual Basic program is run, the object that is currently active is said to have what?
a.
the light
c.
the presence
b.
the focus
d.
the control
 

 152. 

Which property can be set to change the background color of a form?
a.
BackGround
c.
BGColor
b.
BackDrop
d.
BackColor
 

 153. 

In a Windows environment, what is triggered when the user takes some action with the mouse or keyboard?
a.
an alert
c.
an event
b.
a reaction
d.
an action
 

 154. 

What event occurs when a user clicks a button, such as a command button?
a.
MouseDown
c.
Click
b.
Press
d.
ButtonDown
 

 155. 

Double-clicking any control on a form will automatically open what window?
a.
The Property window
c.
The Object Control window
b.
The Code window
d.
The Layout Control window
 

 156. 

What technology does Visual Basic use to anticipate what code statement you are keying and automatically complete your statement for you?
a.
Intellisense
c.
Intelliwrite
b.
Intellihelp
d.
Intellicode
 

 157. 

Which Visual Basic tool can be used to create a control similar to an image control but is more flexible, and less efficient than an image control?
a.
Picture Frame
c.
Image Frame
b.
Image Box
d.
Picture Box
 

 158. 

Which prefix is commonly used when naming an image control object?
a.
pic
c.
ico
b.
img
d.
ima
 

 159. 

What is required to change the property of an object by a code statement?
a.
the name of the object
c.
the value to be assigned to a property
b.
the name of the property to change
d.
all of the above
 

 160. 

When modifying a property via a code statement, what character is used to separate the name of the object from the name of the property being changed?
a.
the dot operator (.)
c.
a semi-colon (;)
b.
a colon (:)
d.
a dash (-)
 

 161. 

Which command button property must be set to True to have the button automatically activated when the user presses the Enter key?
a.
Cancel
c.
Escape
b.
AutoRun
d.
Default
 

 162. 

Which command can be selected from the File menu to create a Visual Basic standalone program?
a.
Make
c.
Export
b.
Build
d.
Distribute
 

 163. 

Which property of a label control determines the text that will appear in the label?
a.
Text
c.
Caption
b.
Title
d.
Name
 

 164. 

What is the name given to the equal sign (=) in Visual Basic?
a.
the comparison operator
c.
the adjustment operator
b.
the assignment operator
d.
the designation operator
 

 165. 

Which control below can be placed on a form and allows the user to enter input directly into the control?
a.
label control
c.
dialog box
b.
input box
d.
text box
 

 166. 

Which Visual Basic function is used to extract numeric text from a text box control and convert it to a true numeric value that can be used in calculations?
a.
Val
c.
Conv
b.
Fix
d.
CTxt
 

 167. 

Which of the following statements shows the correct way to copy the contents of one text box to another text box?
a.
txtBox2.Caption = txtBox1.Caption
c.
txtBox2:Caption = txtBox1:Caption
b.
txtBox2.Text = txtBox1.Text
d.
txtBox2:Text = txtBox1:Text
 

 168. 

What character is called the line-continuation character in Visual Basic?
a.
- (dash)
c.
~ (tilde)
b.
& (ampersand)
d.
_ (underscore)
 

 169. 

The value contained in a label property can be extracted and used in a calculation by accessing which property of the label control?
a.
Value
c.
Caption
b.
Text
d.
Content
 

 170. 

The Visual Basic subtraction operator can also be used as the _____ operator.
a.
field separator
c.
line-continuation
b.
unary minus
d.
decrement
 

 171. 

Which symbol below is used in Visual Basic to indicate multiplication?
a.
*
c.
^
b.
&
d.
#
 

 172. 

Which Visual Basic function can be used to return only a whole number result of a calculation by discarding the fractional portion of the answer.
a.
Val
c.
IDiv
b.
Int
d.
Fix
 

 173. 

What is the result of the following expression: lblAns.Caption = (17 \ 2^3 - 2)
a.
0
c.
.5
b.
510
d.
612.125
 

 174. 

What of the following has the highest order of operations in Visual Basic?
a.
addition/subtraction
c.
unary plus or minus
b.
multiplication/division
d.
exponentiation
 

 175. 

Which object property can be set to a value of False to make the object invisible to the user?
a.
Show
c.
Visible
b.
Display
d.
View
 

 176. 

Which statement below shows the correct way to add a comment statement to a Visual Basic program?
a.
' Add alpha to beta
c.
/ Add alpha to beta
b.
// Add alpha to beta
d.
" Add alpha to beta
 

 177. 

Comment statements in a Visual Basic program are frequently referred to as _____.
a.
sticky-notes
c.
non functional code
b.
internal documentation
d.
inline code
 

 178. 

What is the name given to errors that occur as a result of unexpected or erroneous data?
a.
aberrations
c.
exceptions
b.
events
d.
bugs
 

 179. 

Which of the following actions is most likely to cause a serious run-time error in a program?
a.
incorrectly spelled variable name
c.
truncation of a floating-point value
b.
misplaced comment statement
d.
division by zero
 

 180. 

If a run-time error occurs in a Visual Basic program, which button can you click in the error dialog box to open the Code window and see which statement caused the error?
a.
Debug
c.
List
b.
Code
d.
View
 

 181. 

What is the name commonly given to a section of code that receives control when a run-time error occurs and error trapping is turned on?
a.
exception processor
c.
error handler
b.
run-time exit
d.
error interceptor
 

 182. 

Which of the following is a valid example of a code label in a Visual Basic procedure?
a.
ErrorCheck;
c.
ErrorCheck():
b.
ErrorCheck:
d.
ErrorCheck();
 

 183. 

Which Visual Basic data type is used to contain whole numbers only?
a.
floating-point
c.
integer
b.
string
d.
real
 

 184. 

What term is used to describe a named location in memory where data can be stored and manipulated?
a.
constant
c.
property
b.
cell
d.
variable
 

 185. 

Which property will adjust the size of a control to fit its contents?
a.
AutoSize
c.
ChngSize
b.
ReSize
d.
SetSize
 

 186. 

Which of the following is the Visual Basic statement used to declare a variable in a program?
a.
Decl
c.
Dim
b.
Declare
d.
Define
 

 187. 

Which of the following is NOT a valid variable name in Visual Basic?
a.
final_cost
c.
final_cost_1
b.
final cost
d.
FinalCost
 

 188. 

Which statement below shows a valid way to define an integer variable named intAlpha?
a.
Decl intAlpha As Integer
c.
Dim Integer intAlpha
b.
Decl intAlpha(Integer)
d.
Dim intAlpha As Integer
 

 189. 

Which prefix is normally used when naming a Boolean data type variable?
a.
bln
c.
bol
b.
boo
d.
ble
 

 190. 

Which statement below shows the correct way to assign a value to a variable?
a.
intAge = Val(txtAge.Text)
c.
intAge = intMonths / 12
b.
intAge = 35
d.
all of the above
 

 191. 

What term below is used with a variable to determine which forms or procedures can access the variable?
a.
range
c.
visibility
b.
scope
d.
accessibility
 

 192. 

Which Visual Basic data type can hold almost any type of data, text or numeric?
a.
Variant
c.
Undefined
b.
Universal
d.
Open
 

 193. 

In most programming languages, data types that hold text are usually referred to as _____.
a.
blocks
c.
lines
b.
strings
d.
literals
 

 194. 

What name is given to hard coded text contained within program code?
a.
string constant
c.
string literal
b.
string parameter
d.
string operator
 

 195. 

The act of appending one string to the end of another string is called _____.
a.
concatenation
c.
extrusion
b.
string extension
d.
escalation
 

 196. 

Which of the following is NOT a Visual Basic decimal data type?
a.
Single
c.
Currency
b.
Double
d.
Long
 

 197. 

Which Visual Basic function allows you to provide custom formatting to a value before displaying it?
a.
Fix
c.
Format
b.
Convert
d.
Display
 

 198. 

Which symbol below is used with the Format function to indicate where a digit should appear, but only if there is a digit to fill the space, otherwise nothing will appear in that space.
a.
0
c.
*
b.
&
d.
#
 

 199. 

Which format function statement below will cause the value to be displayed as 045,344.200
a.
Format(45344.20, "00,000.00")
c.
Format(45344.20, "###,###.000")
b.
Format(45344.20, "000,000.000")
d.
Format(45344.20, "###,###.###")
 

 200. 

How does an object appear on a form when its Enabled property is set to False?
a.
it does not appear, it is invisible
b.
it is blackened out
c.
it appears grayed out
d.
it has a black border around it and an X through the caption or text.
 

 201. 

Which statement below shows the correct syntax for disabling a command button?
a.
cmdStart = (Enabled = False)
c.
cmdStart.Enabled:False
b.
cmdStart.Enabled.False
d.
cmdStart.Enabled = False
 

 202. 

Which property determines where the insertion point will be inserted when a text box gets the focus?
a.
CurStart
c.
SetStart
b.
SelStart
d.
InsStart
 

 203. 

The symbols =, >, >=, are all examples of Visual Basic _____ operators.
a.
logical
c.
conditional
b.
mathematical
d.
relational
 

 204. 

Which symbol below is the Visual Basic 'not equal' operator?
a.
!=
c.
~=
b.
<>
d.
=!
 

 205. 

What statement is used to mark the end of an If statement's program block?
a.
End
c.
End of If
b.
If End
d.
End If
 

 206. 

Which of the following statements shows the correct syntax for an If statement?
a.
If "expression"
c.
If (expression) Then
b.
If "expression" Then
d.
If (expression)
 

 207. 

Which flowchart symbol below is used to represent the processing of data or taking action?
a.
rectangle
c.
parallelogram
b.
diamond
d.
circle
 

 208. 

The If statement is an example of what type of structure?
a.
two-way selection structure
c.
comparison structure
b.
iteration structure
d.
one-way selection structure
 

 209. 

How are the two blocks of code for an If...Else statement terminated?
a.
End If for the If clause, End Else for the Else clause
b.
Both are terminated with a single End If following the Else clause
c.
Both are terminated with a single End Else following the Else clause
d.
Both are terminated with a single End If Else following the Else clause
 

 210. 

What Visual Basic control consists of a square box that can be checked or unchecked, and a label explaining what the box is for?
a.
option button
c.
check box
b.
picture box
d.
label box
 

 211. 

Which of the following statements shows the correct syntax for using the If statement to determine if a check box named chkBox1 is selected or not?
a.
If (chkBox1.True) Then
c.
If (chkBox1.Caption = True) Then
b.
If (chkBox1.Selected = True) Then
d.
If (chkBox1.Value = 1) Then
 

 212. 

Which of the following operators is one of the Visual Basic logical operators?
a.
And
c.
==
b.
>=
d.
!
 

 213. 

What term is used to describe the process of coding one If statement inside another If statement?
a.
coupled If statements
c.
subordinate If statements
b.
nested If statements
d.
hierarchical If statements
 

 214. 

Which Visual Basic control is similar to a check box, but it only allows the user to select one of a group of controls?
a.
option buttons
c.
cluster buttons
b.
group buttons
d.
menu buttons
 

 215. 

What Visual Basic control must be created first before option buttons can be added to a form?
a.
a button box control
c.
a frame control
b.
a group box control
d.
an association control
 

 216. 

A set of option buttons contained within a frame are called _____.
a.
an option cluster
c.
an option block
b.
an option set
d.
an option group
 

 217. 

When creating option buttons you must always:
a.
make sure the form is large enough to hold them
b.
create the frame to contain them first
c.
create a select procedure for each one
d.
all of the above
 

 218. 

What character fills an option button when it has been selected?
a.
a dot
c.
an asterisk
b.
a check mark
d.
a plus sign
 

 219. 

Which option button event procedure can be used to specify what happens when an option button is selected?
a.
Selected
c.
Click
b.
Load
d.
Filled
 

 220. 

Which event procedure is the best place to set an option button as a default selection before the form is displayed to the user?
a.
General
c.
Initialize
b.
Form Load
d.
Load
 

 221. 

Double-clicking on an open area of a form will open the Code window to the form's _____ procedure.
a.
Load
c.
General
b.
Click
d.
Focus
 

 222. 

Which keyword must be included in a Visual Basic Case statement in order to include a conditional operator in the statement?
a.
If
c.
Is
b.
When
d.
none of the above
 

 223. 

What is the code required to create a loop often called?
a.
selection structure
c.
cyclic structure
b.
repeating structure
d.
iteration structure
 

 224. 

Which statement is used to mark the end of a Do While loop?
a.
End While
c.
End Loop
b.
Loop
d.
End Do
 

 225. 

Which of the following shows the correct syntax for a Do While loop that tests a variable named intCnt for a value greater than 1?
a.
Do While:intCnt >= 1
c.
While intCnt > 1 Do
b.
Do While.intCnt > 1
d.
Do While intCnt > 1
 

 226. 

Which Visual Basic function can be used to obtain input data from the user?
a.
DataBox
c.
MsgBox
b.
InputBox
d.
IOBox
 

 227. 

How many parameters are required to be supplied to the InputBox function?
a.
1
c.
3
b.
2
d.
4
 

 228. 

What is the text supplied as the first string to the InputBox function used for?
a.
it is the text to prompt the user
b.
it is displayed in the title bar
c.
it is the default text in the text box
d.
it is the name of the procedure making the call
 

 229. 

What character is used to separate the text strings supplied to the InputBox function?
a.
periods
c.
commas
b.
colons
d.
ampersands
 

 230. 

What statement can be coded inside a loop to allow the computer to process other events while the loop is still iterating?
a.
DoOthers
c.
DoEvents
b.
DoAlso
d.
DoDuring
 

 231. 

When a loop is in an endless loop condition, what key(s) can be pressed to interrupt the program and let you see which line of code is being executed?
a.
Ctrl + Break
c.
Alt + Break
b.
Break
d.
Alt + Ctrl + Break
 

 232. 

Which statement below shows the proper syntax for the Visual Basic Print statement>
a.
Print "Show this text to user"
c.
Print("Show this text to user")
b.
Print.Caption = "Show this text to user"
d.
Print.Show "Show this text to user"
 

 233. 

Which of the following statements is used to clear text from a screen that was placed on the screen by the Print statement?
a.
Clr
c.
Clear
b.
ClrScreen
d.
Cls
 

 234. 

The Visual Basic For Next loop repeats one or more program statements _____.
a.
as long as a specified condition remains true
b.
until a specified condition becomes true
c.
a specific number of times
d.
until the user enters a terminating value
 

 235. 

The For Next loop structure is always terminated by what keyword?
a.
End For Next
c.
Loop
b.
End For
d.
Next
 

 236. 

Which of the following statements shows the correct syntax to begin a For Next loop that counts from 1 to 100, incrementing the counter by 5 each pass through the loop?
a.
For intCnt = 1 to 100 By 5
c.
For Next intCnt = 1 to 100 Step 5
b.
For intCnt = 1 to 100 Step 5
d.
For Next intCnt = 1 to 100 By 5
 

 237. 

What character can be placed at the end of a Print statement line to leave the cursor on the same line?
a.
colon
c.
underscore
b.
semicolon
d.
ampersand
 

 238. 

Many options that control how your project is compiled and how it runs can be set in which dialog box?
a.
Project Options
c.
Project Properties
b.
Project Settings
d.
Project Preferences
 

 239. 

A new form can be added to a Visual Basic project by selecting the Add Form option from the _____ menu.
a.
File
c.
Edit
b.
Tools
d.
Project
 

 240. 

To have your project begin with a splash screen being displayed first, you must specify that in the ____ dialog box.
a.
Form Options
c.
Project Properties
b.
Project Options
d.
Start Options
 

 241. 

What event procedure in a splash screen's Code window must be modified to have the correct form open when the splash screen is unloaded?
a.
KeyPress
c.
EndSplash
b.
UnloadForm
d.
UnloadMe
 



 
Check Your Work     Start Over