Examlex

Solved

If We Were to Call the MakeDouble and ChangeArg Methods

question 29

Multiple Choice

If we were to call the MakeDouble and ChangeArg methods shown below, using the following statements, what value would be assigned to lblResult.Text?
Dim intValue As Integer = 20
ChangeArg(intValue)
LblResult.Text = MakeDouble(intValue) .ToString()

Function MakeDouble (ByVal intArg As Integer) As Integer
Return intArg * 2
End Function

Sub ChangeArg2(ByRef intArg As Integer)
' Display the value of intArg.
LstOutput.Items.Add(" ")
LstOutput.Items.Add("Inside the ChangeArg procedure, " &
"intArg is " & intArg.ToString() )
LstOutput.Items.Add("I will change the value of intArg.")
' Assign 0 to intArg.
IntArg = 0
' Display the value of intArg.
LstOutput.Items.Add("intArg is now " & intArg.ToString() )
LstOutput.Items.Add(" ")
End Sub


Definitions:

Arbitrage Opportunity

A situation where it's possible to simultaneously purchase and sell an asset or security and profit from the price difference.

Warrant

A financial instrument that confers the right to buy a security, typically a stock, at a specific price before a certain date.

Convertible Bond

A type of bond that can be converted into a predetermined amount of the company's equity at certain times during its life, usually at the discretion of the bondholder.

Straight-Bond Value

The value of a bond ignoring any embedded options, based purely on its coupon payments and principal repayment.

Related Questions