Visual Basic 5 Flashcards

Terms Definitions
Because Visual basic is an event-driven enviroment, flowcharts are generally used to chart an entire program?
False
Multiplication is represented by an asterisk (*).
True
What property of PictureBox control determines the Picture?
Image
the ________ format string, when passed to the ToString method, produces a number in Currency format
"c"
Which of the following intrinsic constants advances the insertion point to the next line?
 
A.  Advance
b.  ControlChars.Advance
c.  ControlChars.NewLine
d.  ControlChars.NextLine
e.  None of the above 
C.  ControlChars.NewLine
The If...Else statement allows you to choose between two paths?
True
Setting the SelLength property to the length of the text in the textbox causes all of the characters in the textbox to be highlighted.
True
A named block of statements that executes and returns a value
Function
This keyword is required to use relational operators (eg
Is
Programs and data the computer is currently using are stored in where
RAM
What property gives a sunken 3D outline around the border
BorderStyle
the ________ control allows you to capture input the user has typed on the keyboard
textbox
__________ is the only language computers really process
machine language
Module
An independent piece of software which forms part of one or more larger programs.
The Double data type is used for decimal values with more than 38 digits.
True
What is the code to close a form?
Me.Close()
What value is returned by the IndexOf method if the search string is not found?
-1
What control adds a property to other controls that allows the user to create a small box that displays help when the user places the mouse over the control.
ToolTip
Named block of code that performs a specific task and does not return a value
Procedure
________ means that one string is appended to another
string concatenation
a(n) __________ is a set of well defined steps for performing a task or solving a problem
algorithm
words or names defined by the programmer are called _________
programmer-defined names
Variable
A quantity or function that may assume any given value or set of values.
Chapter 3
 

 29.) The Visual Basic statement that requires all variables to be declared is _____.
 Multiple choice options-Dim-Otion Strict On //Note option strict on-Option Explicit-Declarations
Logic: (page 657, glossary)Option Explicit: Setting
Chapter 3
 

 29.) The Visual Basic statement that requires all variables to be declared is _____.
 Multiple choice options-Dimno-Otion Strict On //Note option strict on+Option Explicit-Declarations
Logic: (page 657, glossary)Option Explicit: Setting this option on forces variables and objects to be declared before they can be used.
 
What symbol is used to make a concatenation?
& (ampersand)
you can modify the tab order by changing a control's ________ property
tab index
The job of the ____ is to fetch instructions, carry out the operations commanded by the instructions, and produce some outcome or resultant information.
CPU
Which of the following statements declares a procedure-level variable that retains its value after the procedure in which it is declared ends?
 
a.  Const counter As Integer
b.  Dim counter As Constant
c.  Dim counter As Integer
d.  Static counter As
d.  Static counter As Integer
The rules related to the order in which mathematical operations are performed is called the order of integers.
Rules of Operation
if you do not want a control to receive the focus when the user presses the tab key, set its ________ property to false
tab stop
Assume the region1 variable contains the string "North" and the region2 variable contains the string "West".  Which of the following will display the string "NorthWest" (one word) in the uiRegionLabel control?
 
a.  Me.uiRegionLabel.Text= region1 & reg
a.  Me.uiRegionLabel.Text = region1 & region2
Chapter 2
 20. Which of the following objects is a container? 
 A) GroupBox  B) RichTextBox  C) RadioButton  D) MaskedTextBox
Chapter 2
 20. Which of the following objects is a container? 
 A)--- GroupBox  B) RichTextBox  C) RadioButton  D) MaskedTextBox
Chapter 3
 14.) Which of the following is a valid statement that can be used to declare a local variable that will store fractions?  
 Multiple choice options-Dim IndexFractions as fraction-Dim IndexString as string-Dim IndexDecimal as decimal-Dim
Chapter 3
 14.) Which of the following is a valid statement that can be used to declare a local variable that will store fractions?  
 Multiple choice options-Dim IndexFractions as fraction-Dim IndexString as string+Dim IndexDecimal as decimal-Dim IndexInteger as Integer

  
What is true of CInt function?
Floating-point numbers that are passed to CInt are roundto the nearest whole number
The declaration of an integer variable named intLength with an initial value of 12 is...
Dim intLength As Integer = 12

 13. Where does the Text property for a form appear?
 A) In the form's title bar  B) In the lower left corner of the form  C) In the center of the form  D) In the Toolbox

 13. Where does the Text property for a form appear?
 A) In the form's title bar 
When the procedure that it was declared in ends.
Briefly describe how the CDec function converts a string argument to a number
Chapter 2
9. If you want to display text that cannot be modified by the user, use the _______.
A) TextBox control noB) MaskedTextBox control C) Label control D) Caption control
Chapter 2
  9. If you want to display text that cannot be modified by the user, use the _______.
A) TextBox control noB) MaskedTextBox control C) -----Label control D) Caption control
Logic: Labels are designed to output text, but they are not designed to take user input.
 24. While you are creating the user interface, you are in _______.
 A) stop time  B) run time  C) design time  D) debug time
 24. While you are creating the user interface, you are in _______.
 A) stop time  B) run time  C) ---design time  D) debug time
The TabIndex property contains a numeric value, which indicates the control's position in the tab order. The control with a TabIndex of 0 will be the first control in the tab order. The next control in the tab order will be the one who's TabIndex is 1. Th
How do you assign an access key to a button?
The purpose of an algorithm is to what?
list a set of steps to solve a problem
  3. If a line of code is not considered "executable", it must be _______.
A) an Assignment statementB) a Close statementC) a Remark statement D) an event procedure
  3. If a line of code is not considered "executable", it must be _______.
C) a Remark statement 
Logic:A remark or comment statement is programmer notes on code. Everything else is executable code
/ 42
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