1. Introduction Flashcards
Examples of Data
Images, names, addresses
What are files used for?
Files are used so store chunks of related data
What are text files used for? What is the most interesting example of a text file in the context of Java programming?
Text files are stored directly in characters that are in a human readable form. The most interesting example of a text file in the context of Java is LaTeX.
What are binary files used for? What is the most interesting example of a binary file in the context of Java programming?
Binary numbers are stored as binary (base 2) numbers, and it is not human readable. The most interesting example is the machine code instructions of a program.
What can you do to hardware that you cannot do to software?
Unlike software, you can see and touch hardware. They’re physical objects.
What does the central processing unit actually do, and how clever it is?
CPU is a part of the hardware that actually obeys instructions.
Why is computer memory called RAM and what is the consequence of it being volatile?
It is called RAM (Random Access Memory), because it is able to access and change its contents in any order required. (A lot faster than to do it in a specific order).
Due to it being volatile, it forgets its contents when the power is turned off.
What does persistent storage have that RAM does not, and vice verse?
Persistent storage enables us to store data for longer term. It is also capable of holding much more information than RAM. However, it takes a lot longer to store and retrieve data when compared to RAM.
Name two input devices and two output devices.
Input: Keyboard & Mouse
Output: Display & Printer
Where does software live?
Software is stored on computer media, such as DVD ROMs, and ultimately inside the computer, as lots of numbers. (The numbers are the instructions that the computer will obey)
Give two examples of what a machine code instruction might be.
Addition of two numbers or sending a byte to a printer.
Name two operating systems.
Microsoft Windows, Mac OS X, Linux
What is the difference between an application program and an operating system?
Operating system is a collection of software which is dedicated to making the computer generally usable.
Application programs are, however, a piece of software, which are dedicated to solving a particular task, or application.
In the context of Java programming, what is a text editor used for?
The text editor is used to write source code in the context of Java programming.
What files are produces by the javac compiler?
It will produce the byte code version of the program in a .class file.