New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

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

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

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 ?

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
Emerson
3 months ago
I thought it would return 0 for any negative number, interesting!
upvoted 0 times
...
Teddy
4 months ago
It never returns 0 for negative inputs, that's a fact!
upvoted 0 times
...
Jolene
4 months ago
Wait, how can it return 0 for negative numbers?
upvoted 0 times
...
Buck
4 months ago
Totally agree, C is the right answer!
upvoted 0 times
...
Rebbeca
4 months ago
It returns 0 when N is zero.
upvoted 0 times
...
Eric
4 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.
upvoted 0 times
...
Sharen
5 months 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?
upvoted 0 times
...
Pura
5 months 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.
upvoted 0 times
...
Tamra
5 months ago
I think the absolute value function returns 0 when N is zero, but I'm not entirely sure.
upvoted 0 times
...
Laquanda
5 months 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.
upvoted 0 times
...
Willard
5 months 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.
upvoted 0 times
...
Leonida
5 months 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.
upvoted 0 times
...
Cecilia
5 months 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.
upvoted 0 times
...
Truman
5 months ago
This seems pretty straightforward. The absolute value of a number is always non-negative, so the answer must be C.
upvoted 0 times
...
Josphine
5 months 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.
upvoted 0 times
...
Lajuana
5 months 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.
upvoted 0 times
...
Vi
10 months 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?
upvoted 0 times
Wenona
9 months ago
User1: Let's double-check the documentation just to be sure.
upvoted 0 times
...
Stanton
9 months ago
User2: Yeah, I agree. It returns 0 when the input parameter is zero.
upvoted 0 times
...
Cary
9 months ago
User1: I think the answer is C.
upvoted 0 times
...
...
Gene
10 months 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.
upvoted 0 times
...
Lorenza
11 months 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.
upvoted 0 times
Solange
9 months ago
So, the Action returns 0 when the input parameter is zero.
upvoted 0 times
...
James
10 months ago
That makes sense. The absolute value of zero is zero.
upvoted 0 times
...
Elouise
10 months ago
I think the answer is C) When the input parameter (N) is zero.
upvoted 0 times
...
...
Karon
11 months ago
But what if the input parameter (N) is less than zero? Wouldn't it also return 0?
upvoted 0 times
...
Timmy
11 months ago
I agree with Matt. The absolute value of zero is always zero.
upvoted 0 times
...
Sharika
11 months 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.
upvoted 0 times
Noemi
10 months ago
So, the Action returns 0 when the input parameter (N) is zero. Got it.
upvoted 0 times
...
Albina
10 months ago
Yes, you are correct. The absolute value of zero is zero.
upvoted 0 times
...
...
Matt
11 months ago
I think the Action returns 0 when the input parameter (N) is zero.
upvoted 0 times
...

Save Cancel