Page 1 of 1

0/1 pts Question 1 How many times is the letter 'X' shown in the message box when start() is executed? 1 This forces the

Posted: Fri May 20, 2022 5:44 pm
by answerhappygod
0 1 Pts Question 1 How Many Times Is The Letter X Shown In The Message Box When Start Is Executed 1 This Forces The 1
0 1 Pts Question 1 How Many Times Is The Letter X Shown In The Message Box When Start Is Executed 1 This Forces The 1 (106.2 KiB) Viewed 28 times
May I ask why the answer is 13?
0/1 pts Question 1 How many times is the letter 'X' shown in the message box when start() is executed? 1 This forces the code to declare a variable before it can be use Option Explicit Dim MaximumDepth As Integer Dim AllText As String Sub Start() MaximumDepth AllText = = 2 RecursiveFunc 0 MsgBox AllText End Sub 'The recursive function Sub RecursiveFunc(Depth As Integer) AllText = AllText & "X" If Depth < MaximumDepth Then RecursiveFunc Depth + 1 RecursiveFunc Depth + 1 RecursiveFunc Depth + 1 End If End Sub nswered t Answers 13 with margin: 0)