Visual Basic Flashcards

Terms Definitions
A variable's ________________ indicates which procedures can use a variable.
Scope
In order of operations, logical operators are processed before the mathematical and conditional operators
False
What method returns the upper-case equavilent of a string?
ToUpper
a forms ________ procedure executes each time a form loads into memory
load
The InputBox function's prompt argument should be entered using _____.
a.  book title capitalization
b.  sentence capitalization 
b.  sentence capitalization
In Visual Basic, flowcharts can be very useful for organizing the flow of execution within an event procedure?
True
What is information a program gathers from outside world
Input
Which statement resizes the intNumbers array to 20 elements?
ReDim intNumbers(19)
What property causes the distance between a controls edge and the forms edge to remain constant, even when the form is resized?
Anchor property
What is the result after evaluating the following expression...14 Mod 5?
4
Display a message box with what method?
MessageBox.Show
when two operators share an operand, the operator with the highest ________ executes first
precedence
a(n) ________ is information that is being passed to a function
Argument
________ is a cross between human language and a programming language
pseudocode
A _____ variable is a procedure-level variable that retains its value after the procedure in which it is declared ends.
 
a.  consistent
b.  constant
c.  static
d.  stationary
e.  term 
c.  static
Define the 3 levels of scope for variables
LocalFormGlobal
This allows the user to select a string from a list or type in their own
ListBox
What property of a label determines if label can be seen by user t run time?
Visible
the ________ character is actually two characters: a space followed by an underscore
line continuation
Briefly describe what object-oriented programming means.
Object-oriented programming is centered on creating objects. An object is a programming element that contains data (attributes) and actions. In Visual Basic, an object's attributes are called properties. The actions that an object performs are known as methods. The object is, conceptually, a self-contained unit consisting of data (properties) and actions (methods).
You use the ______ to place controls on an applications form. it contains buttons for the commonly used visual basic controls
toolbox
The InputBox function's title argument should be entered using _____.
a.  book title capitalization
b.  sentence capitalization 
a.  book title capitalization
Chapter 3
   22.) Integer.Parse is used to _____. -convert data in a textbox is a numeric value with no decimal places-properly aligned deimal positions in a numeric value-add a dollar sign ($) to improve the way the output looks-convert data in a tex
Chapter 3
   22.) Integer.Parse is used to _____.
 +convert data in a textbox is a numeric value with no decimal places-properly aligned deimal positions in a numeric value-add a dollar sign ($) to improve the way the output looks-convert data in a textbox to a numeric value with 2 decimal places

 5. Visual Basic provides AutoCorrect, which is a handy way to fix _______. 
A) all types of errorsB) syntax errors C) arithmetic errors D) logic errors

 5. Visual Basic provides AutoCorrect, which is a handy way to fix _______. 

B)syntax errors
What event is the most common event associated with a Button control
click event
What arrays are 2 or more arrays that hold related data?
Parallel
a(n) ________ is a line of code that causes a running application to pause execution and enter break mode
breakpoint
a(n) ________ is a group of files that make up a software application
project
The InputBox function displays a dialog box containing which of the following?
 
a.  cancel button
b.  input area
c.  OK button
d.  prompt
e.  All of the above 
E.  All of the above
You would most likely use this to calculate column sums for a 2D array.
Nested For Loops
an access key is a key that you press in combination with the ________ key to access a control such as a button quickly
alt
Assume you have a procedure named GetNumber.  Which of the following instructions indicates that the procedure should be processed when the user clicks either the uiNum1TextBox or the uiNum2TextBox?
a.  Private Sub GetNumber(ByVal sender As Object, ByVa
a.  Private Sub GetNumber(ByVal sender As Object, ByVal e As System.EventArgs) Handles uiNum1TextBox.Click, uiNum2TextBox.Click
Chapter 2
 19. Line and Shape controls _______.
A) are included in Microsoft PowerPacks which are installed in the toolbox by default B) include the LineShape, OvalShape, and RectangleShape tools C) cannot be used on forms with group boxes D) are insta
Chapter 2
 19. Line and Shape controls _______.
 
B) -----include the LineShape, OvalShape, and RectangleShape tools
Logic: (Page 94) Visual Basic Power Packs 3.0 include controls for lien shape, oval shape, rectangle shape, etc

 
Chapter 2
 
 2. Assume that you are designing a form and it will be necessary for the user to type in his name. You should use a _____________ for inputting the user's name. A) CheckBox  B) Label  C) Button  D) TextBox
Chapter 2
 
 2. Assume that you are designing a form and it will be necessary for the user to type in his name. You should use a _____________ for inputting the user's name. D) ---TextBox
Chapter 2
 34. Setting the TabIndex of a control to 0 (zero) will _______.
A) cause the control to appear to the right of the other controls B) make the control Visible C) set the focus on this control when the program begins running D) align the contr
Chapter 2
 34. Setting the TabIndex of a control to 0 (zero) will _______.
A) cause the control to appear to the right of the other controls B) make the control Visible C) -----set the focus on this control when the program begins running noD) align the control to the left of the other controls
Logic: An object with a tab index of zero will have the focus set on that object when the program starts running by default.
 
Chapter 2
    29. Use a blank space followed by the ______ symbol for continuing long lines of code to the next line.
 A) & (ampersand)  B) @ (at)  C) _ (underscore)  D) ' (apostrophe)
Chapter 2
    29. Use a blank space followed by the ______ symbol for continuing long lines of code to the next line.
 A) & (ampersand)  B) @ (at)  ---C) _ (underscore)  D) ' (apostrophe)
Chapter 3
 26.)Using the order of precedence and the formula below, what is AnswerInteger if?:NumberOneInteger = 2, NumberTwoInteger = 12, NumberThreeInteger = 20, and NumberFourInteger =6AnswerInteger = NumberOneInteger * (NumberTwoInteger + NumberThre
Chapter 3
 26.)Using the order of precedence and the formula below, what is AnswerInteger if?:NumberOneInteger = 2, NumberTwoInteger = 12, NumberThreeInteger = 20, and NumberFourInteger =6AnswerInteger = NumberOneInteger * (NumberTwoInteger + NumberThreeInteger) – NumberFourInteger / NumberOneInteger
 Multiple choice options-19-41+61-None of these
Chapter 3
32.)Which of the following is the correct code that will display the value in TotalSalesDecimal with a percent sign and 2 decimals?
 Multiple choice options-TotalSalesDecimal(2)-TotalSalesPercent(2)-TotalSalesDecimal.ToString(“P2”)-TotalS
Chapter 3
32.)Which of the following is the correct code that will display the value in TotalSalesDecimal with a percent sign and 2 decimals?
 Multiple choice options-TotalSalesDecimal(2)-TotalSalesPercent(2)+TotalSalesDecimal.ToString(“P2”)-TotalSalesDecimal.ToString(%2)

  
What is an argument?
A value passed to a procedure or function when it is called?
Describe the difference between the label control's text property and the textbox control's text property
The Label control's Text property is for displaying information only--the user cannot directly alter its contents. The TextBox control's Text property, however, is for input purposes. The user can alter it by typing characters into the text box control. Whatever the user types into the text box is stored in its Text property.
Chapter 2
  18. If a radio button is currently selected, its _______ property will be True.
A) Checked B) Selected noC) Enabled D) Visible
Chapter 2
  18. If a radio button is currently selected, its _______ property will be True.
A) -----Checked B) Selected noC) Enabled D) Visible
Chapter 2
    6. When you want to change several properties of a single control, you can use _______.
A) With and End With statements B) the SelectAll property noC) For and Next statements D) Property and End Property statements
Chapter 2
    6. When you want to change several properties of a single control, you can use _______.
A) -----With and End With statements B) the SelectAll property noC) For and Next statements D) Property and End Property statements
Logic: Using the with block you can change multiple properties of one object (Page 92)Syntax:With objectName    'StatmentsEnd WithExample:With TitleTextBox    .visible = true    .ForeColor = Color.White    .Focus()End With

 8. A project in Visual Basic contains _______.
 A) all of these  B) code  C) form(s)  D) controls

 8. A project in Visual Basic contains _______.
 A) all of these 
The CDec function attempts to convert the string to a Decimal value. If an invalid character is found in the string that prevents the conversion from taking place, the function throws an exception.
Describe three ways to set a breakpoint in an application's code
What is the purpose of the toolbox?
to select controls and place them on an application form
Chapter 2
  8. If you would like to change the color of text, you must change the _____________ property.
 A) Background  B) Appearance  C) BackColor  D) ForeColor
Chapter 2
  8. If you would like to change the color of text, you must change the _____________ property.
 D)--- ForeColor
When an application is running and a form is displayed, one of the form's controls always has the focus. The control that has the focus is the one that receives the user's keyboard input or mouse clicks.
write a statement that sets the focus to the txtPassword control

 6. Use the code, _______, to end a program.
A) Me.CloseB) Me.Exit C) Me.Stop D) Me.End

 6. Use the code, _______, to end a program.
 A) ---Me.Close
Logic: logic errors and arithmetic errors require real intelligence fix, also the computer doesn’t know what your intent is when writing statements, the computer can’t read your mind. Visual Basic code is all about statements being in the correct syntax, so it is natural that the auto correct feature will detect errors in inputted syntax.
You assign an access key to a button through its Text property. For example, assume an application has a button named btnExit. You wish to assign the access key Alt+X to the button, so the user may trigger the button's Click event by pressing Alt+X on the
How does assigning an access key to a button change the button's appearance?
/ 49
Term:
Definition:
Definition:

Leave a Comment ({[ getComments().length ]})

Comments ({[ getComments().length ]})

{[comment.username]}

{[ comment.comment ]}

View All {[ getComments().length ]} Comments
Ask a homework question - tutors are online