Deck 4: Memory Locations and Calculations

ملء الشاشة (f)
exit full mode
سؤال
You can prevent many unintentional errors from occurring in an application by declaring the variables using the maximum scope needed.
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
Real numbers are numbers that ____.

A) contain a decimal place
B) contain a place holder
C) are whole numbers
D) are Unicode numbers
سؤال
Unlike a variable's value, a named constant's value cannot be changed while the application is running.
سؤال
When an expression contains more than one operator having the same priority, those operators are evaluated from right to left.
سؤال
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
سؤال
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
سؤال
With implicit type conversions, data loss can occur when a value is converted from one data type to a narrower data type.
سؤال
The number 500 and the string "Mary" are examples of literal constants.
سؤال
You use the ____ operator to divide two integers, and then return the result as an integer.

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

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

A) Precedence
B) Focus
C) Calculation
D) Order
سؤال
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
سؤال
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
سؤال
Most classes have one or more ____ that perform a specific task for the class.

A) identifiers
B) methods
C) variables
D) literal constants
سؤال
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
سؤال
____ constants are enclosed in quotation marks.

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

A) colon ( : )
B) underscore ( _ )
C) ampersand ( & )
D) pound sign ( # )
سؤال
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
سؤال
Decimal, Double, and Single variables can store ____.

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

A) negation
B) exponential
C) modulus
D) integer division
سؤال
The ____________________ indicates the type of data-for example, numeric or string-the memory location will store.
سؤال
Why is it best to avoid using the Object data type?
سؤال
What is the difference between pseudocode and a flowchart?
سؤال
What is a class-level variable?
سؤال
What is a static variable?
سؤال
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
سؤال
What is implicit conversion, when does data loss occur with implicit type conversions and how is it prevented?
سؤال
The method's ___________________ represent information that the method needs to perform its task.
سؤال
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
سؤال
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
سؤال
The process of locating and correcting the bugs in a program is referred to as ____________________.
سؤال
A(n) ____________________ character forces a literal constant to assume a data type other than the one its form indicates.
سؤال
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
سؤال
What are comments and how are they created?
سؤال
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
سؤال
Why is it important to declare the memory locations used in an application?
سؤال
A(n) ____ string is a set of quotation marks with nothing between them.

A) short-length
B) literal
C) constant
D) empty
سؤال
What is a procedure-level variable?
سؤال
You create a named constant using the ____________________ statement.
سؤال
In Visual Basic, what can you do to flag any undeclared variables in your code?
سؤال
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
سؤال
What is the difference between a logic error and a run time error?
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/42
auto play flashcards
العب
simple tutorial
ملء الشاشة (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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
8
The number 500 and the string "Mary" are examples of literal constants.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
9
You use the ____ operator to divide two integers, and then return the result as an integer.

A) /
B) *
C) ^
D) \
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
16
____ constants are enclosed in quotation marks.

A) String literal
B) Floating-point character
C) Integer
D) Boolean value
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
17
A variable name must begin with a letter or a(n) ____.

A) colon ( : )
B) underscore ( _ )
C) ampersand ( & )
D) pound sign ( # )
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
19
Decimal, Double, and Single variables can store ____.

A) strings
B) integers
C) imaginary numbers
D) real numbers
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
21
The ____________________ indicates the type of data-for example, numeric or string-the memory location will store.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
22
Why is it best to avoid using the Object data type?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
23
What is the difference between pseudocode and a flowchart?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
24
What is a class-level variable?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
25
What is a static variable?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
27
What is implicit conversion, when does data loss occur with implicit type conversions and how is it prevented?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
28
The method's ___________________ represent information that the method needs to perform its task.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
31
The process of locating and correcting the bugs in a program is referred to as ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
32
A(n) ____________________ character forces a literal constant to assume a data type other than the one its form indicates.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
34
What are comments and how are they created?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
36
Why is it important to declare the memory locations used in an application?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
38
What is a procedure-level variable?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
39
You create a named constant using the ____________________ statement.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
40
In Visual Basic, what can you do to flag any undeclared variables in your code?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
42
What is the difference between a logic error and a run time error?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.