The……..statement does not indicate whether a variable is passed by value or by reference.
a) Call
b) Parameter
c) Function
d) Declaration
Explanation: The Call statement does not indicate whether a variable is being passed by value or by reference. To make that determination, you need to look at the receiving procedure’s header.
The position of an item in a list box depends on the value stored in the list box’s………
a) Ascending property
b) Descending Property
c) Sorted property
d) Unsorted property
Explanation: The position of an item in a list box depends on the value stored in the list box’s Sorted property. When the Sorted property is set to False (the default value), the item is added at the end of the list. When the Sorted property is set to True, the item is sorted along with the existing items and then placed in its proper position in the list. Visual Basic sorts the list box items in dictionary order, which means that numbers are sorted before letters, and a lowercase letter is sorted before its uppercase equivalent.
The items in a list box are sorted based on the……. characters in each item.
a) Leftmost
b) Rightmost
c) Previous
d) Next
Explanation: The items in a list box are sorted based on the leftmost characters in each item. As a result, the items “Personnel”, “Inventory”, and “Payroll” will appear in the following order when the control’s Sorted property is set to True: Inventory, Payroll, Personnel. Likewise, the items 1, 2, 3, and 10 will appear in the following order when the control’s Sorted property is set to True: 1, 10, 2, 3.
The……… keyword tells the computer to pass the variable’s address rather than its contents.
a) ByRef
b) ByVal
c) ByAdd
d) ByPoint
Explanation: You pass a variable by reference when you want the receiving procedure to change the contents of the variable. To pass a variable by reference in Visual Basic, you include the keyword ByRef before the name of its corresponding parameter in the receiving procedure’s header. The ByRef keyword tells the computer to pass the variable’s address rather than its contents.
The items listed in the Call statement are referred to as………..
a) Arguments
b) Parameters
c) Passers
d) Callers
Explanation: The items listed in the Call statement are referred to as arguments; and the items listed in the calling statement are referred to as parameters.
Which of the following is false?
a) A function can return one or more values to the statement that invoked it
b) A procedure can accept one or more items of data passed to it
c) The parameter List in a procedure header is optional
d) At times, a memory location inside the computer’s internal memory may have more than one name
Explanation: A function can return only one value to the statement that invoked it. Since return statement is the last statement of any function.