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

The stream manipulator sets the floating-point precision setprecision (n) b. set

ID: 3594345 • Letter: T

Question

The stream manipulator sets the floating-point precision setprecision (n) b. setw n) to n places c. d. setfill('x') showbase 15. Thestatement is used to enter data in a program while it's running. a. input b. data c cout d. cin 16. The declaration qualifier specifies that the declared identifier is read-only after it's initial a. fixed b. const c. fix d. unchanged 17. The is an output object that sends data it receives to the standard display device. a. out b. cin c. print d. cout 18. Preprocessor commands begin with asign. a. b. d. 19. A(n)number, more commonly known as a real number, can be the number zero or any positive or negative number that contains a decimal point. a. boolean b. integer c long int d. floating-point 20. When a declaration statement is used to store a value into a variable, the variable is said to be a. initialized b. deleted c. reserved d. Used 21. What is wrong with the following while loop? while ( sum 1000) sumsum-30; a. The parentheses should be braces b. Braces are required around sum sum-30. e should be a semicolon after while (sum1000) sum+ 30 or else the loop may never end d. sum sum -30 should be sum 22. Which of the following for headers is not valid? a. for (int i -0; i

Explanation / Answer

Answer 14: (a) setprecision(n) : when setprecision used in in>> setprecision(n) or out<< setprecision(n). It will set precision parameter to n places

where n is value of precision.

Answer 15: (d) cin: cin statement is used to enter data in a running program.

Answer 16: (c) const:

Answrer 17: (d) cout: it is the statement in c++ that is used to send data to the standard display.

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