Exam 5: Making Decisions

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

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)

The switch statement also goes by the name ____________.

(Short Answer)
4.9/5
(89)

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)

The short-circuiting logical operators ____.

(Multiple Choice)
4.9/5
(83)

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

(Multiple Choice)
4.7/5
(80)

The equality operator in C# is ____.

(Multiple Choice)
4.9/5
(90)

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

Filters

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