Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 2 out of 7 pages
Exam (elaborations)

CSIS 208 Week 3 - Chapter 6 Review | 30 Questions and Answers | Liberty University

Document preview thumbnail
Preview 2 out of 7 pages

CSIS 208 Week 3 - Chapter 6 Review | 30 Questions and Answers | Liberty University

Content preview

1. Which of the following is false?

a. A function returns only one value to the statement that invoked it.
b. A Sub procedure can accept only one item of data passed to it.
c. The parameterList in a procedure header is optional.
d. A function’s header specifies the data type of the function’s return
value.

2. What are the items that appear within parentheses in a calling statement called?

1. arguments

2. parameters

3. passers

4. callers

3. What are the items that appear within parentheses in a procedure header called?

1. arguments

2. parameters

3. passers

4. callers

4. Which of the following indicates whether a variable is being passed by value or by
reference?

1. the calling statement

2. the receiving procedure’s header

3. the statements entered within the receiving procedure

4. the calling procedure’s header

5. Which of the following statements invokes the GetArea Sub procedure, passing it
two variables by value?

1. GetArea(dblLength, dblWidth) As Double

2. GetArea(ByVal dblLength, ByVal dblWidth)

3. GetArea ByVal(dblLength, dblWidth)

, 4. GetArea(dblLength, dblWidth)

6. Which of the following is a valid header for a procedure that receives a copy of the
value stored in a String variable?

1. Private Sub DisplayName(ByCopy strName As String)

2. Private Sub DisplayName ByVal(strName As String)

3. Private Sub DisplayName(ByVal strName As String)

4. Private Sub DisplayName(ByRef strName As String)

7. Which of the following is a valid header for a procedure that receives an integer
followed by a number with a decimal place?

1. Private Sub GetFee(intBase As Value, decRate As Value)

2. Private Sub GetFee(ByRef intBase As Integer, ByRef decRate As Decimal)

3. Private Sub GetFee(ByVal intBase As Integer, ByVal decRate As Decimal)

4. Private Sub GetFee(ByCopy intBase As Integer, ByCopy decorate As Decimal)

8. Which of the following is false?

a. The order of the arguments listed in the calling statement should agree
with the order of the parameters listed in the receiving procedure's
header.

b. The data type of each argument in the calling statement should match
the data type of its corresponding parameter in the procedure header.

c. When you pass an item to a procedure by value, the procedure stores the
item's value in a separate memory location.

d. The name of each argument in the calling statement should be identical
to the name of its corresponding parameter in the procedure header.

9. Which of the following instructs a function to return the value stored in
the dblBonus variable?

1. Return dblBonus

2. Return ByVal dblBonus

3. Send dblBonus

Document information

Uploaded on
July 28, 2025
Number of pages
7
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$18.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Jumuja
3.9
(121)
Sold
589
Followers
417
Items
2856
Last sold
3 days ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions