Chapter 1 Flashcards

1
Q

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

Major components of a computer

A
  • The CPU
  • Main Memory
  • Secondary Storage Devices
  • Input Devices
  • Output devices
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

CPU’s Job

A

To fetch instructions, follow the instructions, and produce some result.

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

Source Code

A

Statements written by the programmer.

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

Preprocessor

A

Reads the source code.

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

Compiler

A

Translates the preprocessed code into machine language.

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

Object code

A

Translated machine language.

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

Linker

A

During the last phase of the translation process a linker combines the object file with the necessary library routines.

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

Runtime Library

A

Library of prewritten code for preforming common operations.

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

Key Words

A

Words that have a special meaning. Key words may only be used for their intended purpose. Key words are also known as reserved words.

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

Programmer-Defined Identities

A

Words or names defined by the programmer. They are symbolic names that refer ro variables or programming routines.

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

Operators

A

Operators perform operations on one or more operands. An operand is usually a piece of data, like a number.

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

Punctuation

A

Punctuation characters that mark the beginning or end of a statement, or separate items in a list.

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

Syntax

A

Rules that must be followed when constructing a program. Syntax dictates how key words and operators may be used, and where punctuation symbols must appear.

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

Semicolon

A

Marks the end of a statement.

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

Programmer-Defined Identities: (cont.)

A

They are the names of variables, variables are the names of memory locations that may hold data.

17
Q

Runtime Errors

A

A runtime error is an error that occurs while the program is running.

18
Q

Object

A

A programming element that contains data and the procedures that operate on the data.