Chat with us, powered by LiveChat _____ Are Files To Which Data Is Written. | Wridemy

_____ Are Files To Which Data Is Written.

Question 1.1. (TCO 13) _____ are files to which data is written. (Points : 3)

Output files
Input files
Active files
Sequential files

 

Question 2.2. (TCO 13) When storing and retrieving data, a sequential access file is much like a _____. (Points : 3)

floppy disk
book
hard disk
VCR tape

 

Question 3.3. (TCO 13) Once you finish using a file, you should _____ it. (Points : 3)

exit
append
close
output

 

Question 4.4. (TCO 13) The header file that defines the classes for processing and manipulating files is called the _____. (Points : 3)

<iostream>
<fstream>
<pstream>
<mstream>

 

Question 5.5. (TCO 13) What do the following statements accomplish?
ofstream theFile;
theFile.open( myFile.txt , ios::out); (Points : 3)

Opens myFile in read mode
Opens myFile in append mode
Creates an empty file named myFile
Opens a file in input mode to write to

 

Question 6.6. (TCO 13) When a file is opened in output mode, the file pointer is positioned _____. (Points : 3)

at the end of the file
at the beginning of the file
in the middle of the file
after the file header

 

Question 7.7. (TCO 13) Which of the following functions should be used to determine if a file was successfully closed? (Points : 3)

is_active
is_open
is_closed
is_ready

 

Question 8.8. (TCO 13) What is the data hierarchy arranged from largest to smallest? (Points : 3)

File, field, record, byte, bit
File record, field, bit, byte
File, record, field, byte, bit
Record, file, field, bit, byte

 

Question 9.9. (TCO 13) To use an input file, the program must include _____. (Points : 3)

fstream
instream
outstream
filestream

 

Question 10.10. (TCO 13) Which of the following is not true about files? (Points : 3)

C++ views each file as a sequential stream of bytes.
Files are opened by creating objects of stream classes.
Member functions of stream objects can be applied to file streams.
istream, ostream, and iostream are derived from ifstream, ofstream, and fstream, respectively.

 

Question 11.11. (TCO 13) Compare and contrast the mode operators ios::in, ios::app, and ios::out. Provide a C++ code segment that illustrates the use of these mode operators. (Points : 5

Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.

Do you need an answer to this or any other questions?

About Wridemy

We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.

How It Works

To make an Order you only need to click on “Order Now” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Are there Discounts?

All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.

Hire a tutor today CLICK HERE to make your first order

Related Tags

Academic APA Writing College Course Discussion Management English Finance General Graduate History Information Justify Literature MLA