Deck 4: Memory Locations and Calculations

Full screen (f)
exit full mode
Question
You can prevent many unintentional errors from occurring in an application by declaring the variables using the maximum scope needed.
Use Space or
up arrow
down arrow
to flip the card.
Question
Real numbers are numbers that ____.

A) contain a decimal place
B) contain a place holder
C) are whole numbers
D) are Unicode numbers
Question
Unlike a variable's value, a named constant's value cannot be changed while the application is running.
Question
When an expression contains more than one operator having the same priority, those operators are evaluated from right to left.
Question
You can use ____ to change the order in which the operators in an expression are evaluated.

A) square brackets
B) parentheses
C) quotation marks
D) pound signs
Question
Variables assigned the Integer, Long, or Short data type can store ____, which are whole numbers - positive or negative numbers without any decimal places.

A) logical values
B) text
C) floating-point numbers
D) integers
Question
With implicit type conversions, data loss can occur when a value is converted from one data type to a narrower data type.
Question
The number 500 and the string "Mary" are examples of literal constants.
Question
You use the ____ operator to divide two integers, and then return the result as an integer.

A) /
B) *
C) ^
D) \
Question
A variable's ____ indicates where the variable can be used in the application's code.

A) data type
B) scope
C) identifier
D) lifetime
Question
____ numbers indicate the order in which the computer performs the operation in an expression.

A) Precedence
B) Focus
C) Calculation
D) Order
Question
A ____ is an item of data whose value does not change during run time.

A) solid constant
B) firm constant
C) literal constant
D) logical constant
Question
All of the Visual Basic numeric data types have a ____ method whose task is to convert a string to that particular data type.

A) ToLiteral
B) ConvertString
C) FromString
D) TryParse
Question
Most classes have one or more ____ that perform a specific task for the class.

A) identifiers
B) methods
C) variables
D) literal constants
Question
The ____ operators allow you to abbreviate an assignment statement that contains an arithmetic operator.

A) compound assignment
B) unary assignment
C) abbreviated assignment
D) arithmetic assignment
Question
____ constants are enclosed in quotation marks.

A) String literal
B) Floating-point character
C) Integer
D) Boolean value
Question
A variable name must begin with a letter or a(n) ____.

A) colon ( : )
B) underscore ( _ )
C) ampersand ( & )
D) pound sign ( # )
Question
A(n) ____ is a computer memory location that a programmer uses to temporarily store data while an application is running.

A) variable
B) class
C) object
D) data type
Question
Decimal, Double, and Single variables can store ____.

A) strings
B) integers
C) imaginary numbers
D) real numbers
Question
After dividing two numbers, the ____ operator returns the remainder of the division.

A) negation
B) exponential
C) modulus
D) integer division
Question
The ____________________ indicates the type of data-for example, numeric or string-the memory location will store.
Question
Why is it best to avoid using the Object data type?
Question
What is the difference between pseudocode and a flowchart?
Question
What is a class-level variable?
Question
What is a static variable?
Question
Programmers use ____ to document a procedure's purpose and also to explain various sections of a procedure's code to make the code more readable and easier to understand by anyone viewing it.

A) UML
B) external appendices
C) comments
D) variable names
Question
What is implicit conversion, when does data loss occur with implicit type conversions and how is it prevented?
Question
The method's ___________________ represent information that the method needs to perform its task.
Question
When a value is converted from one data type to another data type that can store larger numbers, the value is said to be ____.

A) promoted
B) demoted
C) expanded
D) conducted
Question
Specifying the number of decimal places and the special characters to display in a number is called ____.

A) converting
B) promoting
C) debugging
D) formatting
Question
The process of locating and correcting the bugs in a program is referred to as ____________________.
Question
A(n) ____________________ character forces a literal constant to assume a data type other than the one its form indicates.
Question
The rectangles in a flowchart used to represent tasks such as making assignments and calculations are called ____ symbols.

A) input/output
B) flowline
C) process
D) content
Question
What are comments and how are they created?
Question
When a value is converted from one data type to another data type that can store only smaller numbers, the value is said to be ____.

A) promoted
B) demoted
C) compressed
D) conducted
Question
Why is it important to declare the memory locations used in an application?
Question
A(n) ____ string is a set of quotation marks with nothing between them.

A) short-length
B) literal
C) constant
D) empty
Question
What is a procedure-level variable?
Question
You create a named constant using the ____________________ statement.
Question
In Visual Basic, what can you do to flag any undeclared variables in your code?
Question
Match between columns
A memory location inside the computer whose value cannot be changed while the application is running.
lifetime
A memory location inside the computer whose value cannot be changed while the application is running.
Boolean
A memory location inside the computer whose value cannot be changed while the application is running.
invalid
A memory location inside the computer whose value cannot be changed while the application is running.
bug
A memory location inside the computer whose value cannot be changed while the application is running.
Unicode
A memory location inside the computer whose value cannot be changed while the application is running.
valid
A memory location inside the computer whose value cannot be changed while the application is running.
scope
A memory location inside the computer whose value cannot be changed while the application is running.
named constant
A memory location inside the computer whose value cannot be changed while the application is running.
pseudocode
Indicates how long the variable remains in the computer's internal memory.
lifetime
Indicates how long the variable remains in the computer's internal memory.
Boolean
Indicates how long the variable remains in the computer's internal memory.
invalid
Indicates how long the variable remains in the computer's internal memory.
bug
Indicates how long the variable remains in the computer's internal memory.
Unicode
Indicates how long the variable remains in the computer's internal memory.
valid
Indicates how long the variable remains in the computer's internal memory.
scope
Indicates how long the variable remains in the computer's internal memory.
named constant
Indicates how long the variable remains in the computer's internal memory.
pseudocode
An error in the program's code.
lifetime
An error in the program's code.
Boolean
An error in the program's code.
invalid
An error in the program's code.
bug
An error in the program's code.
Unicode
An error in the program's code.
valid
An error in the program's code.
scope
An error in the program's code.
named constant
An error in the program's code.
pseudocode
The universal coding scheme for characters.
lifetime
The universal coding scheme for characters.
Boolean
The universal coding scheme for characters.
invalid
The universal coding scheme for characters.
bug
The universal coding scheme for characters.
Unicode
The universal coding scheme for characters.
valid
The universal coding scheme for characters.
scope
The universal coding scheme for characters.
named constant
The universal coding scheme for characters.
pseudocode
A data type that stores either True or False values.
lifetime
A data type that stores either True or False values.
Boolean
A data type that stores either True or False values.
invalid
A data type that stores either True or False values.
bug
A data type that stores either True or False values.
Unicode
A data type that stores either True or False values.
valid
A data type that stores either True or False values.
scope
A data type that stores either True or False values.
named constant
A data type that stores either True or False values.
pseudocode
Data that the application is not expecting the user to enter.
lifetime
Data that the application is not expecting the user to enter.
Boolean
Data that the application is not expecting the user to enter.
invalid
Data that the application is not expecting the user to enter.
bug
Data that the application is not expecting the user to enter.
Unicode
Data that the application is not expecting the user to enter.
valid
Data that the application is not expecting the user to enter.
scope
Data that the application is not expecting the user to enter.
named constant
Data that the application is not expecting the user to enter.
pseudocode
Indicates where the variable can be used in the application's code.
lifetime
Indicates where the variable can be used in the application's code.
Boolean
Indicates where the variable can be used in the application's code.
invalid
Indicates where the variable can be used in the application's code.
bug
Indicates where the variable can be used in the application's code.
Unicode
Indicates where the variable can be used in the application's code.
valid
Indicates where the variable can be used in the application's code.
scope
Indicates where the variable can be used in the application's code.
named constant
Indicates where the variable can be used in the application's code.
pseudocode
Uses short phrases to describe the steps a procedure must take to accomplish its goal.
lifetime
Uses short phrases to describe the steps a procedure must take to accomplish its goal.
Boolean
Uses short phrases to describe the steps a procedure must take to accomplish its goal.
invalid
Uses short phrases to describe the steps a procedure must take to accomplish its goal.
bug
Uses short phrases to describe the steps a procedure must take to accomplish its goal.
Unicode
Uses short phrases to describe the steps a procedure must take to accomplish its goal.
valid
Uses short phrases to describe the steps a procedure must take to accomplish its goal.
scope
Uses short phrases to describe the steps a procedure must take to accomplish its goal.
named constant
Uses short phrases to describe the steps a procedure must take to accomplish its goal.
pseudocode
Data that the application is expecting the user to enter.
lifetime
Data that the application is expecting the user to enter.
Boolean
Data that the application is expecting the user to enter.
invalid
Data that the application is expecting the user to enter.
bug
Data that the application is expecting the user to enter.
Unicode
Data that the application is expecting the user to enter.
valid
Data that the application is expecting the user to enter.
scope
Data that the application is expecting the user to enter.
named constant
Data that the application is expecting the user to enter.
pseudocode
Question
What is the difference between a logic error and a run time error?
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/42
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 4: Memory Locations and Calculations
1
You can prevent many unintentional errors from occurring in an application by declaring the variables using the maximum scope needed.
False
2
Real numbers are numbers that ____.

A) contain a decimal place
B) contain a place holder
C) are whole numbers
D) are Unicode numbers
A
3
Unlike a variable's value, a named constant's value cannot be changed while the application is running.
True
4
When an expression contains more than one operator having the same priority, those operators are evaluated from right to left.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
5
You can use ____ to change the order in which the operators in an expression are evaluated.

A) square brackets
B) parentheses
C) quotation marks
D) pound signs
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
6
Variables assigned the Integer, Long, or Short data type can store ____, which are whole numbers - positive or negative numbers without any decimal places.

A) logical values
B) text
C) floating-point numbers
D) integers
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
7
With implicit type conversions, data loss can occur when a value is converted from one data type to a narrower data type.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
8
The number 500 and the string "Mary" are examples of literal constants.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
9
You use the ____ operator to divide two integers, and then return the result as an integer.

A) /
B) *
C) ^
D) \
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
10
A variable's ____ indicates where the variable can be used in the application's code.

A) data type
B) scope
C) identifier
D) lifetime
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
11
____ numbers indicate the order in which the computer performs the operation in an expression.

A) Precedence
B) Focus
C) Calculation
D) Order
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
12
A ____ is an item of data whose value does not change during run time.

A) solid constant
B) firm constant
C) literal constant
D) logical constant
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
13
All of the Visual Basic numeric data types have a ____ method whose task is to convert a string to that particular data type.

A) ToLiteral
B) ConvertString
C) FromString
D) TryParse
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
14
Most classes have one or more ____ that perform a specific task for the class.

A) identifiers
B) methods
C) variables
D) literal constants
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
15
The ____ operators allow you to abbreviate an assignment statement that contains an arithmetic operator.

A) compound assignment
B) unary assignment
C) abbreviated assignment
D) arithmetic assignment
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
16
____ constants are enclosed in quotation marks.

A) String literal
B) Floating-point character
C) Integer
D) Boolean value
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
17
A variable name must begin with a letter or a(n) ____.

A) colon ( : )
B) underscore ( _ )
C) ampersand ( & )
D) pound sign ( # )
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
18
A(n) ____ is a computer memory location that a programmer uses to temporarily store data while an application is running.

A) variable
B) class
C) object
D) data type
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
19
Decimal, Double, and Single variables can store ____.

A) strings
B) integers
C) imaginary numbers
D) real numbers
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
20
After dividing two numbers, the ____ operator returns the remainder of the division.

A) negation
B) exponential
C) modulus
D) integer division
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
21
The ____________________ indicates the type of data-for example, numeric or string-the memory location will store.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
22
Why is it best to avoid using the Object data type?
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
23
What is the difference between pseudocode and a flowchart?
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
24
What is a class-level variable?
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
25
What is a static variable?
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
26
Programmers use ____ to document a procedure's purpose and also to explain various sections of a procedure's code to make the code more readable and easier to understand by anyone viewing it.

A) UML
B) external appendices
C) comments
D) variable names
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
27
What is implicit conversion, when does data loss occur with implicit type conversions and how is it prevented?
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
28
The method's ___________________ represent information that the method needs to perform its task.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
29
When a value is converted from one data type to another data type that can store larger numbers, the value is said to be ____.

A) promoted
B) demoted
C) expanded
D) conducted
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
30
Specifying the number of decimal places and the special characters to display in a number is called ____.

A) converting
B) promoting
C) debugging
D) formatting
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
31
The process of locating and correcting the bugs in a program is referred to as ____________________.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
32
A(n) ____________________ character forces a literal constant to assume a data type other than the one its form indicates.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
33
The rectangles in a flowchart used to represent tasks such as making assignments and calculations are called ____ symbols.

A) input/output
B) flowline
C) process
D) content
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
34
What are comments and how are they created?
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
35
When a value is converted from one data type to another data type that can store only smaller numbers, the value is said to be ____.

A) promoted
B) demoted
C) compressed
D) conducted
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
36
Why is it important to declare the memory locations used in an application?
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
37
A(n) ____ string is a set of quotation marks with nothing between them.

A) short-length
B) literal
C) constant
D) empty
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
38
What is a procedure-level variable?
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
39
You create a named constant using the ____________________ statement.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
40
In Visual Basic, what can you do to flag any undeclared variables in your code?
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
41
Match between columns
A memory location inside the computer whose value cannot be changed while the application is running.
lifetime
A memory location inside the computer whose value cannot be changed while the application is running.
Boolean
A memory location inside the computer whose value cannot be changed while the application is running.
invalid
A memory location inside the computer whose value cannot be changed while the application is running.
bug
A memory location inside the computer whose value cannot be changed while the application is running.
Unicode
A memory location inside the computer whose value cannot be changed while the application is running.
valid
A memory location inside the computer whose value cannot be changed while the application is running.
scope
A memory location inside the computer whose value cannot be changed while the application is running.
named constant
A memory location inside the computer whose value cannot be changed while the application is running.
pseudocode
Indicates how long the variable remains in the computer's internal memory.
lifetime
Indicates how long the variable remains in the computer's internal memory.
Boolean
Indicates how long the variable remains in the computer's internal memory.
invalid
Indicates how long the variable remains in the computer's internal memory.
bug
Indicates how long the variable remains in the computer's internal memory.
Unicode
Indicates how long the variable remains in the computer's internal memory.
valid
Indicates how long the variable remains in the computer's internal memory.
scope
Indicates how long the variable remains in the computer's internal memory.
named constant
Indicates how long the variable remains in the computer's internal memory.
pseudocode
An error in the program's code.
lifetime
An error in the program's code.
Boolean
An error in the program's code.
invalid
An error in the program's code.
bug
An error in the program's code.
Unicode
An error in the program's code.
valid
An error in the program's code.
scope
An error in the program's code.
named constant
An error in the program's code.
pseudocode
The universal coding scheme for characters.
lifetime
The universal coding scheme for characters.
Boolean
The universal coding scheme for characters.
invalid
The universal coding scheme for characters.
bug
The universal coding scheme for characters.
Unicode
The universal coding scheme for characters.
valid
The universal coding scheme for characters.
scope
The universal coding scheme for characters.
named constant
The universal coding scheme for characters.
pseudocode
A data type that stores either True or False values.
lifetime
A data type that stores either True or False values.
Boolean
A data type that stores either True or False values.
invalid
A data type that stores either True or False values.
bug
A data type that stores either True or False values.
Unicode
A data type that stores either True or False values.
valid
A data type that stores either True or False values.
scope
A data type that stores either True or False values.
named constant
A data type that stores either True or False values.
pseudocode
Data that the application is not expecting the user to enter.
lifetime
Data that the application is not expecting the user to enter.
Boolean
Data that the application is not expecting the user to enter.
invalid
Data that the application is not expecting the user to enter.
bug
Data that the application is not expecting the user to enter.
Unicode
Data that the application is not expecting the user to enter.
valid
Data that the application is not expecting the user to enter.
scope
Data that the application is not expecting the user to enter.
named constant
Data that the application is not expecting the user to enter.
pseudocode
Indicates where the variable can be used in the application's code.
lifetime
Indicates where the variable can be used in the application's code.
Boolean
Indicates where the variable can be used in the application's code.
invalid
Indicates where the variable can be used in the application's code.
bug
Indicates where the variable can be used in the application's code.
Unicode
Indicates where the variable can be used in the application's code.
valid
Indicates where the variable can be used in the application's code.
scope
Indicates where the variable can be used in the application's code.
named constant
Indicates where the variable can be used in the application's code.
pseudocode
Uses short phrases to describe the steps a procedure must take to accomplish its goal.
lifetime
Uses short phrases to describe the steps a procedure must take to accomplish its goal.
Boolean
Uses short phrases to describe the steps a procedure must take to accomplish its goal.
invalid
Uses short phrases to describe the steps a procedure must take to accomplish its goal.
bug
Uses short phrases to describe the steps a procedure must take to accomplish its goal.
Unicode
Uses short phrases to describe the steps a procedure must take to accomplish its goal.
valid
Uses short phrases to describe the steps a procedure must take to accomplish its goal.
scope
Uses short phrases to describe the steps a procedure must take to accomplish its goal.
named constant
Uses short phrases to describe the steps a procedure must take to accomplish its goal.
pseudocode
Data that the application is expecting the user to enter.
lifetime
Data that the application is expecting the user to enter.
Boolean
Data that the application is expecting the user to enter.
invalid
Data that the application is expecting the user to enter.
bug
Data that the application is expecting the user to enter.
Unicode
Data that the application is expecting the user to enter.
valid
Data that the application is expecting the user to enter.
scope
Data that the application is expecting the user to enter.
named constant
Data that the application is expecting the user to enter.
pseudocode
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
42
What is the difference between a logic error and a run time error?
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 42 flashcards in this deck.