Exam 8: Sub and Function Procedures
Exam 1: An Introduction to Visual Basic 201250 Questions
Exam 2: Creating a User Interface50 Questions
Exam 3: Memory Locations and Calculations50 Questions
Exam 4: Making Decisions in a Program50 Questions
Exam 5: More on the Selection Structure50 Questions
Exam 6: Repeating Program Instructions50 Questions
Exam 7: More on the Repetition Structure50 Questions
Exam 8: Sub and Function Procedures50 Questions
Exam 9: Arrays50 Questions
Exam 10: String Manipulation and Menus50 Questions
Exam 11: Structures and Sequential Files50 Questions
Exam 12: Access Databases and Linq50 Questions
Exam 13: Creating Simple Web Applications50 Questions
Exam 14: Creating Classes and Objects50 Questions
Exam 15: an Introduction to Programming17 Questions
Select questions type
What is an independent Sub procedure?
Free
(Essay)
4.9/5
(37)
Correct Answer:
An independent Sub procedure is a procedure that is independent of any object and event. An independent Sub procedure is processed only when called (invoked) from code.
You pass a variable by ____ when you want the receiving procedure to change the contents of the variable.
Free
(Multiple Choice)
4.8/5
(43)
Correct Answer:
D
Associating a procedure with more than one object and event allows the programmer to avoid ____________________ code in different parts of the program..
Free
(Short Answer)
4.7/5
(40)
Correct Answer:
duplicating
Match each item with a statement below.
a.Return statement
f.parameter
b.address
g.event procedure
c.Call statement
h.As datatype clause
d.independent Sub procedure
i.Sub procedure
e.Function procedure
-Allows the programmer to avoid duplicating code in different sections of a program
(Short Answer)
4.9/5
(40)
Match each item with a statement below.
a.Return statement
f.parameter
b.address
g.event procedure
c.Call statement
h.As datatype clause
d.independent Sub procedure
i.Sub procedure
e.Function procedure
-Used to specify the data type of the value returned by the function
(Short Answer)
4.8/5
(32)
Unlike a Sub procedure header, a function's header includes the ____ section.
(Multiple Choice)
4.8/5
(42)
On what basis should you decide whether you should pass a variable's value or address to the receiving procedure?
(Essay)
4.8/5
(29)
The ____ keyword tells the computer to pass the variable's address rather than a copy of its contents.
(Multiple Choice)
4.8/5
(44)
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.7/5
(40)
Match each item with a statement below.
a.Return statement
f.parameter
b.address
g.event procedure
c.Call statement
h.As datatype clause
d.independent Sub procedure
i.Sub procedure
e.Function procedure
-Location in the computer's internal memory
(Short Answer)
4.8/5
(32)
In most cases, the procedure header begins with the ____ keyword.
(Multiple Choice)
4.8/5
(38)
When you pass a variable by value, the receiving procedure can change the value stored inside the variable.
(True/False)
4.9/5
(31)
Match each item with a statement below.
a.Return statement
f.parameter
b.address
g.event procedure
c.Call statement
h.As datatype clause
d.independent Sub procedure
i.Sub procedure
e.Function procedure
-Returns a value after performing its assigned task
(Short Answer)
4.8/5
(40)
Match each item with a statement below.
a.Return statement
f.parameter
b.address
g.event procedure
c.Call statement
h.As datatype clause
d.independent Sub procedure
i.Sub procedure
e.Function procedure
-Stores information passed to a procedure when it is invoked
(Short Answer)
4.8/5
(33)
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
(36)
Showing 1 - 20 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)