Exam MCD - Level 1 All QuestionsBrowse all questions from this exam
Question 155

Refer to the exhibits. The Mule application is stopped at the breakpoint in Anypoint Studio. A watch expression is set to the counter variable.

What value is displayed for this watch expression?

    Correct Answer: A

    The Mule application is stopped at the breakpoint within the Main flow right before entering the ChildFlow. At this point, the 'counter' variable has been set to 1, and the ChildFlow, which increments the 'counter' by 10, has not yet been executed. Therefore, the value displayed for the watch expression at this breakpoint will be 1.

Discussion
chetan_sharmaOption: A

Option A is correct

AlandtOption: A

Shit I was wrong again with my other comment. I didn't see the breakpoint. Considering the breakpoint the answer will be 1. Because the watch expression will evaluate when breakpoint hits.

AlandtOption: B

Correct answer is B --> The counter variable is set to 1 in the Main flow and then incremented by 10 in the ChildFlow, resulting in the final value being logged as 11.