ACD100 Exam QuestionsBrowse all questions from this exam

ACD100 Exam - Question 43


Given a Text type input of ri!text, which function will return that text without any spaces in the text?

Show Answer
Correct Answer: B

To remove all spaces from a text, the correct function is remove(ri!text, " "). This function removes all occurrences of the specified character (in this case, a space) from the input text, ensuring that no spaces remain within the string.

Discussion

1 comment
Sign in to comment
nyxxxOption: C
Apr 25, 2023

Both option B and C can be used to remove spaces from the input text. However, the difference between them is that remove(ri!text, " ") removes all occurrences of the specified character (in this case, the space character) from the input text, while stripwith(ri!text, " ") removes only leading and trailing occurrences of the specified character. Therefore, in the case where you want to remove all spaces from the input text, option B (remove(ri!text, " ")) is better.

Sid_16
Apr 28, 2023

remove() is used for removing a value from an array by providing the index as one its parameter Stripwith() removes all the characters in the input which is specified to removed trim() removes the leading and trailing spaces

Sid_16
Apr 28, 2023

@nyxxx why are you purposefully commenting wrong answers everywhere. If you are not willing to contribute close your top and bottom hole and sit

yanoolthecool
Dec 26, 2023

finally, someone with common sense.

myucarlos
Jun 24, 2024

nyxxx, do you work for Appian or are you using ChatGPT because you are making continuously fake statements :/