Halloween Special 2026! Get Up to 25% OFF Practice Questions! Limited Time - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

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

Posted by Herminia on Feb 13, 2024 at 07:43 AM

Consider the Action called Absolute (https://drive.google.com/file/d/1whQveFFlesOJlkA1Qi4JMEV7-oUAZU1f/view?usp=sharing) which returns an absolute value (abs) of a number N passed as Input Parameter. When does the Action return 0 ?

Suggested Answer: A

Get Premium Associate-Reactive-Developer Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
31 comments · newest first
EM
Emerson 11 months ago
I thought it would return 0 for any negative number, interesting!
TE
Teddy 11 months ago
It never returns 0 for negative inputs, that's a fact!
JO
Jolene 11 months ago
Wait, how can it return 0 for negative numbers?
BU
Buck 12 months ago
Totally agree, C is the right answer!
RE
Rebbeca 12 months ago
It returns 0 when N is zero.
ER
Eric 12 months ago
I feel like the answer is A, but that doesn't seem right since I know abs(0) is 0. So, I guess C is the correct choice.
SH
Sharen 1 year ago
I'm a bit confused. Does the absolute function return 0 only when N is exactly zero, or could it also return 0 in other cases?
PU
Pura 1 year ago
I remember practicing a similar question, and I think it was clear that the absolute value is never negative, so it can't return 0 unless N is zero.
TA
Tamra 1 year ago
I think the absolute value function returns 0 when N is zero, but I'm not entirely sure.
LA
Laquanda 1 year ago
I'm pretty confident the answer is C. The absolute value function returns the distance of a number from zero, and when the input is zero, the distance is zero, so the absolute value is 0.
WI
Willard 1 year ago
I'm a little confused here. Isn't the absolute value always positive, even for negative numbers? I'm not sure if 0 is a special case or not. I'll have to think about this one a bit more.
LE
Leonida 1 year ago
Okay, I've got this. The absolute value of a number is the distance of that number from zero on the number line. So when the input is 0, the distance from 0 is 0, and the absolute value is 0. The answer is C.
CE
Cecilia 1 year ago
Hmm, I'm a bit unsure about this one. Let me think it through carefully. The absolute value function should return 0 when the input is 0, right? I'll double-check the definition of absolute value just to be sure.
TR
Truman 1 year ago
This seems pretty straightforward. The absolute value of a number is always non-negative, so the answer must be C.
JO
Josphine 1 year ago
Hmm, this seems like a tricky one. I'll need to think through the requirements carefully - scalability, consistency, and multi-region replication are all important factors.
LA
Lajuana 1 year ago
I remember learning about the three types of datasets, but I'm drawing a blank right now. I'll have to use the process of elimination to figure this out.
VI
Vi 1 year ago
I'm pretty sure the answer is C, but just to be sure, I'm going to double-check the documentation. Can't be too careful with these certification exams, you know?
WE
Wenona 1 year ago
↳ replying to Vi
User1: Let's double-check the documentation just to be sure.
ST
Stanton 1 year ago
↳ replying to Vi
User2: Yeah, I agree. It returns 0 when the input parameter is zero.
CA
Cary 1 year ago
↳ replying to Vi
User1: I think the answer is C.
GE
Gene 1 year ago
Haha, this is a tricky one! I bet the test-makers are trying to catch us out with the 'never' option. But we all know that zero is the only number that has an absolute value of zero, so C is the correct answer.
LO
Lorenza 2 years ago
I agree with Sharika. The absolute value function returns the distance of a number from zero, and zero is its own distance from zero, so the answer is C.
SO
Solange 1 year ago
↳ replying to Lorenza
So, the Action returns 0 when the input parameter is zero.
JA
James 1 year ago
↳ replying to Lorenza
That makes sense. The absolute value of zero is zero.
EL
Elouise 1 year ago
↳ replying to Lorenza
I think the answer is C) When the input parameter (N) is zero.
KA
Karon 2 years ago
But what if the input parameter (N) is less than zero? Wouldn't it also return 0?
TI
Timmy 2 years ago
I agree with Matt. The absolute value of zero is always zero.
SH
Sharika 2 years ago
The absolute value of a number is always non-negative, so the answer must be C. When the input parameter (N) is zero, the absolute value is also zero.
NO
Noemi 1 year ago
↳ replying to Sharika
So, the Action returns 0 when the input parameter (N) is zero. Got it.
AL
Albina 1 year ago
↳ replying to Sharika
Yes, you are correct. The absolute value of zero is zero.
MA
Matt 2 years ago
I think the Action returns 0 when the input parameter (N) is zero.
0/2000 characters

Save Cancel