logo

Crowdly

[ Average expected time to solve this question: 5 min] Build a table with the ...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

[Average expected time to solve this question: 5 min]

Build a table with the value for all the variables (during the execution of the following code) and mark all outputs.

Sub

Start will be called first. Do it first on paper and then copy it here.

Sub Start()

Dim A As String, B As Integer

B = 5

A = "REVOLUTION"

DoIt B, A

MsgBox A & B

End Sub

Sub DoIt(ByVal X As Integer, ByRef S As String)

Dim SA As String

SA = ""

Do While X >= 1

 If X Mod 2 = 0 Then

  SA = Mid(S, X, 1) & SA

 End If

 X = X - 1

Loop

S = SA

End Sub

More questions like this

Want instant access to all verified answers on moodle.lisboa.ucp.pt?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!