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

16: Which of the following is true? a. Assigning a double value to an int does n

ID: 3887702 • Letter: 1

Question

16: Which of the following is true? a. Assigning a double value to an int does not lose any data b. For tal-type that could result in data loss c. For f could result in data loss. d. None of the above 17: Which of the a. C++ requires all variables to have a type. b. C++ c. ints may be 64 bits on some machines d. C+t programmers frequently have to write different versions of programs for different l types are portable. platforms 18: An example of a relational operator is: b. The a ass C.The % d. The ! to type will result in the loss of data 19: Converting from type a. bool, char c. int, char d. short, long 20: Recursion is to the base case as iteration is to what: a. The counter b. A repetition structure. c. Failure of the loop continuation test. by the following code (6 points) 21. Show the output produced endl cout ss (-7 3+6012 - 11) cout

Explanation / Answer

16.

b. for fundamental-type variables, list-initialization syntax prevents narrowing conversions that could result in data loss

17.

c. Ints may be 64 bits on some machines is false. it is 32 bits.

18.

< is relational operator

19.

Converting from type int to type char will result in the loss of data.

20.

recursion is to the base case as iteration is to failure of the loop continuous test

21.

-7*3 + 60/2 -11
= -21 + 30 - 11
= 9-11
=-2
so the output will be -2.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote