Answer the following statements true (T) or false (F)

1) To end a line of output, insert endl or the character '\n' in the output stream.
2) A program that manipulates files directly must include the header file .
3) To input a string that includes white space, use istream member function getline.
4) Function getline never stores '\n' in its string parameter.
5)After execution of the declaration
```
ofstream out( ".txt", ios::out );
```
if the expression out.fail() is true, this means that the system was unable to open out.txt for output.


1) T
2) F
3) T
4) T
5) T

Computer Science & Information Technology

You might also like to view...

Write the syntax for an ethereal display filter that shows packets containing TCP segments with a source or destination IP address equal to 10.0.1.12 and using port number 23.

What will be an ideal response?

Computer Science & Information Technology

You can ________ a frequently used template to the Backstage view so that it appears at the top portion of the template selection

A) post B) integrate C) attach D) pin

Computer Science & Information Technology

Describe how a database stores data.

What will be an ideal response?

Computer Science & Information Technology

_________ addresses are sometimes called electronic serial numbers or hardware addresses.

A. HTTP B. IP C. DHCP D. MAC

Computer Science & Information Technology