1. Introduction Flashcards

1
Q

Examples of Data

A

Images, names, addresses

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are files used for?

A

Files are used so store chunks of related data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are text files used for? What is the most interesting example of a text file in the context of Java programming?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are binary files used for? What is the most interesting example of a binary file in the context of Java programming?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What can you do to hardware that you cannot do to software?

A

Unlike software, you can see and touch hardware. They’re physical objects.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does the central processing unit actually do, and how clever it is?

A

CPU is a part of the hardware that actually obeys instructions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Why is computer memory called RAM and what is the consequence of it being volatile?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does persistent storage have that RAM does not, and vice verse?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Name two input devices and two output devices.

A

Input: Keyboard & Mouse
Output: Display & Printer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Where does software live?

A

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)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Give two examples of what a machine code instruction might be.

A

Addition of two numbers or sending a byte to a printer.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Name two operating systems.

A

Microsoft Windows, Mac OS X, Linux

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the difference between an application program and an operating system?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

In the context of Java programming, what is a text editor used for?

A

The text editor is used to write source code in the context of Java programming.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What files are produces by the javac compiler?

A

It will produce the byte code version of the program in a .class file.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Which filename suffix is not needed when using java?

A

When using java to run a program, we do not need to use the .java suffix.

17
Q

What happens when a program is executed?

A

When a program is executed, the name of it is passed to the OS which finds and loads the file with that name, and then starts the program.

18
Q

What is the standard output used for?

A

Standard output is used to produce text results after a program has been executed.

19
Q

What are command lines arguments used for? Give an example of one.

A

Command line arguments enable us to vary the behaviour of programs. (In the snake game, when we used ./run 10, then the command line argument 10, represented the grid size of the entire snake game)