LESSON 8: VARIABLES AND CONSTANT Flashcards

1
Q

introduced flowcharts in 1921.

A

Frank Gilberth

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

Flowcharts are called ______ at the beginning.

A

Process Flow Charts

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

define the visual appearance and behavior of flowchart symbols themselves

A

Symbol properties

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

represent the data or information flowing through the flowchart

A

Data properties

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

This symbol is used to mark the start and the end of the list of instructions. Start is used to mark the starting point and the End
is of the line flowchart.

A

Terminal Block

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

This shows the direction of the flowchart

A

Flow lines

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

The parallelogram symbol is used for input and output instruction. For input the instruction that can be used is Read or Input, followed by a list of variables separated by comma. For output the
instruction that can be used is Display or Print, followed by a list of variables and or
text that will be displayed or printed.

A

Input/Output Block

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

This symbol is used to process
calculations. Formulas are usually entered in this section of the flowchart. Formulas include variables that will be replaced by figures entered by the user. Activities that are be performed are also included.

A

Processing Block

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

A diamond shaped symbol used to indicate decisions. Done in question form and is answerable by yes or no. Uses logical relations such as equal, not equal, greater than, greater than equal, less than and less than equal.

A

Decision Block

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

Flowcharts are written from top to button, left to right. Once the bottom of the left side is reached continuation of the flowchart can be at the right side of the same page.

A

On-Page Connector

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

This symbol is used if the flowchart is to be continued on the next page.

A

Off Page Connector

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
  • This variable type holds a value of true or false.
  • Internally these are actually stored as the numbers 1 and 0 representing true and false respectively.
    -Boolean values are used in conditional statements to decide whether particular parts of Visual Basic code should be executed ore not.
A

Visual Basic Boolean variable

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

Rules when naming the variables in Visual Basic
2012

A
  • It must be less than 255 characters
  • No spacing is allowed
  • It must not begin with a number
  • Period is not permitted
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q
  • This variable type holds a single character (such as the letter “B”).
  • The value of a Char can be any character.
  • Internally, a number in the range of 0 to 65,553 is used to represent the character value as defined by
    the ASCII table.
A

Char variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q
  • This variable type holds a positive number in the range 0 to 255.
  • Due to limited range, byte variable should be used with caution.
  • An attempt to assign a negative value or a value greater than 255 to a Visual Basic Byte variable will
    result in an error.
A

Byte variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q
  • This variable type holds a date and time value.
  • Dates are declared in the form #mm/dd/yyyy#. For example, May 23,2007 would be declared as
    #5/23/2007#.
  • Visual Basic provides a number of mechanisms for working with Date variables (such as calculating a
    date six months from today’s date).
A

Visual Basic Date variable

17
Q
  • This variable type can store either a whole number or a decimal number up to 29 decimal places.
  • When working with whole numbers, however, it is recommended that the Integer variable type be
    used as this is more memory efficient than the Decimal variable type.
A

Decimal variable

18
Q
  • This variable type is used to store either very large numbers, or small numbers requiring more than 28
    decimal places.
  • To be precise, it can store positive integers in the range 4.9406564581246544E-324 to-4.94065645841246544E-324.
  • Double variables are typically used when developing scientific applications using visual basic and, as such, are generally not used by the average developer.
A

Visual Basic Double variable

19
Q
  • This variable type is used to store whole numbers between-2,147,483,648 and 2,147,483,648.
  • The integer variable cannot be used to store numbers containing decimals.
A

Visual Basic Integer variable

19
Q
  • It is a catch-all variable type which can be used to store a value of any data type.
  • Due to its flexibility it reserves more memory than most variable types.
  • For this reason, it is more efficient to use the correct variable type for the value you need to store
    rather than use the Object variable type.
A

Object variable

20
Q

This variable type is used to store whole numbers ranging from -9,233,372,036,854,775,808 to
9,233,372,036,854,775,807.

A

Visual Basic Long variable

20
Q

This variable type is used to store whole numbers ranging from -32,768 to 32,767.

A

Short variable

21
Q
  • This variable type stores multiple characters that make up words or sentences.
  • String variables are encapsulated in double-quotation marks (“). For example “Hello, this is a test”.
A

String variable

22
Q

When you declare a variable in a procedure, the variable is called

A

Procedure-Level Variable.

23
Q

have procedure scope because they can be used only by the
procedure in which they are declared Procedure-level variables are typically declared
at the beginning of a procedure, and they remain in the computer’s internal memory
only while the procedure is running.

A

Procedure-level variables

24
Q

indicates where the variable can be used in an application’s cod

A

Variable’s Scope

25
Q

indicates how long the variable remains in the computer’s internal memory.

A

Lifetime

26
Q

In programming, variables can be declared using

A

Dim, Private, or Static keywords.

27
Q

are used for procedure-level and class-level variables, respectively

A

Dim and Private

28
Q

is used for declaring a special type of procedure-level variable called a Static Variable.

A

Static keyword

29
Q

procedure-level variables
that remain in memory and retain their value even after the procedure ends.

A

Static variables

30
Q

is a memory location inside the computer. You create this by using the CONST statement.

A

Named Constant

31
Q

are used to perform many of the familiar arithmetic operations that
involve the calculation of numeric values represented by literals, variables, other expressions, functions and property of calls, and constants.

A

Arithmetic Operator