Chapter 8: Programming Flashcards

1
Q

Definition of a 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

Definition of a 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

Definition of 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

Definition of 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

Definition of 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

Definition of 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

Definition of 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

Definition of 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

Definition of 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

Definition of 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

Definition of 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

Definition of 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

Definition of 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

Definition of 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

Definition of logical 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

Definition of Boolean operator

A

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

17
Q

Definition of nesting

A

the inclusion of one type of code construct inside another

18
Q

Definition of 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

Definition of 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

20
Q

Definition of 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

Definition of MOD

A

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

22
Q

Definition of 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

Definition of ROUND

A

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

24
Q

Definition of RANDOM

A

a library routine that generates a random number

25
Q

Definition of 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

Definition of index

A

identifies the position of an element in an array

27
Q

Definition of file

A

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