Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Answer the Following Questions: I) Answer True or False: (10) A switch statement

ID: 3551219 • Letter: A

Question

Answer the Following Questions:




I) Answer True or False: (10) A switch statement can contain any number of case labels in any order To name a variable and specify the data type that can be stored in it, you use declaration statements. In C+, using braces to enclose a set of statements creates a single block of statements You should avoid testing for equality of single-precision and double-precision values and variables by using the relational operator because of the way computers store these numbers. You cannot add and subtract character data and mix it with integer data to produce useful results. 2) Select the choice that best completes the statement or answers the question. (10) 2.1 In C++, the default precision is set to significant digits a. five c. Seven d. ght six. 2.2 A(n) expression consists of operators and constants only. a. declaration c. initialization d. arithmetic b. constant 2.3 The expression A & B will always be if A does not equal B c. indeterminate d. false b. true 2.4 A statement is a sequence of statements contained in a set ofbraces. a. single c. simple compound d. complex. 2.5 The operator is not a relational operator a.

Explanation / Answer

1 T

2 T

3 T

4 T

5F


2.1D

2.2 D

2.3 C

2.4 B

2.5 D