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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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 26 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)
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply