Oracle Application Express 5: Developing Web Applications — Question 52
Trillian wants to pass an item value, which includes a comma, such as the value Donuts, Coffee, in the URL when calling another page.
How can Trillian escape the item value so that the comma is interpreted correctly?
Answer options
- A. /Donuts,Coffee/
- B. \Donuts,Coffee\
- C. Donuts\,Coffee
- D. "Donuts,Coffee"
Correct answer: D
Explanation
The correct answer is D because enclosing the value in quotes allows the comma to be treated as part of the string rather than a separator. Options A and B do not provide a valid way to escape the comma, and option C incorrectly uses a backslash before the comma, which is not necessary in this context.