Chapter 4 - 5 Flashcards

1
Q

ANSI, ANSCII

A

The value of each character produced by a keyboard

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

Relational Operators

A

Symbol Numeric String Date
= equal to identical to same as

< > not equal to different from different than

<                less than        precedes           precedes
                                      alphabetically    chronologically

>             greater than       follows                follows
                                      alphabetically    chronologically

= greater than follows follows
or equal to alphabetically chronologically
or is identical to or the same as

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

Logical Operators

A

cond1 And cond2
is true if both cond1 and cond2 are true. Otherwise, it is false.

cond1 Or cond2
is true if either cond1 or cond2 (or both) is true. Otherwise, it is false.

Not cond1
is true if cond1 is false, and is false if cond1 is true.

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

Boolean Data Type

A

any expression that evaluates to either True or False

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

IF Block

A

allows a program to decide on a course of action based on whether a certain condition is true or false

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

Nested IF

A

a situation in which an action part of an If blocks consists of another If block

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

Else IF

A

an extension of the if block allows for more than two possible alternatives with the inclusion of this type of clause

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

Select Case Block

A

an efficient decision-making structure that simplifies choosing among several actions. it avoids complex If constructs; determined by the value of an expression called a selector

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

List Box (Add)

A

lstBox.Items.Add()

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

Radio Button

A

allows the user to make a single choice from among several options

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

Check Box

A

a small square and a caption that presents the user with a yes/no choice

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

Group Box

A

groups radio buttons together

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

Function

A

used to break complex problems into small problems to be solved one at a time; has a single output that can be of any data type; returns the output

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

Sub Procedure

A

used to break complex problems into small problems to be solved one at a time; function procedures that don’t return values; most common uses are to receive input, process input, or display output

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

Header

A

the first line of the procedure; contains the parameters

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

Parameters

A

the variables appearing in the header of a procedure

17
Q

Arguments

A

the variable in parentheses after a function call; must match the parameters of a Sub or Function statement in number, type, and order, but need not have the same names

18
Q

Call

A

Name of function used in event to trigger said function

19
Q

Pass

A

gives the value found via the function to the event

20
Q

Return

A

give the output of a function

21
Q

Passing by Value (ByVal)

A

passing a copy of a variable to your subprocedure; you can make changes to the copy and the original will not be altered

22
Q

Passing by Reference (ByRef)

A

you are not handing over a copy of the original variable but pointing to the original variable; used primarily to acquire input

23
Q

Scope of a Variable/Constant

A

the portion of the program that can refer to it

24
Q

Block-Level Scope

A

a variable or constant declared inside an If or a Select Case block

25
Q

Class-Level Scope

A

a variable or constant declared outside a procedure and can be referred to by any procedure

26
Q

Local Variable/Constant

A

declared in a procedure but not in a block; can be referred to anywhere inside the procedure, and nowhere else

27
Q

Lifetime of a Variable/Constant

A

the period during which a variable or constant remains in memory

28
Q

Advantages of Functions and Sub Procedures

A

They break down large problems into smaller subproblems that can be tested and coded more easily