Unit 4 Two Truths & A Lie

¡Supera tus tareas y exámenes ahora con Quizwiz!

1.

a. A sequence structure has three or more alternative logical paths.

5

b. The keyword break always terminates a switch structure at the end of each case.

9

c. Event-driven programs usually contain more coded decisions than corresponding console-based applications.

3

c. When if-else statements are nested, the first if always is paired with the first else.

4

b. If d is true and e and f are false, then the value of e || d && f is true.

2

b. In C#, for multiple statements to depend on an if, they must be indented.

7

c. Assume that p, q and r are all Boolean variables that have been assigned the value true. After the following statement executes, the value of p is still true.

6

c. If j = 2 and k = 3, then the value of the following expression is 5: int p = j > k ? j + k : j * k;

8

a. If you want to display OK when userEntry is 12 and when it is 13, then the following is a usable C# statement: if(userEntry == 12 && userEntry == 13) WriteLine("OK");


Conjuntos de estudio relacionados

U.S. History: Unit 4 Civil War Begins

View Set

Peds ATI 2019 B, Peds- ATI Practice Exam A

View Set

2-14 Unit 23: Florida Laws, Rules, and Regulations

View Set