Determining suitable parameters if pass-by-reference is used

Assignment Help Programming Languages
Reference no: EM1345950

Q1) Functions and subprocedures in VBA utilize pass-by-reference (by default), which can result in unexpected behavior if the parameters of the function are modified. Which function or sub procedure alters its parameter?

Answer

a. Function a(lngA As Long) As Long
a = lngA * 2
End Function

b. Function b(lngA As Long) As Long
lngA = lngA * 2
End Function

c. Sub c(lngA As Long)
Dim lngB As Long
lngB = lngA * 2
End Sub

d. Function d(lngA As Long) As Long
d = d * 2
End Function

Reference no: EM1345950

Questions Cloud

What is the effective resistance of television set : If the football has a mass of 0.47kg and the time of contact with the ball is 0.021s, what is the force exerted by the ball on the kicker's foot.
Determine the amortization period for rest of the costs : How much of start-up cost & organization expense can be deducted in the 1st year of operation? What is the amortization period for the rest of the costs?
Discuss whether you agree or disagree with chairman bernanke : discuss whether you agree or disagree with Chairman Bernanke's remarks on economic outlook and the role of the Fed' s monetary policy effectiveness by using unconventional policy.
What is the least wavelength the sound wave : A sailor strikes the side of his ship just below the surface of the sea. He hears echo of the wave reflected from the ocean floor directly below 9 s later. How deep is the ocean at this point.
Determining suitable parameters if pass-by-reference is used : Subprocedures in VBA utilize pass-by-reference. Which function or sub procedure alters its parameter?
Illustrate what is the profit made by each firm : explain how many smoothest sold by each firm, and illustrate what is the profit made by each firm.
Find the normal to the top surface of the glass : A tank with vertical walls, 2m wide and 2m long and 2.5 m high, is filled with 4800 litres of water (density 1000 kg/m3) and 3200 litres of light oil (density 900 kg/m3). compute the magnitude and location of the resultant force on each of the ver..
Explain what is the diameter of the copper rod : Two trains and a bird Two trains, each having a speed of 23km/h, are headed at each other on the equal  straight track. A bird that can fly 60km/h flies off the front of one train when they are 70 km apart and heads directly for the other train.
Find the value of investment : An investment of $5,000 is made at interest rate of 5% compounded semi-annually.

Reviews

Write a Review

Programming Languages Questions & Answers

  Travelling salesman problem

Travelling Salesman Problem on the L1-metric plane.

  Write the code required to analyse and display

Engineer for a materials manufacturing research lab and have been asked to provide an automated solution to analyse data.

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Technical project: sample website project

Technical Project: Sample Website Project , This assignment consists of three (3) sections: a narrative, a storyboard, and a business Website. You must submit all three (3) sections for the completion of this assignment.

  Program to display weekly payroll report

Write down a program to display a weekly payroll report.

  Communicate with a pc using the rs232c serial protocol

In this assignment we will use the UART0 peripheral to communicate with a PC using the RS232C serial protocol.

  Program in visual basic to calculate area of triangle

Write a program in visual basic to calculate area of a triangle.

  Executive committee for alleviating it complexity

You are a consultant brought in by the executive committee to make recommendations for alleviating the "IT complexity" concerns of the executives at the company.

  Ethics and social responsibility

Ethics and social responsibility at McDonalds

  Creating form which analyzes poker hand entered by user

To observe behavior of Sub Procedures, draw a Form which analyzes a poker hand entered by user and displays the type of hand.

  Creating website-based sales system for retail firm

Assume that you have been hired to create website-based sales system for large international retail sales firm.

  Creating loop to find number of items bought based on price

Make a block using a loop that will find the number of items that can be bought based on the price of the item and the total amount available to spend.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd