Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

OutSystems Exam Associate-Reactive-Developer Topic 1 Question 18 Discussion

Actual exam question for OutSystems's Associate-Reactive-Developer exam
Question #: 18
Topic #: 1
[All Associate-Reactive-Developer Questions]

Consider the following Action (https://drive.google.com/file/d/1L6qUwd2jjqWAluUB-Kv5gQghendWoMr2/view?usp=sharing), that calculates the square root (sqrt) of a positive decimal number (N). Knowing that the function was called with N = 0, and the debugger is stopped at the Start node, what will happen when the developer selects the Continue (F9) option highlighted in the picture?

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

Jerlene
23 hours ago
I think option B is the way to go. Dividing by zero is a big no-no, so it's gotta throw an exception. Although, it'd be pretty funny if the debugger just stopped at the N < 0 node instead. What is this, amateur hour?
upvoted 0 times
...
Shelton
5 days ago
Well, if N is 0, then the square root should be 0, so option A seems correct. But I wonder what happens if N is negative - will it throw an exception or just stop at the N < 0 node?
upvoted 0 times
...
Janna
15 days ago
But if N = 0, the sqrt should be 0, so I think A is correct.
upvoted 0 times
...
Nana
21 days ago
I disagree, I believe the correct answer is A.
upvoted 0 times
...
Janna
22 days ago
I think the correct answer is B.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77