EGR 1400 COMPREHENSIVE QUESTIONS AND
ANSWERS SURE A+
✔✔ control structure - ✔✔A logical design that controls the order in which statements
execute.
✔✔sequence structure - ✔✔A set of statements that execute in the order that they
appear.
✔✔decision structure - ✔✔Execute statements only under certain circumstances.
✔✔if-else - ✔✔Will execute one block of statement if its Boolean expression is true or
another block if its Boolean expression is false.
✔✔AND - ✔✔&&
✔✔OR - ✔✔||
✔✔NOT - ✔✔!
✔✔AND operator - ✔✔Both subexpression must be true for the compound expression
to be true.
✔✔OR operator - ✔✔One or both subexpression must be true for the compound
expression to be true.
✔✔NOT operator - ✔✔It negates (reverses) the value to its opposite one.
✔✔< - ✔✔Less than
✔✔> - ✔✔Greater than
, ✔✔>= - ✔✔Greater than or equal to
✔✔<= - ✔✔Less than or equal to
✔✔== - ✔✔equal to
✔✔!= - ✔✔not equal to
✔✔flag - ✔✔A variable that signals when some condition exists in the program
✔✔String.Compare - ✔✔Compares two strings
✔✔TryParse - ✔✔Can prevent exceptions caused by users entering invalid data, but it
does not check the integrity of the data.
✔✔out - ✔✔Required in TryParse command because it specifies that the targetVariable
is an output variable
✔✔input validation - ✔✔The process of inspecting data that has been entered into a
program to make sure it is valid before it is used.
✔✔radio buttons - ✔✔Allows users to select one choice from several possible choices.
(Clicking on a radio button, the program automatically deselects any others. This is
known as mutually exclusive selection.)
✔✔check boxes - ✔✔Allows users to select multiple options
✔✔switch - ✔✔Lets the value of a variable or an expression determine which path of
execution the program will take.
✔✔testExpression - ✔✔A variable or an expression that given an integer, string, or bool
value. Yet, it cannot be a floating-point or decimal value.
✔✔list box - ✔✔Displays a list of items and allow the user to select an item from the list.
✔✔SelectedItem - ✔✔Gets or sets the currently selected item in the ListBox. When the
user selects an item, the item is stored in this property.
✔✔SelectedIndex - ✔✔Gets or sets the zero-based index of the currently selected item
in a ListBox.
✔✔Items.Add - ✔✔Allows you to add an item to the ListBox control.
✔✔Items.Clear - ✔✔Can erase all the items in the Items property.
ANSWERS SURE A+
✔✔ control structure - ✔✔A logical design that controls the order in which statements
execute.
✔✔sequence structure - ✔✔A set of statements that execute in the order that they
appear.
✔✔decision structure - ✔✔Execute statements only under certain circumstances.
✔✔if-else - ✔✔Will execute one block of statement if its Boolean expression is true or
another block if its Boolean expression is false.
✔✔AND - ✔✔&&
✔✔OR - ✔✔||
✔✔NOT - ✔✔!
✔✔AND operator - ✔✔Both subexpression must be true for the compound expression
to be true.
✔✔OR operator - ✔✔One or both subexpression must be true for the compound
expression to be true.
✔✔NOT operator - ✔✔It negates (reverses) the value to its opposite one.
✔✔< - ✔✔Less than
✔✔> - ✔✔Greater than
, ✔✔>= - ✔✔Greater than or equal to
✔✔<= - ✔✔Less than or equal to
✔✔== - ✔✔equal to
✔✔!= - ✔✔not equal to
✔✔flag - ✔✔A variable that signals when some condition exists in the program
✔✔String.Compare - ✔✔Compares two strings
✔✔TryParse - ✔✔Can prevent exceptions caused by users entering invalid data, but it
does not check the integrity of the data.
✔✔out - ✔✔Required in TryParse command because it specifies that the targetVariable
is an output variable
✔✔input validation - ✔✔The process of inspecting data that has been entered into a
program to make sure it is valid before it is used.
✔✔radio buttons - ✔✔Allows users to select one choice from several possible choices.
(Clicking on a radio button, the program automatically deselects any others. This is
known as mutually exclusive selection.)
✔✔check boxes - ✔✔Allows users to select multiple options
✔✔switch - ✔✔Lets the value of a variable or an expression determine which path of
execution the program will take.
✔✔testExpression - ✔✔A variable or an expression that given an integer, string, or bool
value. Yet, it cannot be a floating-point or decimal value.
✔✔list box - ✔✔Displays a list of items and allow the user to select an item from the list.
✔✔SelectedItem - ✔✔Gets or sets the currently selected item in the ListBox. When the
user selects an item, the item is stored in this property.
✔✔SelectedIndex - ✔✔Gets or sets the zero-based index of the currently selected item
in a ListBox.
✔✔Items.Add - ✔✔Allows you to add an item to the ListBox control.
✔✔Items.Clear - ✔✔Can erase all the items in the Items property.