Exam 9: Sub and Function Procedures

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

When you pass a variable ____________________, the computer passes a copy of the variable's contents to the receiving procedure.

Free
(Short Answer)
4.8/5
(38)
Correct Answer:
Verified

by value

The ____ keyword tells the computer to pass the variable's address rather than a copy of its contents.

Free
(Multiple Choice)
4.8/5
(40)
Correct Answer:
Verified

C

What is an event procedure?

Free
(Essay)
4.9/5
(32)
Correct Answer:
Verified

An event procedure is a Sub procedure that is associated with a specific object and event, such as a button's Click event or a text box's TextChanged event. The computer automatically processes an event procedure when the event occurs.

Associating a procedure with more than one object and event allows the programmer to avoid  ____________________ code in different parts of the program..

(Short Answer)
4.8/5
(44)

The number of arguments in the Call statement's argumentList should agree with the number of parameters in the procedure's parameterList .

(True/False)
4.8/5
(28)

The Return statement's syntax is ____ expression , where expression represents the one and only value that will be returned to the statement invoking the function.

(Multiple Choice)
4.8/5
(33)

How do you invoke a function that you have created?

(Essay)
4.8/5
(44)
Match each item with a statement below.
Returns a value after performing its assigned task
Calling statement
The last statement within a function
Return statement
Does not return a value after performing its assigned task
Sub procedure
Correct Answer:
Verified
Premises:
Responses:
Returns a value after performing its assigned task
Calling statement
The last statement within a function
Return statement
Does not return a value after performing its assigned task
Sub procedure
Used to invoke an independent Sub procedure
parameter
Reviewing the program instructions
As datatype clause
Location in the computer's internal memory
independent Sub procedure
Used to specify the data type of the value returned by the function
address
Allows the programmer to avoid duplicating code in different sections of a program
Function procedure
Stores information passed to a procedure when it is invoked
hand-tracing
(Matching)
4.8/5
(43)

The function's header and footer contain the ____ keyword.

(Multiple Choice)
4.8/5
(34)

The ____ clause in an event procedure's header indicates the object and event associated with the procedure.

(Multiple Choice)
4.7/5
(38)

You can cast a variable from the Object data type to a different data type by using the ____operator.

(Multiple Choice)
4.9/5
(36)

What is desk-checking?

(Essay)
4.9/5
(32)

The process of converting a variable from one data type to another is referred to as ____.

(Multiple Choice)
4.9/5
(26)

What are two reasons for using independent Sub procedures in code?

(Essay)
4.9/5
(41)

In most cases, the procedure header begins with the ____ keyword.

(Multiple Choice)
4.8/5
(40)

After creating your own function in Visual Basic, you can invoke it from one or more places in an application's code.

(True/False)
4.9/5
(35)

Procedure names are usually entered using ____.

(Multiple Choice)
4.7/5
(38)

Passing a variable's address to the receiving procedure is referred to as passing by ____.

(Multiple Choice)
4.8/5
(42)

You cannot pass information to a function by reference.

(True/False)
5.0/5
(42)

The procedure footer for a Sub procedure is always ____.

(Multiple Choice)
4.8/5
(44)
Showing 1 - 20 of 42
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)