Exam 4: Making Decisions
Exam 1: Introduction to Computers and Programming161 Questions
Exam 2: Introduction to Visual C131 Questions
Exam 3: Processing Data174 Questions
Exam 4: Making Decisions77 Questions
Exam 5: Loops, Files, and Random Numbers109 Questions
Exam 6: Modularizing Your Code With Methods61 Questions
Exam 7: Arrays and Lists99 Questions
Exam 8: More About Processing Data87 Questions
Exam 9: Classes and Multiform Projects89 Questions
Exam 10: Inheritance and Polymorphism37 Questions
Exam 11: Databases69 Questions
Select questions type
In C#, you use the if statement to write a single-alternative decision structure.
Free
(True/False)
4.9/5
(77)
Correct Answer:
True
If the expression on the left side of the || operator is true, the expression on the right side is not checked.
Free
(True/False)
4.8/5
(74)
Correct Answer:
True
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.
Free
(Multiple Choice)
4.8/5
(91)
Correct Answer:
B
____________ are useful when you want the user to select one choice from several possible choices.
(Multiple Choice)
4.9/5
(77)
The sequence structure is heavily used in programming because it can handle every type of task.
(True/False)
4.9/5
(86)
A ____________ is an expression that can be evaluated as either.
(Multiple Choice)
4.7/5
(83)
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.
(Multiple Choice)
4.9/5
(69)
When the user selects an item in a ListBox, the item's index is stored in the Listbox's ____________ property.
(Multiple Choice)
4.9/5
(80)
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.
(Multiple Choice)
4.8/5
(69)
A(n) ____________ can execute a set of statements only under certain circumstances.
(Multiple Choice)
4.9/5
(76)
To create a CheckChanged event handle for a RadioButton or a CHeckBox, simply double-click the control in the Designer.
(True/False)
4.9/5
(65)
If no item is selected in the ListBox, the SelectedIndex property is set to what value?
(Multiple Choice)
4.8/5
(73)
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?
(Multiple Choice)
4.8/5
(69)
You should use try-catch statements primarily for those exceptions that are beyond your control.
(True/False)
4.8/5
(78)
All it takes for an && expression to be true is for one side of the && operator to be true.
(True/False)
4.9/5
(81)
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.
(Multiple Choice)
4.8/5
(78)
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.
(Multiple Choice)
4.8/5
(92)
A long series of nested if-else statements is usually easier to follow than the logic of an if-else-if statement.
(True/False)
4.9/5
(81)
The ____________ method can be used to convert a string to an int.
(Multiple Choice)
4.8/5
(69)
Once you create a ListBox control, you add items you wish to display to its ____________.
(Multiple Choice)
4.7/5
(76)
Showing 1 - 20 of 77
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)