Deck 3: Memory Locations and Calculations
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/50
Play
Full screen (f)
Deck 3: Memory Locations and Calculations
1
Unlike a variable's value, a named constant's value cannot be changed while the application is running.
True
2
With implicit type conversions, data loss can occur when a value is converted from one data type to a narrower data type.
True
3
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
A) logical values
B) text
C) floating-point numbers
D) integers
D
4
Decimal, Double, and Single variables can store ____.
A) strings
B) integers
C) imaginary numbers
D) real numbers
A) strings
B) integers
C) imaginary numbers
D) real numbers
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
5
You use the ____ operator to divide two integers, and then return the result as an integer.
A) /
B) *
C) ^
D) \
A) /
B) *
C) ^
D) \
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
6
A variable's ____ indicates where the variable can be used in the application's code.
A) data type
B) scope
C) identifier
D) lifetime
A) data type
B) scope
C) identifier
D) lifetime
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
7
You can prevent many unintentional errors from occurring in an application by declaring the variables using the maximum scope needed.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
8
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
A) compound assignment
B) unary assignment
C) abbreviated assignment
D) arithmetic assignment
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
9
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 50 flashcards in this deck.
Unlock Deck
k this deck
10
____ constants are enclosed in quotation marks.
A) String literal
B) Floating-point character
C) Integer
D) Boolean value
A) String literal
B) Floating-point character
C) Integer
D) Boolean value
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
11
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
A) solid constant
B) firm constant
C) literal constant
D) logical constant
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
12
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
A) square brackets
B) parentheses
C) quotation marks
D) pound signs
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
13
After dividing two numbers, the ____ operator returns the remainder of the division.
A) negation
B) exponential
C) modulus
D) integer division
A) negation
B) exponential
C) modulus
D) integer division
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
14
A variable name must begin with a letter or a(n) ____.
A) colon ( : )
B) underscore ( _ )
C) ampersand ( & )
D) pound sign ( # )
A) colon ( : )
B) underscore ( _ )
C) ampersand ( & )
D) pound sign ( # )
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
15
____ numbers indicate the order in which the computer performs the operation in an expression.
A) Precedence
B) Focus
C) Calculation
D) Order
A) Precedence
B) Focus
C) Calculation
D) Order
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
16
Real numbers are numbers that ____.
A) contain a decimal place
B) contain a place holder
C) are whole numbers
D) are Unicode numbers
A) contain a decimal place
B) contain a place holder
C) are whole numbers
D) are Unicode numbers
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
17
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
A) variable
B) class
C) object
D) data type
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
18
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
A) ToLiteral
B) ConvertString
C) FromString
D) TryParse
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
19
Most classes have one or more ____ that perform a specific task for the class.
A) identifiers
B) methods
C) variables
D) literal constants
A) identifiers
B) methods
C) variables
D) literal constants
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
20
The number 500 and the string "Mary" are examples of literal constants.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
21
The process of locating and correcting the bugs in a program is referred to as ____________________.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
22
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
A) UML
B) external appendices
C) comments
D) variable names
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
23
Match each item with a statement below.
a.valid
f.scope
b.invalid
g.pseudocode
c.named constant
h.lifetime
d.Boolean
i.bug
e.Unicode
An error in the program's code.
a.valid
f.scope
b.invalid
g.pseudocode
c.named constant
h.lifetime
d.Boolean
i.bug
e.Unicode
An error in the program's code.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
24
Match each item with a statement below.
a.valid
f.scope
b.invalid
g.pseudocode
c.named constant
h.lifetime
d.Boolean
i.bug
e.Unicode
A data type that stores either True or False values.
a.valid
f.scope
b.invalid
g.pseudocode
c.named constant
h.lifetime
d.Boolean
i.bug
e.Unicode
A data type that stores either True or False values.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
25
Match each item with a statement below.
a.valid
f.scope
b.invalid
g.pseudocode
c.named constant
h.lifetime
d.Boolean
i.bug
e.Unicode
Indicates how long the variable remains in the computer's internal memory.
a.valid
f.scope
b.invalid
g.pseudocode
c.named constant
h.lifetime
d.Boolean
i.bug
e.Unicode
Indicates how long the variable remains in the computer's internal memory.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
26
The ____________________ indicates the type of data.for example, numeric or string.the memory location will store.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
27
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
A) promoted
B) demoted
C) compressed
D) conducted
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
28
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
A) input/output
B) flowline
C) process
D) content
Unlock Deck
Unlock for access to all 50 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
A) promoted
B) demoted
C) expanded
D) conducted
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
30
A(n) ____ string is a set of quotation marks with nothing between them.
A) short-length
B) literal
C) constant
D) empty
A) short-length
B) literal
C) constant
D) empty
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
31
Match each item with a statement below.
a.valid
f.scope
b.invalid
g.pseudocode
c.named constant
h.lifetime
d.Boolean
i.bug
e.Unicode
Uses short phrases to describe the steps a procedure must take to accomplish its goal.
a.valid
f.scope
b.invalid
g.pseudocode
c.named constant
h.lifetime
d.Boolean
i.bug
e.Unicode
Uses short phrases to describe the steps a procedure must take to accomplish its goal.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
32
You create a named constant using the ____________________ statement.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
33
Match each item with a statement below.
a.valid
f.scope
b.invalid
g.pseudocode
c.named constant
h.lifetime
d.Boolean
i.bug
e.Unicode
Indicates where the variable can be used in the application's code.
a.valid
f.scope
b.invalid
g.pseudocode
c.named constant
h.lifetime
d.Boolean
i.bug
e.Unicode
Indicates where the variable can be used in the application's code.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
34
Match each item with a statement below.
a.valid
f.scope
b.invalid
g.pseudocode
c.named constant
h.lifetime
d.Boolean
i.bug
e.Unicode
The universal coding scheme for characters.
a.valid
f.scope
b.invalid
g.pseudocode
c.named constant
h.lifetime
d.Boolean
i.bug
e.Unicode
The universal coding scheme for characters.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
35
The method's ___________________ represent information that the method needs to perform its task.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
36
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
A) converting
B) promoting
C) debugging
D) formatting
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
37
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 50 flashcards in this deck.
Unlock Deck
k this deck
38
Match each item with a statement below.
a.valid
f.scope
b.invalid
g.pseudocode
c.named constant
h.lifetime
d.Boolean
i.bug
e.Unicode
Data that the application is expecting the user to enter.
a.valid
f.scope
b.invalid
g.pseudocode
c.named constant
h.lifetime
d.Boolean
i.bug
e.Unicode
Data that the application is expecting the user to enter.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
39
Match each item with a statement below.
a.valid
f.scope
b.invalid
g.pseudocode
c.named constant
h.lifetime
d.Boolean
i.bug
e.Unicode
Data that the application is not expecting the user to enter.
a.valid
f.scope
b.invalid
g.pseudocode
c.named constant
h.lifetime
d.Boolean
i.bug
e.Unicode
Data that the application is not expecting the user to enter.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
40
Match each item with a statement below.
a.valid
f.scope
b.invalid
g.pseudocode
c.named constant
h.lifetime
d.Boolean
i.bug
e.Unicode
A memory location inside the computer whose value cannot be changed while the application is running.
a.valid
f.scope
b.invalid
g.pseudocode
c.named constant
h.lifetime
d.Boolean
i.bug
e.Unicode
A memory location inside the computer whose value cannot be changed while the application is running.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
41
Why is it important to declare the memory locations used in an application?
Unlock Deck
Unlock for access to all 50 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 50 flashcards in this deck.
Unlock Deck
k this deck
43
In Visual Basic, what can you do to flag any undeclared variables in your code?
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
44
What are comments and how are they created?
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
45
What is a static variable?
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
46
What is a class-level variable?
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
47
What is the difference between pseudocode and a flowchart?
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
48
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 50 flashcards in this deck.
Unlock Deck
k this deck
49
Why is it best to avoid using the Object data type?
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
50
What is a procedure-level variable?
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck