Exam 8: Sub and Function Procedures

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

What is an independent Sub procedure?

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

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:
Verified

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:
Verified

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)

A(n) ____ occurs each time an interval has elapsed.

(Multiple Choice)
4.8/5
(32)

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)

You cannot pass information to a function by reference.

(True/False)
4.8/5
(33)

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)

What are the rules for naming an independent Sub procedure?

(Essay)
4.9/5
(32)

The procedure footer for a Sub procedure is always ____.

(Multiple Choice)
4.9/5
(34)

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)

Procedure names are usually entered using ____.

(Multiple Choice)
5.0/5
(42)

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
close modal

Filters

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