How can you categorize files by the way they store data?

What will be an ideal response?


* 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. Some text files are data files that contain facts and figures, such as a payroll file that contains employee numbers, names, and salaries; some files are program files or application files that store software instructions.

* Binary files contain data that has not been encoded as text. Their contents are in binary format, which means that you cannot understand them by viewing them in a text editor. Examples include images, music, and the compiled program files with a .class extension that you have created using this book.

Computer Science & Information Technology

You might also like to view...

Write a program that reads a C++ source-code file and reports the occurrence of each keyword in the file. Here is a sample run:

``` Enter a C++ source file name: Welcome.cpp int occurs 3 times void occurs 1 time ... static occurs 1 time ``` Suppose a set of keywords is already given as follows: ``` set s; s.insert("asm"); s.insert("auto"); s.insert("bool"); ... s.insert("while"); ``` So you don’t need to populate the set in the program.

Computer Science & Information Technology

PKI is based on a system of certificates, which are digitally signed statements that contain a public key and the name of the subject

Indicate whether the statement is true or false

Computer Science & Information Technology

Which Creative Commons license(s) shown in the above figure is associated with the U.S. Patent Office? ____

A. All B. None C. 1, 3, and 5 D. 1, 2, 4, and 5

Computer Science & Information Technology

In general, is the correlation between the weight of a car and its gas mileage positive or negative?

A. negative B. positive

Computer Science & Information Technology