Chapter 1 - Introduction Flashcards

1
Q

SR 1.1

What is hardware? What is software?

A

The hardware of a computer system consists of its physical components such as a circuit board, monitor, or keyboard. Computer software consists of the programs that are executed by the hardware and the data that those programs use. Hardware is tangible, whereas software is intangible. In order to be useful, hardware requires software and software requires hardware.

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

SR 1.2

What are the two primary functions of an operating system?

A

The operating system provides a user interface and efficiently coordinates the use of resources such as main memory and the CPU.

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

SR 1.3
The music on a CD is created using a sampling rate of 44,000 measurements per second Each measurement is stored as a number that represents a specific voltage level.
(1) How many such numbers are used to store a three-minute long song?
(2) How many such numbers does it take to represent one hour of music?

A

It takes 7,200,000 numbers for a 3-minute song (40,000 x 60 x 3) and 144,000,000 numbers for 1 hour of music (40,000 x 60 x 60).

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

SR 1.4

What happens to information when it is stored digitally?

A

The information is broken into pieces, and those pieces are represented as numbers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
SR 1.5
How many unique items can be represented with the following?
a. 2 bits
b. 4 bits
c. 5 bits
d. 7 bits
A

In general, N bits can represent 2^N unique items. Therefore:

a. 4
b. 16
c. 32
d. 128

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

SR 1.6
Suppose you want to represent each of the 50 states of the United States using a unique permutation of bits. How many bits would be needed to store each state representation? Why?

A

It would take 6 bits to represent each of the 50 states. Five bits is not enough because 2^5 = 32 but six bits would be enough because 2^6 = 64.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
SR 1.7
How many bytes are in each of the following?
a. 3 KB
b. 2 MB
c. 4 GB
A

A kilobyte (KB) is 2^10 = 1,024 bytes,
a megabyte (MB) is 2^20 = 1,048,576 bytes, and
a gigabyte (GB) is 2^30 = 1,073,741,824 bytes.
Therefore:
a. 3,072 bytes
b. 2,097,152 bytes
c. 4,294,967,296 bytes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
SR 1.8
How many bits are there in each of the following?
a. 8 bytes
b. 2 KB
c. 4 MB
A

There are eight bits in a byte. Therefore:
a. 64 bits
b. 16,384 bits
c. 33,554,432 bits
(a kilobyte (KB) is 2^10 = 1,024 bytes,
a megabyte (MB) is 2^20 = 1,048,576 bytes)

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

SR 1.9
The music on a CD is created using a sampling rate of 44,000 measurements per second. Each measurement is stored as a number that represents a specific voltage level. Suppose each of these numbers requires two bytes of storage space. How many MB does it take to represent one hour of music?

A

Unter the stated conditions, one hour of music would require 288,000,000 btes (40,000 x 60 x 60 x 2). Dividing this number by the number of bytes in a megabyte (1,048,576 bytes) gives approximately 275 MB.
Note that a typical audio CD has a capacity of about 650 MB and can store about 70 minutes of music. This coincides with an actual sampling rate of 41,000 measurements per second, two bytes of storage space per measurement, and the need to store two streams of music to produce a stereo effect.

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

SR 1.10

What are the two primary hardware components in a computer? How do they interact?

A

The two primary hardware components are main memory and the CPU. Main memory holds the currently active programs and data. The CPU retrieves individual program instructions from main memory, one at a time, and executes them.

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

SR 1.11

What is a memory address?

A

A memory address is a number that uniquely identifies a particular memory location in which a value is stored.

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

SR 1.12

What does volatile mean? Which memory devices are volatile and which are nonvolatile?

A

Main memory is volatile, which means the information that is stored in it will be lost if the power supply to the computer is turned off. Secondary memory devices are nonvolatile; therefore, the information that is stored on them is retained even if the power goes off.

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

SR 1.13
Select the word from the following list that best matches each of the following phrases:

controller, CPU, main, network card, peripheral, RAM, register, ROM, secondary

a. Almost all devices in a computer system, other than the CPU and the main memory, are categorized as this.
b. A device that coordinates the activities of a peripheral device.
c. Allows information to be sent and received.
d. This type of memory is usually volatile.
e. This type of memory is usually nonvolatile.
f. This term basically is interchangeable with the term “main memory”.
g. Where the fundamental processing of a computer takes place.

A

The word that best matches is

a. peripheral
b. controller
c. modem
d. main or RAM
e. secondary or ROM
f. RAM
g. CPU

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

SR 1.14

A

v

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

SR 1.15

A

v

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

SR 1.16

A

v

17
Q

SR 1.17

A

v

18
Q

SR 1.18

A

v

19
Q

SR 1.19

A

v

20
Q

SR 1.20

When was the Java programming language developed? By whom? When was it introduced to the public?

A

The Java programming language was developed in the early 1990s by James Gosling at Sun Microsystems. It was introduced to the public in 1995.

21
Q

SR 1.21

Where does processing begin in Java application?

A

The processing of a Java application begins with the main method.

22
Q

SR 1.22

A

v

23
Q

SR 1.23

A

v

24
Q

SR 1.24

A

v

25
Q

SR 1.25

A

v

26
Q

SR 1.26

A

v

27
Q

SR 1.27

A

v

28
Q

SR 1.28

A

v

29
Q

SR 1.29

A

v

30
Q

SR 1.30

A

v

31
Q

SR 1.31

A

v

32
Q

SR 1.32

A

v

33
Q

SR 1.33

A

v

34
Q

SR 1.34

A

v

35
Q

SR 1.35

A

v