Question: Question 42 To force output to show the decimal point and trailing zeros use the manipulator ___________________. Question options: None of these showpoint. showall. settrail.
| Question 42 |
|
To force output to show the decimal point and trailing zeros use the manipulator ___________________.
Question options:
|
| None of these | ||
|
| showpoint. | ||
|
| showall. | ||
|
| settrail. | ||
|
| setzeros. | ||
| Question 43 |
| ||
The manipulator ___________ is used to output the value of an expression in a specific number of columns.
Question options:
|
| widthset | ||
|
| setwd | ||
|
| setw | ||
|
| wset | ||
|
| setwidth | ||
| Question 44 |
| ||
The syntax for the setw manipulator is ____________.
Question options:
|
| setw() | ||
|
| none of these. | ||
|
| setwd(n). | ||
|
| setw.n | ||
|
| setw(n). | ||
| Question 45 |
| ||
In order to use the manipulator setw the program must include the header file _____________.
Question options:
|
| iosetw | ||
|
| istreamwidth | ||
|
| iomanipp; | ||
|
| iocolumns | ||
|
| None of these. | ||
| Question 46 | |||
There are two types of manipulators:
Question options:
|
| char and float | ||
|
| set and fill. | ||
|
| None of these. | ||
|
| with and without parameters. | ||
|
| char and double | ||
| Question 47 |
| ||
The function ____________ reads until it reaches the end of the current line.
Question options:
|
| linereader | ||
|
| readln | ||
|
| putline | ||
|
| readline | ||
|
| getline | ||
| Question 48 |
| ||
The _____________ function can be used to read a string containing blanks.
Question options:
|
| getlines | ||
|
| getsets | ||
|
| getblanx | ||
|
| readlines | ||
|
| None of these | ||
| Question 50 |
| ||
C++ provides a header file called ____________ which is used for file I/O.
Question options:
|
| fstream | ||
|
| fiostream | ||
|
| None of these. | ||
|
| iostream | ||
|
| fileio | ||
| Question 52 |
| ||
File I/O is a __________ process.
Question options:
|
| three-step | ||
|
| four-step | ||
|
| two-step | ||
|
| six-step | ||
|
| five-step | ||
| Question 55 |
| ||
The file master1.txt resides on a storage device in drive F. The file stream variable was declared using the statement: ifstream retrieveit; In order to open master1.txt for input we should use_______________.
Question options:
|
| None of these. | ||
|
| master1.txt.open.retrieveit; | ||
|
| f:\master1.open(retrieveit); | ||
|
| retrieveit.open("f:\\master1.txt"); | ||
|
| open.retrieveit("f:\\master1.txt"); | ||
| Question 56 |
| ||
The two most common control structures are____________.
Question options:
|
| selection and repetition . |
|
| sequence and repetition. |
|
| sequence and boolean. |
|
| None of these. |
|
| ssequence and selection. |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
