Chapter 4, Multiple Choice

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

The ____________ operator is the logical NOT operator, which is a unary operator that takes a Boolean expression as its operand and reverses its logical value.

!

The ____________ operator is the logical AND operator, which takes two Boolean expressions as operands and creates a compound Boolean expression that is true only when both subexpressions are true.

&&

The expression (A >= 1) XX (A <= 10) will determine if the value in A is inside a range, if "XX" is replaced by which logical operator?

&&

If no item is selected in a ListBox, what value is in the SelectedIndex property?

-1

You can use the ____________ operator to compare two strings.

==

A ____________ is an expression that can be evaluated as either true or false.

Boolean expression

When you want to create a check box on a form, you use the ____________, which is found in the Common Controls section of the Toolbox.

CheckBox control

When a RadioButton or a CheckBox control's Checked property changes, a ____________ happens for that control.

CheckChanged event

RadioButton controls have a ____________ property that determines whether the control is selected or deselected.

Checked

Once you create a ListBox control, you add items you wish to display to its ____________.

Items Property

In Visual C#, you use the ____________ to create a list box on an application's form.

ListBox control

When you want to create a group of radio buttons on a form, you use the ____________, which is found in the Common Controls section of the Toolbox.

RadioButton control

When the user selects an item in a ListBox, the item's index is stored in the Listbox's ____________ property.

SelectedIndex

When the user selects an item in a ListBox, the item is stored in the ListBox's ____________ property.

SelectedItem

The ____________ method can be used to determine whether one string is greater than or less than another string.

String.Compare

The ____________ method can determine whether a string contains a value that can be converted to a specific data type before it is converted to that data type.

TryParse

Which one of the following expressions determines if the value of the balance variable is equal to zero?

balance == 0

The C# language provides the ____________ data type that you can use to create variables that hold true or false values.

bool

A ____________ appears as a small box with some accompanying text.

check box

An action that is ____________ occurs only when a certain condition is true.

conditionally executed

A(n) ____________ is a logical design that controls the order in which a set of statements execute.

control structure

A string can be converted to a decimal with the ____________ method.

decimal.TryParse

A(n) ____________ can execute a set of statements only under certain circumstances.

decision structure

To convert a string to a double, use the ____________ method.

double.TryParse

The ____________ has two possible paths of execution - one path is taken if the Boolean expression is true, and the other path is taken if the Boolean expression is false.

dual-alternative decision structure

A(n) ____________ is a variable that often signals the value of a Boolean condition.

flag

A(n) ____________ statement has two parts: an if clause and an else clause.

if-else

C# provides a special version of the decision structure known as the ____________, which simplifies the logic for testing a series of conditions.

if-else-if statement

Each item in a ListBox has a(n) ____________, which is an integer that identifies the item's position in the ListBox.

index

The process of checking input for errors before it is processed is called ____________.

input validation

The ____________ method can be used to convert a string to an integer.

int.TryParse

Which one of the following expressions determines whether the value of the length variable is greater than or equal to the value of the width variable?

length >= width

The C# language provides a set of operators known as ____________, which you can use to create complex Boolean expressions.

logical operators

____________ works by automatically deselecting any other items in the same group when a single item is selected.

mutually exclusive selection

____________ are decision structures that appear inside other decision structures.

nested decision structures

The ____________ keyword is required when specifying a variable as an output argument.

out

A(n) ____________ is a variable that is passed as an argument to a method, and when the method is finished, a value is stored in the variable.

output variable

____________ are useful when you want the user to select one choice from several possible choices.

radio buttons

A(n) ____________ compares the values of two expressions.

relational operator

A(n) ____________ is a set of statements that execute in the order that they appear.

sequence structure

Both the && and || operators perform ____________, in which CPU time is saved by not checking the expression on the right side of the operator depending on the value of the expression on the left side of the operator.

short-circuit evaluation

A(n) ____________ decision structure provides only one alternative path of execution.

single-alternative

The ____________ is a multiple-alternative decision structure, which allows you to test the value of a variable or an expression and then use that value to determine which statement or set of statements to execute.

switch statement

The ____________ operator is the logical OR operator, which takes two Boolean expressions as operands and creates a compound Boolean expression that is true when either of the subexpressions is true.

||

The expression (A < 1) XX (A > 10) will determine if the value in A is outside a range, if "XX" is replaced by which logical operator?

||


Set pelajaran terkait

MAN 4701 Study Plan Chapters 9, 11, 14

View Set

The Internet and the World Wide Web ( webtech )

View Set

Chapter 6 Cardiovascular system;blood

View Set