Chapter 1 Flashcards

(20 cards)

1
Q

What is a program?

A

A set of instructions that a computer follows to perform a task; commonly referred to as software

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

Who is a programmer (software developer)

A

A person who designs, creates, and tests computer programs

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

What is hardware?

A

The physical devices that make up a computer, such as CPU, memory, storage, input, and output devices

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

What is the CPU?

A

The central processing unit; the part of the computer that runs programs. It executes instructions and is often built as a microprocessor chip

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

What is main memory (RAM)?

A

Volatile memory where programs and data are stored while running. Contents are erased when the computer is off

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

What is secondary storage?

A

Long-term storage for programs and data. Examples: disk drives, solid state drives, and flash memory

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

Give examples of input devices.

A

Keyboard, mouse, touchscreen, scanner, camera

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

Give examples of output devices.

A

Monitor, printer, USB drive (when data is saved to it)

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

What are the two main categories of software?

A

Application software (e.g., word processors, browsers) and system software (OS, utilities, development tools)

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

How is data stored in a computer?

A

As sequences of 0s and 1s (binary). A byte stores one character/number and is made up of 8 bits

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

What is the binary numbering system?

A

A system that uses only two values (0 and 1). Each position has a value of 2^(j-1)

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

What coding scheme represents characters as numbers?

A

ASCII (128 characters) and Unicode (supports many languages, compatible with ASCII)

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

How are negative and real numbers stored?

A

Negatives use two’s complement; real numbers use floating-point notation

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

What is the fetch-decode-execute cycle?

A

A: CPU operation cycle:

Fetch instruction from memory

Decode instruction

Execute operation

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

Why don’t programmers write in machine language?

A

It’s impractical; assembly and high-level languages are easier to read and use

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

What are keywords in programming?

A

Predefined words with specific meaning in a language (e.g., if, while)

17
Q

What is a compiler?

A

A program that translates source code into a machine language file that can be executed later

18
Q

What is an interpreter?

A

A program that translates and executes source code line by line (used by Python)

19
Q

What are the two Python interpreter modes?

A

Interactive mode (one line at a time) and script mode (saved .py file run as a program)

20
Q

What is IDLE?

A

Python’s Integrated Development and Learning Environment; includes editor and interactive shell