Deck 5: The Secret Code Assignment Statements

Full screen (f)
exit full mode
Question
A comment is referred to as ____ documentation.

A) external
C) revealed
B) hidden
D) internal
Use Space or
up arrow
down arrow
to flip the card.
Question
The syntax of the Val function is Val(text), where text is the characters you want treated as a number.
Question
Many programmers use comments to document a procedure's purpose, as well as to explain various sections of the procedure's code.
Question
When creating a comment in a program, a space is required to separate the apostrophe from the comment itself.
Question
You instruct the computer to perform a calculation by writing an arithmetic expression that contains one or more arithmetic operators.
Question
For a text argument in the Val function to be converted to a number, it must contain only numbers and an optional period.
Question
Comments make the code less readable but easier to understand by anyone viewing it.
Question
When an invalid character is encountered in a text argument in a Val function, the Val function notes an error and continues the process.
Question
Coding the algorithm is the second step in the problem-solving process.
Question
The ____ function temporarily converts one or more characters to a number, and then returns the number.

A) Value
C) Number
B) Change
D) Val
Question
You might use the integer division operator in a program that determines the number of quarters, dimes, and nickels to return as change to a customer.
Question
In the order of precedence, an exponentiation operator has a precedence number of 1.
Question
A(n) ____ box is designed to accept information from the user, and it automatically stores the information in its Text property.

A) data
C) entry
B) text
D) information
Question
A ____ is a predefined procedure that performs a specific task and then returns a value after completing the task.

A) sub
C) method
B) function
D) routine
Question
An ____ represents information that is passed to the function while the function is processing.

A) argument
C) object
B) item
D) assignment
Question
A ____ is a message to the person reading the code.

A) comment
C) heading
B) header
D) footer
Question
The function Val(txtSales.Text) returns the number ____ when the txtSales control is empty.

A) -1
C) 1
B) 0
D) 2
Question
In the order of precedence, the modulus operator has a lower priority than the addition and subtraction operators.
Question
You create a comment in Visual Basic by placing a(n) ____ before the text that represents the comment.

A) period
C) apostrophe
B) exclamation mark
D) asterisk
Question
The modulus operator cannot be used to divide numbers that contain a decimal place.
Question
You use the ____ operator ( \ ) to divide two integers (whole numbers), and then return the result as an integer.

A) division
C) whole division
B) modulus
D) integer division
Question
____ indicate the order in which the computer performs the operation in an expression.

A) Order numbers
C) Precedence numbers
B) Operation order numbers
D) Operation numbers
Question
A(n) ____ is used to assign a value to something (such as the property of a control) while an application is running.

A) assignment statement
C) selection statement
B) loop statement
D) decision statement
Question
The equal sign in an assignment statement is referred to as the ____.

A) assignment unit
C) assignment operator
B) assignment controller
D) assignment status
Question
After dividing the numbers, the ____ operator returns the remainder of the division.

A) division
C) remainder
B) modulus
D) integer division
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 5: The Secret Code Assignment Statements
1
A comment is referred to as ____ documentation.

A) external
C) revealed
B) hidden
D) internal
D
2
The syntax of the Val function is Val(text), where text is the characters you want treated as a number.
True
3
Many programmers use comments to document a procedure's purpose, as well as to explain various sections of the procedure's code.
True
4
When creating a comment in a program, a space is required to separate the apostrophe from the comment itself.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
5
You instruct the computer to perform a calculation by writing an arithmetic expression that contains one or more arithmetic operators.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
6
For a text argument in the Val function to be converted to a number, it must contain only numbers and an optional period.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
7
Comments make the code less readable but easier to understand by anyone viewing it.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
8
When an invalid character is encountered in a text argument in a Val function, the Val function notes an error and continues the process.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
9
Coding the algorithm is the second step in the problem-solving process.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
10
The ____ function temporarily converts one or more characters to a number, and then returns the number.

A) Value
C) Number
B) Change
D) Val
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
11
You might use the integer division operator in a program that determines the number of quarters, dimes, and nickels to return as change to a customer.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
12
In the order of precedence, an exponentiation operator has a precedence number of 1.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
13
A(n) ____ box is designed to accept information from the user, and it automatically stores the information in its Text property.

A) data
C) entry
B) text
D) information
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
14
A ____ is a predefined procedure that performs a specific task and then returns a value after completing the task.

A) sub
C) method
B) function
D) routine
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
15
An ____ represents information that is passed to the function while the function is processing.

A) argument
C) object
B) item
D) assignment
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
16
A ____ is a message to the person reading the code.

A) comment
C) heading
B) header
D) footer
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
17
The function Val(txtSales.Text) returns the number ____ when the txtSales control is empty.

A) -1
C) 1
B) 0
D) 2
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
18
In the order of precedence, the modulus operator has a lower priority than the addition and subtraction operators.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
19
You create a comment in Visual Basic by placing a(n) ____ before the text that represents the comment.

A) period
C) apostrophe
B) exclamation mark
D) asterisk
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
20
The modulus operator cannot be used to divide numbers that contain a decimal place.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
21
You use the ____ operator ( \ ) to divide two integers (whole numbers), and then return the result as an integer.

A) division
C) whole division
B) modulus
D) integer division
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
22
____ indicate the order in which the computer performs the operation in an expression.

A) Order numbers
C) Precedence numbers
B) Operation order numbers
D) Operation numbers
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
23
A(n) ____ is used to assign a value to something (such as the property of a control) while an application is running.

A) assignment statement
C) selection statement
B) loop statement
D) decision statement
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
24
The equal sign in an assignment statement is referred to as the ____.

A) assignment unit
C) assignment operator
B) assignment controller
D) assignment status
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
25
After dividing the numbers, the ____ operator returns the remainder of the division.

A) division
C) remainder
B) modulus
D) integer division
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.