Deck 6: Where Can I Store This Variables and Constants

Full screen (f)
exit full mode
Question
It is customary to enter the variable declaration statements at the end of the procedure.
Use Space or
up arrow
down arrow
to flip the card.
Question
When formatting characters, you can use either an uppercase letter or a lowercase letter as the format specifier.
Question
Programmers refer to the length of time a variable remains in memory as its ____.

A) size
C) usefulness
B) depth
D) lifetime
Question
When you start an application, each program instruction is placed in a ____, where it awaits processing.

A) hard core
C) register
B) memory location
D) processor
Question
Every numeric data type in Visual Basic has a TryText method that can be used to convert text to that numeric data type.
Question
The basic syntax of the TryParse method is ____.

A) TryParse(text, variable) dataType
B) TryParse(text, variable)
C) dataType.TryParse(text, variable)
D) dataType TryParse text, variable
Question
The ____ memory of a computer is composed of memory locations.

A) external
C) internal
B) hidden
D) special
Question
Because control names typically are more concise than variable names, using control names in an expression makes the expression much shorter and easier to understand.
Question
To distinguish the named constants from the variables in a program, many programmers use a modified form of Hungarian notation for the named constant names.
Question
A ____ is a memory location whose value cannot change while the application is running.

A) named constant
C) predefined variable
B) variable
D) touched variable
Question
The desk-check table for a program will contain two columns for each variable.
Question
The TryParse method parses the text, which means it looks at each character in the text, to determine whether the text can be converted to a number of the specified data type.
Question
The formatString argument in the ToString method must take the form "xAA", where AA is the format specifier and x is the precision specifier.
Question
You use a problem's solution-in other words, its output, processing, and input information and its algorithm-to determine the variables to use when coding an application.
Question
____ refers to the area where a variable is recognized in an application's code.

A) Scope
C) Blocking
B) Field of view
D) Object control
Question
You reserve a memory location using a Visual Basic instruction that assigns both a name and data type to the memory location.
Question
When a named constant's value needs to be changed, the programmer must change its value in its declaration statement.
Question
Memory locations are called ____ because their contents can change (vary) as the program is running.

A) variables
C) constants
B) invariables
D) parameters
Question
In addition to reserving (or declaring) variables in a program, you also can declare named constants.
Question
To declare a variable in an event procedure, where most variables are declared, you use the Visual Basic ____ statement.

A) Sub
C) Create
B) New
D) Dim
Question
The format specifier ____ does not include a dollar sign, and negative values are preceded by a minus sign.

A) C or c
C) F or f
B) N or n
D) P or p
Question
Specifying the number of decimal places and the special characters to display in a number is called ____.

A) describing
C) formatting
B) controlling
D) highlighting
Question
You create a named constant using the ____ statement.

A) NamedC
C) NConst
B) Const
D) NoAlter
Question
You can format a number using the syntax ____.

A) variable.ToString(formatString)
B) formatString.ToString(variable)
C) ToString.variable(formatString)
D) variable.formatString(ToString)
Question
A ____ is text that is enclosed in double quotation marks.

A) word
C) word array
B) character list
D) string
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/25
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 6: Where Can I Store This Variables and Constants
1
It is customary to enter the variable declaration statements at the end of the procedure.
False
2
When formatting characters, you can use either an uppercase letter or a lowercase letter as the format specifier.
True
3
Programmers refer to the length of time a variable remains in memory as its ____.

A) size
C) usefulness
B) depth
D) lifetime
D
4
When you start an application, each program instruction is placed in a ____, where it awaits processing.

A) hard core
C) register
B) memory location
D) processor
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
5
Every numeric data type in Visual Basic has a TryText method that can be used to convert text to that numeric data type.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
6
The basic syntax of the TryParse method is ____.

A) TryParse(text, variable) dataType
B) TryParse(text, variable)
C) dataType.TryParse(text, variable)
D) dataType TryParse text, variable
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
7
The ____ memory of a computer is composed of memory locations.

A) external
C) internal
B) hidden
D) special
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
8
Because control names typically are more concise than variable names, using control names in an expression makes the expression much shorter and easier to understand.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
9
To distinguish the named constants from the variables in a program, many programmers use a modified form of Hungarian notation for the named constant names.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
10
A ____ is a memory location whose value cannot change while the application is running.

A) named constant
C) predefined variable
B) variable
D) touched variable
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
11
The desk-check table for a program will contain two columns for each variable.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
12
The TryParse method parses the text, which means it looks at each character in the text, to determine whether the text can be converted to a number of the specified data type.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
13
The formatString argument in the ToString method must take the form "xAA", where AA is the format specifier and x is the precision specifier.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
14
You use a problem's solution-in other words, its output, processing, and input information and its algorithm-to determine the variables to use when coding an application.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
15
____ refers to the area where a variable is recognized in an application's code.

A) Scope
C) Blocking
B) Field of view
D) Object control
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
16
You reserve a memory location using a Visual Basic instruction that assigns both a name and data type to the memory location.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
17
When a named constant's value needs to be changed, the programmer must change its value in its declaration statement.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
18
Memory locations are called ____ because their contents can change (vary) as the program is running.

A) variables
C) constants
B) invariables
D) parameters
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
19
In addition to reserving (or declaring) variables in a program, you also can declare named constants.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
20
To declare a variable in an event procedure, where most variables are declared, you use the Visual Basic ____ statement.

A) Sub
C) Create
B) New
D) Dim
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
21
The format specifier ____ does not include a dollar sign, and negative values are preceded by a minus sign.

A) C or c
C) F or f
B) N or n
D) P or p
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
22
Specifying the number of decimal places and the special characters to display in a number is called ____.

A) describing
C) formatting
B) controlling
D) highlighting
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
23
You create a named constant using the ____ statement.

A) NamedC
C) NConst
B) Const
D) NoAlter
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
24
You can format a number using the syntax ____.

A) variable.ToString(formatString)
B) formatString.ToString(variable)
C) ToString.variable(formatString)
D) variable.formatString(ToString)
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
25
A ____ is text that is enclosed in double quotation marks.

A) word
C) word array
B) character list
D) string
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 25 flashcards in this deck.