Exam 15: Making Decisions

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

When designing a flowchart for assisting in the coding process, what is a parallelogram typically used to represent?

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

D

What character(s) do you use to make a conditional AND operator within a C# program?

Free
(Multiple Choice)
4.7/5
(30)
Correct Answer:
Verified

C

When the & and | operators are used between Boolean expressions, they are Boolean logical operators.What are they when used between integer expressions?

Free
(Multiple Choice)
4.7/5
(35)
Correct Answer:
Verified

C

When using a switch structure to make decisions within a program, what keyword is used to begin the structure?

(Multiple Choice)
4.9/5
(33)

What can be used in conjunction with a switch statement in order to make the meaning of case label values much clearer?

(Multiple Choice)
4.9/5
(37)

In C#, what operator is used as an abbreviated version of the if-else statement, and requires three expressions separated with a question mark and a colon?

(Multiple Choice)
4.9/5
(37)

What character(s) serve as the NOT operator in the C# programming language?

(Multiple Choice)
4.7/5
(40)

What keyword can you use to specify an action to take in the event that a test expression does not match any case?

(Multiple Choice)
4.8/5
(37)

When creating a flowchart or pseudocode representation of a task, what type of structure is one in which one step follows another unconditionally?

(Multiple Choice)
4.9/5
(35)

When if-else statements are nested, each else is always paired with the most recent unpaired if.

(True/False)
4.7/5
(36)

What conditional operator can be used when you want some action to occur even if only one of two given conditions is true?

(Multiple Choice)
4.9/5
(35)

What sort of evaluation involves the evaluation of expressions in each part of a compound, conditional Boolean expression only as much as necessary to determine whether the expression is false?

(Multiple Choice)
4.9/5
(31)

What is the difference between the conditional AND and OR operators and their logical counterparts? How can incorrect use of the logical operators lead to unintended consequences in your program?

(Essay)
5.0/5
(34)

What type of statement can be used to make a single-alternative decision?

(Multiple Choice)
4.9/5
(35)

What character(s) are used to form the ternary conditional operator in C#?

(Multiple Choice)
4.8/5
(37)

What is the syntax of the conditional operator? Describe how the operator is used.

(Essay)
4.9/5
(46)

What kind of conditional operator requires three arguments: a test expression, and true and false result expressions?

(Multiple Choice)
4.8/5
(39)

You write a program in which the user must select whether to receive instructions in English or Spanish.In a console application, you would issue the prompt: Which language do you prefer? Enter 1 for English or 2 for Spanish >> The program would accept the user's entry, make a decision, and take appropriate action.How would you commonly handle this decision-making situation in a GUI application?

(Essay)
4.8/5
(38)

You can combine as many AND and OR operators in an expression as needed.

(True/False)
4.9/5
(21)

What character(s) function as the conditional OR operator in the C# programming language?

(Multiple Choice)
4.9/5
(46)
Showing 1 - 20 of 40
close modal

Filters

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