Chapter 8 Definitions Flashcards

1
Q

Define variable

A

A named data store that contains a value that may change during the execution of a program

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

Define constant

A

A named data store that contains a value that does not change during the execution of a program

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

Define declare

A

Define the value and data type of a variable or constant

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

Define integer

A

A positive or negative whole number that can be used with mathematical operators

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

Define real number

A

A positive or negative number with a fractional part; Real numbers can be used with mathematical operators

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

Define char

A

A variable or constant that is a single character

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

Define string

A

A variable or constant that is several characters in length. Strings vary in length and may even have no characters (an empty string); the characters can be letters and/or digits and/or any other printable symbol

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

Define sequence

A

The order in which the steps in a program are executed

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

Define selection

A

Allowing the selection of different paths through the steps of a program

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

Define iteration

A

A section of programming code that can be repeated under certain conditions

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

Define counting

A

Keeping track of the number of times an action is performed

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

Define totalling

A

Keeping a total that values are added to

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

Define operator

A

A special character or word in a programming language that identifies an action to be performed

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

Define arithmetic operator

A

An operator that is used to perform calculations

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

Define logic operator

A

An operator that is used to decide the path to take through a program if the expression formed is true or false

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

Define Boolean operator

A

An operator that is used with logical operators to form more complex expressions

17
Q

Define nesting

A

The inclusion of one type of code construct inside another

18
Q

Define procedure

A

A set of programming statements grouped together under a single name that can be called to perform a task in a program, rather than including a copy of the code every time the task is performed

19
Q

Define function

A

A set of programming statements grouped together under a single name which can be called to perform a task in a program, rather than including a copy of the code every time; just like a procedure except a function will return a value back to the main program

20
Q

Define parameters

A

The variables in a procedure or function declaration that store the values of the arguments passed from the main program to a procedure or function

21
Q

Define MOD

A

An arithmetic operator that returns the remainder of a division; different languages use different symbols for this operation

22
Q

Define DIV

A

An arithmetic operator that returns the quotient (whole number part) of a division; different languages use different symbols for this operation

23
Q

Define ROUND

A

A library routine that rounds a value to a given number of decimal places

24
Q

Define RANDOM

A

A library routine that generates a random number

25
Q

Define array

A

A data structure containing several elements of the same data type; these elements can be accessed using the same identifier name

26
Q

Define index

A

Identifies the position of an element in an array

27
Q

Define file

A

A collection of data stored by a computer program to be used again