6. PS2-P6: Formatted output: Flags, Methods, and Line Manipulators Match the fol
ID: 3599875 • Letter: 6
Question
6. PS2-P6: Formatted output: Flags, Methods, and Line Manipulators
Match the following with the listed
descriptions:
a- showpoint/noshowpoint;
b- showpos/noshowpos;
OPTIONS:
1- By default for ALL the floating point numbers: decimal point is displayed
2- By default for ALL the floating point numbers: decimal point is not displayed
3- By default, in front of ALL the positive numbers: plus sign is printed
4- By default, in front of ALL the positive numbers: plus sign is not printed
?
A. 1; 3
B. 1; 4
C. 2; 3
D. 2; 4
Explanation / Answer
Solution:
The solution will be
B. 1;4
1- By default for ALL the floating point numbers: decimal point is displayed
2- By default, infront of ALL the positive numbers: plus sign is not printed.
The convention is same for any of the widely used languages like c, c++, java etc.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.