Exam ACD100 All QuestionsBrowse all questions from this exam
Question 43

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

    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
nyxxxOption: C

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

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

@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

finally, someone with common sense.

myucarlos

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