Chapters 1 to 5 Flashcards
(161 cards)
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