creation: 8/13/99; revised 05/21/03, 06/17/15, 02/14/25


Fill in the Blanks

Instructions:   This is a fill-in-the-blank exercise. Each question consists of a sentence with one or two words left out. For each question, think of the word or phrase that should fill each blank, then click on the blanks to see if you are correct.


1.     From an application programmer's point of view the only way to store information semi-permanently is to place it in a



2.     A file is a , , collection of .



3.     Files are usually stored on .



4.     As far as the hardware of a computer system is concerned, a file is only a sequence of .



5.     In a the bytes represent printable characters and control characters.



6.     A source file for a computer program is usually a file of this type: .



7.     A program that usually sends its output to the monitor can send its output to a disk file by using .



8.     Fill in the blank so that the following will create a file called output.txt. Assume that the program Hello ordinarily writes characters to the monitor.

C:\MyDir> java Hello    


9.     Say that there is already a file named output.txt in the current directory. What happens to it when the above command is given? Its old contents are .



10.     Say you want to append the output of the program to the end of a file called output.txt. Fill in the blanks to do this.

C:\MyDir> java Hello  

End of the Exercise. If you want to do it again, click on "Refresh" in your browser window.

go to home page