81. ____________ function specifies the required number of
fields to be used while displaying the output value.
A. with()
B. width()
C. fill()
D. setf()
ANSWER: B
82. _____________ function specifies the number of digits to
be displayed after decimal point.
A. width()
B. precision()
C. fill()
D. setf()
ANSWER: B
83. ____________ function clears the flags.
A. width()
B. precision()
C. unsetf()
D. setf()
ANSWER: C
84. setf() function ______________
A. clears the flags.
B. specifies the number of digits to be displayed after
decimal point.
C. specifies the required number of fields to be used while
displaying the output value.
D. sets format flags that control the format of output
display
ANSWER: D
85. The primary difference between float and double is in
the ____ of the value they hold.
A. address.
B. magnitude.
C. sign.
D. decimal point.
ANSWER: B
86. Which of the following is not the member of class?
A. Static function.
B. Friend function.
C. Const function.
D. Virtual function.
ANSWER: B
87. ios::right produces the output as ___________.
A. left justified
B. right justified
C. padding between number and the sign.
D. decimal conversion
ANSWER: A
88. Which of the following is not a valid file mode?
A. ios::in
B. ios::out
C. ios::truncate
D. ios::noreplace
ANSWER: C
89. _____________ is the file mode for opening a file in
input mode.
A. ios::in
B. ios::out
C. ios::trunc
D. ios::noreplace
ANSWER: A
90. _____________ is the file mode for opening a file in
output mode.
A. ios::in
B. ios::out
C. ios::trunc
D. ios::noreplace
ANSWER: B
No comments:
Post a Comment