6. 3points) What is the value of x after the following code executes? int x; x =
ID: 3591457 • Letter: 6
Question
6. 3points) What is the value of x after the following code executes? int x; x = 13 / static cas tant> (4.5 + 6.4); a. 1.3 b. 1 c. 1.275229 d. 2 7. (3points) A statement that causes a loop to terminate early is à break b. terminate c. re-iterate d. continue 8. This manipulator forces cout to print digits in fixed-point notation: a. setprecision (2) b. setw (2) c. fixed d. setfixed (2) 9. (3points) The value in this type of variable persists between function calls. a. static local b. local c. counter d. dynamic 10. (3points) What is assigned to the variable result given the statement below with the following assumptions: x = 10, y 7, and x, result, and y are all int variables. result = x >= y; a. 10 b. 7 C. d. 1Explanation / Answer
Please find my answer.
Q6)
x = 13/10 = 1
Ans : b
7)
Ans: a. break
8)
Ans: a. setprecision(2)
9)
Ans: a. static local
10)
Ans: d. 1
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.