Chapters 1 to 5 Flashcards
Property _________ specifies how text is aligned within a Label’s boundaries.
A) Alignment
B) TextAlign
C) Align
D) Aligntext
B) TextAlign
Which of the following If…Then statements correctly displays that a student received an A on an exam if the score was 90 or above?
A) If studentgrade = 90 Then displayLabel.Text = “Student received an A”
B) If studentgrade 90 Then displayLabel.Text = “Student received an A”
C) If studentgrade >= 90 Then displayLabel.Text = “Student received an A”
D) If studentgrade == 90 Then displayLabel.Text = “Student received an A”
C) If studentgrade >= 90 Then displayLabel.Text = “Student received an A”
In an activity diagram, a rectangle with curved sides represents ___________.
A) a complete algorithm
B) a comment
C) an action
D) the termination of the application
C) an action
The ^= operator _____________.
A) squares the value of the left operand by the value of the right operand and stores the result in the left operand.
B) adds the value of the right operand to the value of the left operand and stores the result in the left operand.
C) creates a new variable and assigns the value of the right operand to that variable.
D) multiplies the value of the left operand by the value of the right and stores the result in the left operand.
A) squares the value of the left operand by the value of the right operand and stores the result in the left operand.
When a value is placed into a memory location, the value _________ the previous value in that location.
A) copies
B) adds itself to
C) replaces
D) moves
C) replaces
The If …Then statement is called a ________ statement because it selects or ignore one action (or group of actions).
A) group-selection
B) single-selection
C) double-selection
D) multiple-selection
B) single-selection
An output label should ___________.
A) be distingueshed with other labels
B) initially have an empty Text property or a default value
C) use Fixed3D for the borderStyle property
D) All the above
D) All the above
The body of a Do While….Loop statement executes _____________.
A) at least once
B) never
C) while its condition is false
D) while its condition is true
D) while its condition is true
The if…Then…Else selection statement ends with the key words __________.
A) End if Else
B) End If
C) End Else
D) Else
B) End If
The __________ statement executes until its loop-termination condition becomes True.
A) Do While—-Loop
B) Do Until….Loop
C) While…Loop
D) Loop
B) Do Until….Loop
When a value is read from memory, that value is _____________.
A) overwritten
B) Not overwritten
C) replaced with a new value
D) moved to a new memory space
B) Not overwritten
Variables that store floating Point values should be declared as an _____________.
A) Int
B) Integer
C) Long
D) Double
D) Double
The ____________ window allows you to browse solution files
A) windows Explorer
B) Solution Explorer
C) IDE
D) property editor
B) Solution Explorer
Entering a value in a TextBox causes a ____________ event.
A) TextAltered
B) ValueChanged
C) ValueEntered
D) TextChanged
D) TextChanged
A __________ is a variable that helps control the number of times that a set of statements executes.
A) repeater
B) loop
C) counter
D) control statement
C) counter
A(n) __________ loop occurs when a condition in a Do While…Loop never becomes False.
A) nested
B) undefined
C) infinite
D) finite
C) infinite
An application enters break mode when __________.
A) a breakpoint is reached
B) Debug > Start is selected
C) there is syntax error
D) there is a logical error
A) a breakpoint is reached
A(n) ________ help the user understand a control’s purpose.
A) Button
B) descriptive Label
C) TextBox
D) title bar
B) descriptive Label
The data type in a variable declaration is immediately preceded by keyword ___________.
A) IsA
B) Type
C) As
D) Dim
C) As
A ________ occurs when an executed statement does not directly follow the previously executed statement in the written application
A) transfer of control
B) transition
C) logical error
D) flow
A) transfer of control
Property __________ maintains all the values in a ListBox.
A) Items
B) All
C) ListItemValues
D) List
A) Items
The symbol ________ is not a Visual Basic operator.
A) *
B) %
C) ^
D) <>
B) %
If number is initialized with the value 15, What value will number contain after the expression number += 7 executes?
A) 7
B) 22
C) 14
D) 15
B) 22
__________ is a programming language for sharing information via hyperlinked text documents on the World Wide Web.
A) HTTP
B) HTML
C) XML
D) Java
B) HTML
A(n) ___________ represents a user action, such as clicking a Button.
A) event
B) statement
C) method header
D) application
A) event
The expression to the right of an assignment operator is evaluated ________________ the assignment occurs.
A) before
B) after
C) at the same time
D) None of the above
A) before
The Form’s ________ property specifies the text that is displayed in the Form’s title bar.
A) Title
B) Label
C) Text
D) Name
C) Text
The ______ control allos users to add and view items in a list.
A) ListItems
B) ListBox
C) TextBox
D) GroupBox
B) ListBox
The ___________ operator returns False if the left operand is larger than the right operand.
A) =
B) <
C) <=
D) All of the above
D) All of the above
Variable declarations in event handlers begin with the keyword __________.
A) Declare
B) Sub
C) Dim
D) Double
C) Dim
The _______ operator assigns the result of adding the left and right operands to the left operand.
A) +=
B) +
C) =+
D) =
A) +=
Visual Basic keywords are ___________
A) identifiers
B) reserve words
C) properties
D) names
B) reserve words
If there are errors in an application, they appear in a window known as the ___________.
A) Task List
B) Error List
C) Output
D) Local
B) Error List
Programs that translate high-level programs into machine language are called ___________.
A) compiler
B) assembler
C) linker
D) debugger
A) compiler
Parentheses added to an expression simply to make it easier to read are known as _______ parentheses.
A) necessary
B) redundent
C) embedded
D) nested
B) redundent
A(n) ______________ is a group of one or more projects that collectively form a Visual Basic program.
A) IDE
B) Solution
C) Builder
D) file
B) Solution
A label’s boderStyle property can be set to _________.
A) Fixed3D
B) Single
C) Double
D) 3D
A) Fixed3D
The three types of control structures are sequence, selection, and __________.
A) redo
B) repeate
C) repetition
D) looping
C) repetition
A __________ is a control in which the user can enter data from a keyboard.
A) Button
B) Label
C) PictureBox
D) TextBox
D) TextBox
Item’s method __________ adds an item to a listBox.
A) Include
B) Add
C) Append
D) Plus
B) Add
A(n) ________ contains code that performa specific task.
A) variable
B) method
C) operand
D) constant
B) method
A Button’s text should use _________ capitalization
A) book-title
B) complete
C) no
D) sentence-style
A) book-title
Method String.Format is used to _____________.
A) create constants
B) format Visual Basic statements
C) control how text is formatted
D) display the formatted text in a text box
C) control how text is formatted
If …. Then…..Else is a ____________ selection statement.
A) single
B) double
C) nested
D) triple
B) double
An example of a white space character is a ________ character.
A) Tab
B) Space
C) newline
D) All of the above
D) All of the above
Item’s method __________ deletes all the values in a ListBox.
A) Remove
B) Del
C) Delete
D) Clear
D) Clear
The ______ control allos users to add and view items in a list.
A) ListItems
B) ListBox
C) TextBox
D) GroupBox
B) ListBox
You can use the ______________ method to terminate a running application.
Question 47 options:
A) Me.Close()
B) Me.Done()
C) Me,Clear()
D) Me.Stop()
A) Me.Close()
When a form has been modified since the last time it was saved, what appears on its tab in the designer window?
Question 48 options:
A) an ampersand (&)
B) an asterisk (*)
C) a percentage (%)
D) a plus sign (+)
B) an asterisk (*)
Which symbol is used in a flowchart to represent a calculation task?
Question 50 options:
A) circle
B) oval
C) parallelogram
D) rectangle
D) rectangle
What value is assigned to the lblNum control when the lblNum.Text = 71 \ 25 instruction is processed by the computer?
Question 51 options:
A) 2
B) 3
C) 21
D) 25
A) 2
What value is assigned to the lblMod control when the lblMod.Text = 76 Mod 3 instruction is processed by computer?
Question 52 options:
A) 2
B) 3
C) 1
D) 25
C) 1
The ______________ event occurs when the contents of a text box have changed.
Question 53 options:
A) Changed
B) TextChanged
C) TextChange
D) Change
B) TextChanged
If intNumber
D) 180
Logical groupings of programming methods to organize a program
Modules
Programming language statements in a program before they are compiled into the code that is actually used by the computer
Source Code
One or more projects grouped together to form a program
Solution
Words which are reversed by Visual Basic which cannot be used as variable names as they are definition used by VB
Keyword
Used to allow the user to view source files
Solution Explorer
GUI
Graphical User Interface
Used to declare a variable which will be used in the program. Identified by the keyword Dim
Declaration
Assist in improving the readability of the code
Comment
IDE
Integrated Development Environment
VB file
File which ends in .vb and contains the programmer-readable code