



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




______ is the Java class that allows the programmer to perform file maintenance tasks ✓Files A buffer _____. ✓a. holds bytes that are scheduled for input or output A collection of data stored on a nonvolatile device in a computer system is _____. ✓a file A complete list of the disk drive plus the hierarchy of directories in which a file resides is its _____ ✓path A complete list of the disk drive plus the hierarchy of directories in which a file resides is its ✓path A file channel _____. ✓is seekable A path that needs no other information to locate a file on a system is _____. ✓an absolute path A_________field in a record that makes the record unique from all others ✓key Absolute path ✓a complete path; it does not need any other information to locate a file on a system Batch processing ✓processing that involves performing the same tasks with many records, one after the other
Binary files ✓contain data that has not been encoded as text; their contents are in binary format Buffer ✓a memory location where bytes are held after they are logically output, but before they are sent to the output device Character ✓can be any letter number or special symbol (such as a punctuation mark) that comprises data Close the file ✓ensures a file no longer available to an application Comma-separated values (CSV) ✓files that are separated with a comma Computer file ✓a collection of stored information in a computer system Data files ✓consist of related records that contain facts and figures, such as employee numbers, names, and salaries Direct access files ✓another name for random access files Factory methods ✓methods that assist in object creation Field ✓a group of characters that has some meaning File channel object ✓an avenue for reading and writing a file files class ✓performs operations on files and directories
nonvolatile sotate ✓permanent storage; it is not lost whena computer loses power opens a file ✓creates an object and associates a stream of bytes with that object path ✓the complete list of the disk drive plus the hierarchy of directories in which a file resides path class ✓a Java class used to work with file information such as its location, size, creation date, and whether the file exists path delimiter ✓the character used to separate path components permanent storage devices ✓retain data even when poser is lost Program files or application files ✓store software instructions Random access files ✓files in which records can be retrieved directly in any order Random access memory (RAM) ✓temporary, volitale storage real-time ✓applications that require a record be accessed immediately while a client is waiting Real-time applications _____. ✓use random access files record ✓a collection of fields that contain data about an entity
relative path ✓one that depends on other path information root directory ✓main directory of a storage device, outside any folders seekable ✓describes a file channel in which you can search for a specific file location and in which operations can start at any specified position sequential access file ✓each record is stored in order based on the value in some field static import feature ✓allows you to use static constants without their class name stream ✓a data pipeline of channel text files ✓contain data that can be read in a text editor because the data has been encoded using a scheme such as ASCII or Unicode The data hierarchy occurs in the following order from the smallest to largest piece of data: _____. ✓character, field, record, file The newOutputStream() method ____. ✓All of the below: is defined in the Files class creates a file if it does not already exist opens a file for writing The Path class getFileName() method returns _____. ✓the last item in a Path's list of name elements The smallest useful piece of data to most people is the ✓character
Which of the following statements creates a Path named p to a FileStream named f? a. Path p = new Path("C:\Java\MyFile.txt"); b. Path p = f("C:\Java\MyFile.txt"); c. Path p = f.getPath("C:\Java\MyFile.txt"); d. Path p = getPath(new f("C:\Java\MyFile.txt")); ✓Path p = f.getPath("C:\ Java\MyFile.txt"); Which of the following statements is true? a. Volatile storage lasts only a few seconds. b. Volatile storage is lost when a computer loses power. c. Computer disks are volatile storage devices. d. All of the above are true. ✓ Which of the following systems is most likely to use batch processing? a. an airline reservation system b. payroll c. point-of-sale credit checking d. an e-mail application ✓payroll Wrapped ✓to be encompassed in another type You cannot delete a Path _____. ✓a. if it represents a directory that is not empty