Deck 13: Programming in Access

Full screen (f)
exit full mode
Question
Defining a function in a module makes it inaccessible elsewhere in the database.
Use Space or
up arrow
down arrow
to flip the card.
Question
When testing functions in Visual Basic, the answer appears in the Results window.
Question
In VBA code, a(n) symbolic name can be assigned to a value.
Question
You can highlight a line of code before you type it to make it easier to see in the window.
Question
You can add controls to a form that display the results of a calculation.
Question
It is easier to read and identify the purpose of a function if it has recognizable control names.
Question
If you are going to use a control in a procedure, you first add the control to the database .
Question
A function can contain errors even though the statements have the correct syntax .
Question
If a procedure is working correctly, the results of the procedure will show accurate results.
Question
You need to assign a data type to a ____.

A) variable
B) control
C) process
D) function
Question
The unbound part of a Text Box control remains unbound until a(n) field with actual data is assigned to the control.
Question
To add a comment in VBA, you begin by typing a(n) ____ before the sentence.

A) pound sign (#)
B) question mark (?)
C) asterisk (*)
D) apostrophe (')
Question
A comment helps the person looking at the code identify the purpose of the code.
Question
Average, Min, and Max are examples of VBA ____.

A) syntax
B) controls
C) variables
D) built-in functions
Question
Each function can perform only one action.
Question
Comments in the VBA window appear in ____.

A) yellow
B) green
C) red
D) blue
Question
Even the simplest functions can contain errors.
Question
You assign specific functions to the parts of a control in the Control Sheet.
Question
Code refers to the syntax used in VBA.
Question
____ is the programming language for Access.

A) Microsoft Excel
B) Virtual C++ for Microsoft
C) Visual Basic for Applications
D) Java Development Kit
Question
Press the ____ to indent a line of code.

A) TAB key
B) SHIFT key
C) CTRL + SHIFT keys
D) CTRL + TAB keys
Question
FIGURE 13-3 <strong>FIGURE 13-3   In Figure 13-3 above, item 2 points to ____.</strong> A) data types B) data names C) variable names D) procedure names <div style=padding-top: 35px> In Figure 13-3 above, item 2 points to ____.

A) data types
B) data names
C) variable names
D) procedure names
Question
FIGURE 13-3 <strong>FIGURE 13-3   In Figure 13-3 above, item 1 points to ____.</strong> A) data types B) data names C) variable names D) procedure names <div style=padding-top: 35px> In Figure 13-3 above, item 1 points to ____.

A) data types
B) data names
C) variable names
D) procedure names
Question
You add names to the parts of a(n) ____ so that you can use these names in the procedure.

A) unbound function
B) record
C) label
D) control
Question
If you want to make the control label visible in the procedure, you need to add the syntax ____ after the name given to the label.

A) View
B) Open
C) Show
D) Visible
Question
In order to test a function, you type a(n) ____ before the function name and the variables.

A) pound sign (#)
B) question mark (?)
C) asterisk (*)
D) apostrophe (')
Question
A(n) ____________________ is an action that can be defined in VBA code where you use statements to describe the action you want performed.
Question
After you create a Text Box control in a form, you can press and hold down the ____ key and then use the arrow keys to move the text box to a desired location.

A) CTRL
B) TAB
C) SHIFT
D) END
Question
AC Adv Case 13-1 Eric has been asked to write a VBA function to calculate the average salaries for his company's salespeople for the past five years. Eric asks for your help in getting started with VBA programming using the company's salary database. Eric suspects there will be similar requests in the future and wants the function he creates to be available for various database procedures. You suggest Eric define the function in a ____.

A) control
B) subroutine
C) case
D) module
Question
When you enter dates in the Immediate window, you place a(n) ____ before and after the date to define when the date starts and ends.

A) pound sign (#)
B) question mark (?)
C) asterisk (*)
D) apostrophe (')
Question
A Visual Basic ____ appears when you click the Create tab, and then click Module in the Macros & Code group.

A) form
B) module
C) window
D) macro
Question
VBA requires the use of specific syntax so that the procedure performs actions ____.

A) repeatedly
B) efficiently
C) correctly
D) quickly
Question
AC Adv Case 13-2 John has written a VBA program that uses the following IF statement. He tests the program and the IF statement is not working as expected, so he asks for your help. 'This If statement checks for an empty input value 'Then it divides 100 by that value If IsEmpty(divisor) then 'Input field has a value so continue result = 100 / divisor End If John wants to display an error message if there is no input value. You suggest that John ____.

A) use another programming language
B) display a message up front informing the user to enter a value
C) use a Message statement
D) use an Else statement
Question
Defining a function in a module makes it ____.

A) public
B) private
C) local
D) unusable
Question
You can press the ____ key to accept the text that automatically appears as you type.

A) TAB
B) ENTER
C) CTRL
D) SHIFT
Question
Procedures include ____ that indicates where the procedure begins.

A) colors
B) code
C) indents
D) arrows
Question
AC Adv Case 13-1 Eric has been asked to write a VBA function to calculate the average salaries for his company's salespeople for the past five years. Eric asks for your help in getting started with VBA programming using the company's salary database. You suggest that Eric ____.

A) use the Sum built-in function
B) use the Average built-in function
C) create a new function called CalcAvg
D) use another programming language
Question
After the syntax Visible, you will need to add a(n) ____ and the word True or False so that the label will appear or not appear.

A) arrow
B) equal sign
C) plus sign
D) period
Question
AC Adv Case 13-2 John has written a VBA program that uses the following IF statement. He tests the program and the IF statement is not working as expected, so he asks for your help. 'This If statement checks for an empty input value 'Then it divides 100 by that value If IsEmpty(divisor) then 'Input field has a value so continue result = 100 / divisor End If You explain that the result is not being displayed correctly because ____.

A) the code was not compiled correctly
B) the result equation is part of the comment statement above it
C) John should use the IsNull syntax
D) John cannot divide by a variable name
Question
When a form is selected in the Form window, the Form Selector box appears with a ____.

A) dark square
B) highlight
C) beveled edge
D) dotted outline
Question
Match between columns
Wording that is used in VBA
comment
Wording that is used in VBA
variable name
Wording that is used in VBA
label
Wording that is used in VBA
syntax
Wording that is used in VBA
period (.)
Identifies what will appear in the unbound part of the text box control
comment
Identifies what will appear in the unbound part of the text box control
variable name
Identifies what will appear in the unbound part of the text box control
label
Identifies what will appear in the unbound part of the text box control
syntax
Identifies what will appear in the unbound part of the text box control
period (.)
A symbolic name that you assign to a value
comment
A symbolic name that you assign to a value
variable name
A symbolic name that you assign to a value
label
A symbolic name that you assign to a value
syntax
A symbolic name that you assign to a value
period (.)
Used to indicate the end of a label name
comment
Used to indicate the end of a label name
variable name
Used to indicate the end of a label name
label
Used to indicate the end of a label name
syntax
Used to indicate the end of a label name
period (.)
A statement that does not perform an action
comment
A statement that does not perform an action
variable name
A statement that does not perform an action
label
A statement that does not perform an action
syntax
A statement that does not perform an action
period (.)
Question
____________________ errors occur when the procedure produces incorrect results.
Question
The ____________________ window will return the results of the function based on the values you enter.
Question
Describe the general syntax of the IF procedure.
Question
A(n) ____________________ is a group of statements written in VBA code that can include several functions.
Question
As you type VBA code, ____________________ appears to assist you in creating the function.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/46
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 13: Programming in Access
1
Defining a function in a module makes it inaccessible elsewhere in the database.
False
2
When testing functions in Visual Basic, the answer appears in the Results window.
False
3
In VBA code, a(n) symbolic name can be assigned to a value.
True
4
You can highlight a line of code before you type it to make it easier to see in the window.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
5
You can add controls to a form that display the results of a calculation.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
6
It is easier to read and identify the purpose of a function if it has recognizable control names.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
7
If you are going to use a control in a procedure, you first add the control to the database .
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
8
A function can contain errors even though the statements have the correct syntax .
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
9
If a procedure is working correctly, the results of the procedure will show accurate results.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
10
You need to assign a data type to a ____.

A) variable
B) control
C) process
D) function
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
11
The unbound part of a Text Box control remains unbound until a(n) field with actual data is assigned to the control.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
12
To add a comment in VBA, you begin by typing a(n) ____ before the sentence.

A) pound sign (#)
B) question mark (?)
C) asterisk (*)
D) apostrophe (')
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
13
A comment helps the person looking at the code identify the purpose of the code.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
14
Average, Min, and Max are examples of VBA ____.

A) syntax
B) controls
C) variables
D) built-in functions
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
15
Each function can perform only one action.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
16
Comments in the VBA window appear in ____.

A) yellow
B) green
C) red
D) blue
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
17
Even the simplest functions can contain errors.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
18
You assign specific functions to the parts of a control in the Control Sheet.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
19
Code refers to the syntax used in VBA.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
20
____ is the programming language for Access.

A) Microsoft Excel
B) Virtual C++ for Microsoft
C) Visual Basic for Applications
D) Java Development Kit
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
21
Press the ____ to indent a line of code.

A) TAB key
B) SHIFT key
C) CTRL + SHIFT keys
D) CTRL + TAB keys
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
22
FIGURE 13-3 <strong>FIGURE 13-3   In Figure 13-3 above, item 2 points to ____.</strong> A) data types B) data names C) variable names D) procedure names In Figure 13-3 above, item 2 points to ____.

A) data types
B) data names
C) variable names
D) procedure names
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
23
FIGURE 13-3 <strong>FIGURE 13-3   In Figure 13-3 above, item 1 points to ____.</strong> A) data types B) data names C) variable names D) procedure names In Figure 13-3 above, item 1 points to ____.

A) data types
B) data names
C) variable names
D) procedure names
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
24
You add names to the parts of a(n) ____ so that you can use these names in the procedure.

A) unbound function
B) record
C) label
D) control
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
25
If you want to make the control label visible in the procedure, you need to add the syntax ____ after the name given to the label.

A) View
B) Open
C) Show
D) Visible
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
26
In order to test a function, you type a(n) ____ before the function name and the variables.

A) pound sign (#)
B) question mark (?)
C) asterisk (*)
D) apostrophe (')
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
27
A(n) ____________________ is an action that can be defined in VBA code where you use statements to describe the action you want performed.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
28
After you create a Text Box control in a form, you can press and hold down the ____ key and then use the arrow keys to move the text box to a desired location.

A) CTRL
B) TAB
C) SHIFT
D) END
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
29
AC Adv Case 13-1 Eric has been asked to write a VBA function to calculate the average salaries for his company's salespeople for the past five years. Eric asks for your help in getting started with VBA programming using the company's salary database. Eric suspects there will be similar requests in the future and wants the function he creates to be available for various database procedures. You suggest Eric define the function in a ____.

A) control
B) subroutine
C) case
D) module
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
30
When you enter dates in the Immediate window, you place a(n) ____ before and after the date to define when the date starts and ends.

A) pound sign (#)
B) question mark (?)
C) asterisk (*)
D) apostrophe (')
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
31
A Visual Basic ____ appears when you click the Create tab, and then click Module in the Macros & Code group.

A) form
B) module
C) window
D) macro
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
32
VBA requires the use of specific syntax so that the procedure performs actions ____.

A) repeatedly
B) efficiently
C) correctly
D) quickly
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
33
AC Adv Case 13-2 John has written a VBA program that uses the following IF statement. He tests the program and the IF statement is not working as expected, so he asks for your help. 'This If statement checks for an empty input value 'Then it divides 100 by that value If IsEmpty(divisor) then 'Input field has a value so continue result = 100 / divisor End If John wants to display an error message if there is no input value. You suggest that John ____.

A) use another programming language
B) display a message up front informing the user to enter a value
C) use a Message statement
D) use an Else statement
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
34
Defining a function in a module makes it ____.

A) public
B) private
C) local
D) unusable
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
35
You can press the ____ key to accept the text that automatically appears as you type.

A) TAB
B) ENTER
C) CTRL
D) SHIFT
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
36
Procedures include ____ that indicates where the procedure begins.

A) colors
B) code
C) indents
D) arrows
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
37
AC Adv Case 13-1 Eric has been asked to write a VBA function to calculate the average salaries for his company's salespeople for the past five years. Eric asks for your help in getting started with VBA programming using the company's salary database. You suggest that Eric ____.

A) use the Sum built-in function
B) use the Average built-in function
C) create a new function called CalcAvg
D) use another programming language
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
38
After the syntax Visible, you will need to add a(n) ____ and the word True or False so that the label will appear or not appear.

A) arrow
B) equal sign
C) plus sign
D) period
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
39
AC Adv Case 13-2 John has written a VBA program that uses the following IF statement. He tests the program and the IF statement is not working as expected, so he asks for your help. 'This If statement checks for an empty input value 'Then it divides 100 by that value If IsEmpty(divisor) then 'Input field has a value so continue result = 100 / divisor End If You explain that the result is not being displayed correctly because ____.

A) the code was not compiled correctly
B) the result equation is part of the comment statement above it
C) John should use the IsNull syntax
D) John cannot divide by a variable name
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
40
When a form is selected in the Form window, the Form Selector box appears with a ____.

A) dark square
B) highlight
C) beveled edge
D) dotted outline
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
41
Match between columns
Wording that is used in VBA
comment
Wording that is used in VBA
variable name
Wording that is used in VBA
label
Wording that is used in VBA
syntax
Wording that is used in VBA
period (.)
Identifies what will appear in the unbound part of the text box control
comment
Identifies what will appear in the unbound part of the text box control
variable name
Identifies what will appear in the unbound part of the text box control
label
Identifies what will appear in the unbound part of the text box control
syntax
Identifies what will appear in the unbound part of the text box control
period (.)
A symbolic name that you assign to a value
comment
A symbolic name that you assign to a value
variable name
A symbolic name that you assign to a value
label
A symbolic name that you assign to a value
syntax
A symbolic name that you assign to a value
period (.)
Used to indicate the end of a label name
comment
Used to indicate the end of a label name
variable name
Used to indicate the end of a label name
label
Used to indicate the end of a label name
syntax
Used to indicate the end of a label name
period (.)
A statement that does not perform an action
comment
A statement that does not perform an action
variable name
A statement that does not perform an action
label
A statement that does not perform an action
syntax
A statement that does not perform an action
period (.)
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
42
____________________ errors occur when the procedure produces incorrect results.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
43
The ____________________ window will return the results of the function based on the values you enter.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
44
Describe the general syntax of the IF procedure.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
45
A(n) ____________________ is a group of statements written in VBA code that can include several functions.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
46
As you type VBA code, ____________________ appears to assist you in creating the function.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 46 flashcards in this deck.