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 Collections74 Questions
Exam 9: Introduction to Windows Programming75 Questions
Exam 10: Programming Based on Events75 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 Applications73 Questions
Select questions type
if (examScore > 89)
grade = 'A';
Console.WriteLine("Excellent");
Using the code snippet above, when does Excellent get displayed?
Free
(Multiple Choice)
4.9/5
(74)
Correct Answer:
D
if (value1 > value2) largestOne = value1;
Else
If (value1 < value2)
LargestOne = value2;
Else
LargestOne = -(value1);
Using the nested if program statements, assuming value1 is 100 and value2 is 100, what is stored in largestOne above?
Free
(Multiple Choice)
4.8/5
(96)
Correct Answer:
C
Class diagrams list the data field members in the center rectangle and the methods or behaviors in the bottom rectangle.
(True/False)
4.8/5
(87)
After completing the program, you should compare the results produced with the desk checked calculated results.
(True/False)
4.8/5
(80)
With ____________, as soon as the value of the entire expression is known, evaluation stops.
(Short Answer)
4.9/5
(64)
An exclamation point followed by a single equal symbol (!=) represents not equal in C#.
(True/False)
4.9/5
(69)
The <, >, <=, and >= are called the logical operators of the language.
(True/False)
4.8/5
(82)
if (amount > 1000)
result = 1;
Else
if (amount > 500)
result = 2;
else
if (amount > 100)
result = 3;
else
result = 4;
Using the above code segment, what is stored in result when amount is equal to 12000?
(Multiple Choice)
4.8/5
(97)
No fall through is permitted in C# if the previous case label has code.
(True/False)
4.9/5
(77)
These categories are referred to as the basic programming constructs are simple sequence, iteration and ____________.
(Short Answer)
5.0/5
(89)
C# does not allow a fall through and requires the ____________ statement for any case that has an executable statement.
(Short Answer)
4.9/5
(82)
Which of the following statements is NOT true regarding switch statements?
(Multiple Choice)
4.9/5
(70)
Which of the following is NOT one of the basic programming constructs?
(Multiple Choice)
4.9/5
(95)
Showing 1 - 20 of 75
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)