Lecture 1 Flashcards

(23 cards)

1
Q

What is the size of a byte?

A

8 bits

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

How many bytes are in a kilobyte (KB)?

A

1024 bytes

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

How many bytes are in a megabyte (MB)?

A

1,048,576 bytes

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

How many bytes are in a gigabyte (GB)?

A

1,073,741,824 bytes

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

What is the typical range of main memory in a computer?

A

4 GB to 32 GB

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

What happens when a program is started?

A

It is brought into memory for the CPU to read

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

How does the CPU run a program?

A

One instruction at a time

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

What is software typically realized as?

A

An application program

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

Name three examples of software.

A
  • Microsoft Word
  • Computer Games
  • Operating systems
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is programming?

A

The act of designing and implementing computer programs

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

What is an algorithm?

A

A sequence of actions to accomplish a given task

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

How is an algorithm similar to a recipe?

A

It is a set of instructions written in a sequence that achieves a goal

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

What are the three characteristics of a well-defined algorithm?

A
  • Unambiguous
  • Executable
  • Terminating
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What does it mean for an algorithm to be unambiguous?

A

No assumptions are required; uses precise instructions

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

What does it mean for an algorithm to be executable?

A

The algorithm can be carried out in practice

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

What does it mean for an algorithm to be terminating?

A

The algorithm will eventually come to an end

17
Q

What is a simple example of an algorithm?

A

Getting a drink of orange juice

18
Q

List the steps in the simple algorithm for getting orange juice.

A
  • Get a glass from your cabinet
  • Go to the refrigerator and get the orange juice container
  • Open the orange juice container
  • Pour the orange juice into the glass
  • Put the orange juice container back in the refrigerator
  • Drink your juice
19
Q

What factors need to be considered when selecting a car?

A
  • Purchase price
  • Fuel Efficiency (mpg)
  • Price per gallon
  • Annual miles driven
  • Length of time
20
Q

What is the first step in developing an algorithm for selecting a car?

A

Determine the inputs and outputs

21
Q

How is annual fuel cost calculated?

A

Price per gallon * Annual fuel consumed

22
Q

What is the formula for calculating total cost for each car?

A

Total cost = Purchase price + Operating cost

23
Q

Fill in the blank: An algorithm is like a _______.