Chapter 2- Basic Programs Flashcards

1
Q

Boolean

A

A value that is True (0) or False (1)

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

Char

A

A value that consists of one character

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

Class scope

A

Refers to a variable that is declared in the private or public section of a class definition. Can be accessed by all methods in the class

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

Constant

A

A fixed value allocated to a variable in a program

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

Data type

A

Indicates the type of data to be stored in a variable

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

DIV

A

An operator that gives the quotient of two values as a whole number

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

Duration of a variable

A

The lifetime- how long or when a variable exists in a program.

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

Local Duration

A

When variable declared in event handler: will be created when event handler executes, will be destroyed when event handler is done being executed.

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

Static duration

A

When a variable is declared as public or private variable of the class of a Form: will exist all the time while program is running

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

FloatToStrF

A

Function used to format output

Eg: pnlOut.Caption:=FloatToStrF(rVal, ffFixed,6,2);

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

InputBox

A

Function that generates a dialog box to obtain input

Eg: sName:= InputBox(‘Type the name:’,’Name:’,’’);

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

Integer

A

Value of this type can only be a whole number

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

Method scope

A

Refers to a variable that can only be used in a method because it is declared in the VAR section of that method

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

MOD

A

Operator that gives the remainder after the division of 2 values

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

Real

A

Value of this type can be any number

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

Scope of a variable

A

The part of a program where a variable can be accessed (Method, Class, Unit)

17
Q

String

A

Data item that consists of combination of characters

18
Q

Unit scope

A

Refers to variables declared in the implementation section of the unit file.

19
Q

Variable

A

A space in RAM where a data item can be kept temporarily