Starting out with Python Ch01 Flashcards

Cementing the basic concepts of computing & computer programs

1
Q

What is a program?

A

A set of instructions that a computer follows to perform a task.

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

What is hardware?

A

The physical parts of a computer system.

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

List the five major components of a computer system.

A

CPU, main memory (RAM), secondary storage devices, input devices, output devices.

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

What part of the computer actually runs programs?

A

The CPU (Central Processing Unit).

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

What part of the computer serves as a work area to store a program and its data while the program is running?

A

The main memory (RAM).

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

What part of the computer holds data for long periods of time, even when there is no power to the computer?

A

The secondary storage (like a hard drive or SSD).

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

What part of the computer collects data from people and from other devices?

A

Input devices (e.g., keyboard, mouse, scanner).

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

What part of the computer formats and presents data for people or other devices?

A

Output devices (e.g., monitor, printer).

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

What fundamental set of programs control the internal operations of the computer’s hardware?

A

The operating system.

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

What do you call a program that performs a specialized task, such as a virus scanner, a file compression program, or a data backup program?

A

Utility software.

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

Word processing programs, spreadsheet programs, email programs, web browsers, and game programs belong to what category of software?

A

Application software.

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

What amount of memory is enough to store a letter of the alphabet or a small number?

A

A byte.

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

What do you call a tiny “switch” that can be set to either on or off?

A

A bit.

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

In what numbering system are all numeric values written as sequences of 0s and 1s?

A

The binary numbering system.

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

What is the purpose of ASCII?

A

To encode characters as numbers that computers can understand.

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

What encoding scheme is extensive enough to represent the characters of many of the languages in the world?

A

Unicode.

17
Q

What do the terms “digital data” and “digital device” mean?

A

Digital data refers to information stored and processed in binary format. A digital device is any device that works with digital data.

18
Q

A CPU understands instructions that are written only in what language?

A

Machine language.

19
Q

A program has to be copied into what type of memory each time the CPU executes it?

A

Main memory (RAM).

20
Q

When a CPU executes the instructions in a program, it is engaged in what process?

A

Execution.

21
Q

What is assembly language?

A

A low-level programming language that uses symbolic code to represent machine code.

22
Q

What type of programming language allows you to create powerful and complex programs without knowing how the CPU works?

A

High-level programming language.

23
Q

Each language has a set of rules that must be strictly followed when writing a program. What is this set of rules called?

A

Syntax.

24
Q

What do you call a program that translates a high-level language program into a separate machine language program?

A

A compiler.

25
Q

What do you call a program that both translates and executes the instructions in a high-level language program?

A

An interpreter.

26
Q

What type of mistake is usually caused by a misspelled key word, a missing punctuation character, or the incorrect use of an operator?

A

A syntax error.