Exam 5: Making Decisions
Exam 1: Introduction to Computing and Programming75 Questions
Exam 2: Data Types and Expressions75 Questions
Exam 3: Methods and Behaviors75 Questions
Exam 4: Creating Your Own Classes75 Questions
Exam 5: Making Decisions75 Questions
Exam 6: Repeating Instructions75 Questions
Exam 7: Arrays75 Questions
Exam 8: Advanced Collections75 Questions
Exam 9: Introduction to Windows Programming75 Questions
Exam 10: Programming Based on Events74 Questions
Exam 11: Advanced Object-Oriented Programming Features75 Questions
Exam 12: Debugging and Handling Exceptions75 Questions
Exam 13: Working with Files75 Questions
Exam 14: Working with Databases75 Questions
Exam 15: Web-Based Applications75 Questions
Select questions type
switch (phoneDigit)
{
case 1:
num = 1;
break;
case 2:
num = 2;
break;
case 3:
num = 3;
break;
case 4:
num = 4;
break;
default:
num = 0;
break;
}
-Looking at the example above,what happens if the break is omitted?
(Multiple Choice)
4.9/5
(79)
Using a single equal symbol inside a conditional expression,where a test was intended,causes a syntax error to be issued in C#.
(True/False)
4.8/5
(77)
C# does not allow a fall through and requires the ____________ statement for any case that has an executable statement.
(Short Answer)
4.8/5
(74)
Two equal symbol characters == are used as the assignment operator.
(True/False)
4.9/5
(82)
if (amount > 1000)
result = 1;
else
if (amount > 500)
result = 2;
else
if (amount > 100)
result = 3;
else
result = 4;
-What is stored in result when amount is equal to 876?
(Multiple Choice)
4.8/5
(95)
A comparison to determine whether the uppercase character S is less than the uppercase character W produces false.
(True/False)
4.8/5
(79)
if (a > 10)
if (b > 10)
if (c > 10)
result = 1;
else
if (b > 100)
result = 2;
else
result = 3;
else
result = 4;
else
result = 5;
-What is stored in result when a is equal to zero,b and c are equal to 100?
(Multiple Choice)
4.9/5
(86)
if (examScore > 89) grade = 'A';
The expression above is considered a(n)____.
(Multiple Choice)
4.9/5
(92)
The not equal (!=),and equal (==)symbols are overloaded operators.
(True/False)
4.7/5
(79)
____________ operators allow you to test variables to see if one is greater or less than
another variable or value.
(Short Answer)
4.8/5
(91)
The ternary operator ( ? : )provides another way to express a simple if...else selection statement.
(True/False)
4.9/5
(83)
Assignment operators appear at the top of the hierarchy in the operator precedence table.
(True/False)
4.8/5
(77)
Class diagrams list the data field members in the center rectangle and the methods or behaviors in the bottom rectangle.
(True/False)
4.7/5
(88)
Placing a semicolon onto the end of the conditional one-way if statement ____.
(Multiple Choice)
4.8/5
(69)
The switch statement is considered a multiple selection structure and it also goes by the name case statement.
(True/False)
5.0/5
(85)
After completing the program,you should compare the results produced with the desk checked calculated results.
(True/False)
4.9/5
(74)
Showing 21 - 40 of 75
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)