PR000041 practice question 2 of 15
What function could be used to exchange 'i' with 'I' in the COMPANY port given the following expression? function name{1, COMPANY, 'i' , 'I')
Choose your answer, then check it against the explanation and the full breakdown below.
Question breakdown
Key idea: REPLACECHR(CaseFlag, InputString, OldCharSet, NewChar) swaps each character found in a character set for one replacement character, and its four-argument shape matches the expression.
How to reach the answer
- Map the argument pattern: an integer flag, a port, an old character, and a new character.
- Recall which function begins with a case flag followed by a string and two character arguments. That is REPLACECHR.
- Confirm the goal is replacement, which rules out search functions like INSTR.
- REG_REPLACE takes subject, pattern, and replacement with no leading case flag, so its signature does not fit.
- CHOOSE only selects a value by index and never alters a string.
Each option
Common trap: REG_REPLACE sounds like the obvious 'replace' function, but its argument order does not match an expression that starts with a case flag.
In practice: REPLACECHR is commonly used in Expression transformations to clean or normalize characters, such as stripping punctuation or fixing casing in name and code fields.
Remember: An integer case flag as the first argument followed by a string points to REPLACECHR or REPLACESTR; a non-zero flag means case-sensitive.
Drafted with AI assistance and checked against the answer key.
Keep practicing
Take the free PR000041 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other PR000041 practice questions
- Question 3Which of the following statements is correct on workflow events?
- Question 4Which port types are applicable to the Stored Procedure transformation?(Choose all that a…
- Question 5Which is the correct priority of assigning a mapping variable?
- Question 6Two pipelines (A & B) are entering a Joiner transformation with each having a record size…
- Question 7Referring to the Sequence Generator transformation, which statement is correct and true?
- Question 8Which statement on workflows is correct?
