MCD - Level 1 Exam QuestionsBrowse all questions from this exam

MCD - Level 1 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?

Show Answer
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

3 comments
Sign in to comment
chetan_sharmaOption: A
Feb 14, 2024

Option A is correct

AlandtOption: B
Feb 5, 2024

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.

AlandtOption: A
Feb 6, 2024

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.