Exam 5: Making Decisions

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

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:
Verified

D

The equality operator in C# is ____.

Free
(Multiple Choice)
4.9/5
(71)
Correct Answer:
Verified

C

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:
Verified

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)

Conditional expressions produce a(n) ____________ result.

(Short Answer)
4.8/5
(88)

The short-circuiting logical operators ____.

(Multiple Choice)
4.7/5
(85)

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)

What is the rule for lining up, or matching, elses?

(Multiple Choice)
4.8/5
(59)

The equality operator in C# is represented by ____________.

(Short Answer)
4.7/5
(83)

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)

____ perform differently based on their operands.

(Multiple Choice)
4.9/5
(76)

Selection statements must include a Boolean variable.

(True/False)
5.0/5
(84)

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
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)