Question: Question 1 0.2 pts What does the following code try to accomplish? Function Dothis(Num As Long) Dim i As Long, answer As Long answer =


Question 1 0.2 pts What does the following code try to accomplish? Function Dothis(Num As Long) Dim i As Long, answer As Long answer = 1 For i = 1 to Num answer = answer * i Next i Dothis = answer End Function Calculate the sum of integers from 1 to Num Calculate the present value of Num cash flows Calculate the factorial of Num Calculate the future value of Num Question 2 0.2 pts You create a variable to store the present value of a cash flow. What is a suitable datatype for this variable? Long String Double Boolean Question 3 0.2 pts What is wrong with the following code? Function Area(Length As Double, Optional Width As Variant) If IsMissing(Width) Then Area = Length * Length Else Area = Length - Width End Function Function name is invalid It should have "End If" It should use "Else Then" It cannot use "Optional
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
