KRHS Internet Lesson

Teacher Name:Mr. Rung                          Date of Lesson: January

Course Name: C++                    Lesson Name: Chap 11.3a

Student Name

Password


Objective
To complete the workbook exercises.


Primary Focus
Answer the questions below.

Site Links
Course Home Page

Additional Resources

Site Links


Question #1

Adding data to the end of an existing file is called extending

True         False


Question #2

The eof function detects the end of a file

True         False


Question #3

The eof function works only when reading numeric data.

True         False


Question #4

A relational database uses multiple files.

True         False


Question #5

C++ allows you to prompt the user for filenames.

True         False


Question #6

For #6 - 10 Write your answer in the space following each question or statement.
Define relational database in your own words.


Question #7

Why is it important to be able to detect the end of a file?


Question #8

Why, in most cases, is the not operator (!) used in conjunction with the eof function?


Question #9

There is no direct method of adding data in the middle of a sequential-access file.
How can this limitation be overcome?


Question #10

Write a statement that will open a file named NAME.OUT so that more records can be added at the end of the file. Assume the file pointer has already been declared as outfile.