C_LCNC_2406 · Question #20
Which function call returns true?
The correct answer is C. IS_EMAIL("[email protected]"). IS_EMAIL("[email protected]") returns true because it is a properly formatted email address - containing a local part, an @ symbol, and a domain - passed as a string literal (in quotes). Option A and D fail because they pass unquoted values, which are invalid syntax for a string…
Question
Which function call returns true?
Options
- AIS_EMAIL(@sap.com)
- BIS_EMAIL("@sap.com")
- CIS_EMAIL("[email protected]")
- DIS_EMAIL([email protected])
How the community answered
(23 responses)- A4% (1)
- B4% (1)
- C83% (19)
- D9% (2)
Explanation
IS_EMAIL("[email protected]") returns true because it is a properly formatted email address - containing a local part, an @ symbol, and a domain - passed as a string literal (in quotes). Option A and D fail because they pass unquoted values, which are invalid syntax for a string function - the argument must be a quoted string, not a bare expression. Option B ("@sap.com") is a quoted string but is not a valid email address since it has no local part before the @.
Memory tip: Think "two requirements to pass" - the value must be (1) a quoted string and (2) a valid email format ([email protected]). Only C satisfies both.
Topics
Community Discussion
No community discussion yet for this question.