Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
74 Cards in this Set
- Front
- Back
Which of the following is NOT an example of an event in VB?
|
Drag a control onto a form from the tool box.
|
|
The process of degugging it to ____________.
|
Ensure that the outputs are correct and remove any syntax or run time errors.
|
|
What is the code to close a form?
|
Me.Close()
|
|
GUI applications __________.
|
are more complex for programmers to write.
|
|
Which of the following is NOT a feature of the GUI?
|
The use of a GUI makes programming much easier.
|
|
One feature of Event-Driven Programming is ________.
|
an action takes place when a control such a s abutton is pushed.
|
|
In VB we work with objects, which have __________.
|
properties, methodss, and events
|
|
What is the purpose of the Toolbox?
|
To select controls and place on an application form.
|
|
How would you get the Design window to display if it is not visible in your project?
|
Click View on the menu bar, and then on the View menu click Designer.
|
|
A VB keyword ________________.
|
has a special purpose and cannot be used as a variable or other identifier.
|
|
Finding and fixing programing errors is called ___________.
|
debugging
|
|
If you want to display text which cacnnot be modified by the user, use the __________________
|
Label control
|
|
Application software are programs that ___________________.
|
perform general user needs.
|
|
A ToolBar ___________________.
|
can be used as a shortcut for executing commands found in the menu.
|
|
What is the code used to display the words "Visual Basic" in a label named lblTitle?
|
lblTitle.Text = "Visual Basic"
|
|
Which is true about txtName.Text?
|
The property is Text.
|
|
Flowcharts and pseudo code are ________________.
|
used to outline the solution to a problem
|
|
When creating a VB applicaton, you will initially ___________.
|
change control properties
|
|
An object in Visual Basic _______________.
|
is a reusable self contained unit.
|
|
You want to find the perimeter of a rectangular room whose sides are represented by dblLength and dblWidth. The statement to find the perimeter of this room is ______________.
|
dblPerimeter = 2 * dblLength + 2 * dblWidth
|
|
All of the following are major hardware components of a typical computer system except _________________.
|
Operating System
|
|
The purpose of an algorithm is to _____________.
|
describe problem solution
|
|
Which is true of an Identifier?
|
It is a programmer defined name.
It is not part of the VB programming language. (Both A and B are correct) |
|
Event procedures are also known as ____________.
|
event handlers
|
|
Assume you have a Button control named btnDisplayList. Which is the correct name for an event procedure that will be executed when the user clicks on the control?
|
btnDisplayList_Click
|
|
In the properties window, a fiew of the properties, including the Name property are enclosed in ___________ to make them appear at the top of the alphabetical list.
|
parenthesis
|
|
This property is used to automatically adjust an image to fit the size of the PictureBox control it is displayed in.
|
Size Mode
|
|
Intellisense _____________
|
provides some automatic code completion while developing a program
|
|
Choose the correct assignment statement for a Label control named lblTitle that would alignn the control's text with the middle and center of the control's bounding box?
|
lblTitle.TextAlign = _ ContentAlignment.MiddleCenter
|
|
A ________ is a section of code that may be kidden from view, or collapsed.
|
code region
|
|
What is the resulting value after the following function call is executed;
FormatNumber(73.394, 1)? |
73.4
|
|
When you assign a value of one data type to a variable of another data type, Visual Basic .NET attempts __________.
|
Implicit conversion
|
|
What is the result after evaluating the following expression: 24 Mod 9?
|
6
|
|
What is the default value of the Date Data Type?
|
00:00:00, Date unspecified
|
|
What is the default value of the Boolean data type?
|
False
|
|
In a program, you clear a text box with code _____________.
|
by assigning a blank to the text property
|
|
The following code will copy the text from a TextBox named txtInput into a Label called lblDisplay.
|
lblDisplay.Text = txtInput.Text
|
|
The Dim statement for a class-level variable must be outside any procedure, and between the _________ statement and the _________ statement.
|
Public Class, End Class
|
|
The first character in a string has an index of _________.
|
0
|
|
To remove the spaces at the end of a string called strAddress and display the result in label lblAddress, you would use which of the following statements?
|
lblAddress.Text = strAddress.TrimEnd
|
|
Which of the following statements will display a message box with the text "line 1" on one line, and the text "line2" on another line?
|
Messagebox.Show("line 1" & ControlChars.Crlf & "line 2")
|
|
This statement tests the value of an expression one and then uses that value to determine the result.
|
Select Case... Case Else
|
|
A control's __________ event is triggered just before the focus shifts to another control whos CausesValidation property is set to true.
|
Validated
|
|
A counter is a _______ that can be incremented or decremented each time a loop runs.
|
variable
|
|
What's wrong with the following code?
for intIndex = 5 to 1 ListBox.Items.Add (intIndex) Next |
You need to specify a negative step size in order to execute the loop.
|
|
This provides a simple way to gather input without placing a text box on a form.
|
Input Boxes
|
|
Declaration statements ________________.
|
give variables and constants names, and specify the type of data they will hold
|
|
You can break up long lines of code, so they can fit in the code window by _____________.
|
typing a space, followed by an underscore and then hitting the enter key.
|
|
The value returned by passing "#45.25" to the CSng function is __________.
|
No value is returned. The program stops with a runtime error.
|
|
You can perform all of the following actions with variables except _____________.
|
convert a variable to a constant
|
|
Which is NOT true of a class-level variable?
|
can be used outside the form
|
|
Which of the following is true regarding the use of Class-Level Variables?
|
Class-level variables can be accessed by any procedure called on the form.
|
|
Which is the correct general format for the method call that displays a message box?
|
messagebox.show (Message, Caption, Buttons, Icon, DefaultButton)
|
|
This keyword is required to use relationall operators in a Case statement.
|
Is
|
|
The first item in na list box has an idex of ________.
|
0
|
|
When calling a Sub Procedure, the arguments and the corresponding parameters must agree in all of the following ways except
|
The names of the arguments and parameters must correspond.
|
|
In break mode, press ________ will activate the Step Into command.
|
F8
|
|
When a Sub provedure has finished executing ________.
|
the application brances back to the procedure call, and resumes executing at the next line.
|
|
Order the following arithmetic operators from highest precedence to lowest precedence.
|
Exponentiation (the ^ operator, Multiplication and division, Integer division (the \ operator, Modulus (the Mod operator), Addition and Subtraction
|
|
These two properties can be used in code to automatically select the text in a text box.
|
SelectionStart, SelectionLength
|
|
What is the purpose of the ListBox.Add method?
|
The method will alwyas put the item at the end of the list.
|
|
What does it mean to pass an argument to a provedure by value?
|
That only a copy of the argument is passed to the provedure.
|
|
Setting this property to True will put the items in the list into alphabetical order
|
Organized
|
|
What is an argument?
|
A value passed to a procedure or function when it is called.
|
|
When an arguement is passed to a provedure this way, ,the provedure has access to the original argument and may make changes to it.
|
ByRef
|
|
The ToolTip is a _________ that allows the user to create a small box that displays when the user places the mouse over the control.
|
control
|
|
If a procedure is called more than once in a program, the values stored in the proedure's local variables will persist only if declared with the _________ keyword.
|
Static
|
|
Which is the correct general format to declare a variable that remains the same between procedure calls?
|
Static cariableName as DataType
|
|
What is the correct way to declare the variable intNumCalls at the top of a Function that would keep track of the number of times that function has been called?
|
Static intNumCalls as Integer
|
|
A ___________ is a special variable in a Sub or Function heading that receibes an argument's value/address from a calling procedure.
|
parameter
|
|
The purpose of a complier is to ____________.
|
convert a program from a programming language to machine code.
|
|
Compile time errors ____________.
|
are errors such as misspelled key words or incorrect use of operators.
|
|
The following is true of the CInt function.
|
Floating-point numbers that are passed to CInt completely lose their fractional part.
|
|
The _______ control(s) can have the focus.
|
TextBox and Button
|