0%
0 / 15 answered
Strings Practice Test
•15 QuestionsQuestion
1 / 15
Q1
A program is intended to create an acronym from a three-word phrase stored in the string variables w1, w2, and w3. For example, if w1 is "Computer", w2 is "Science", and w3 is "Principles", the acronym should be "CSP". Assuming a procedure $$FIRST_LETTER(str)$$ returns the first character of a string, which expression creates the correct acronym?
A program is intended to create an acronym from a three-word phrase stored in the string variables w1, w2, and w3. For example, if w1 is "Computer", w2 is "Science", and w3 is "Principles", the acronym should be "CSP". Assuming a procedure $$FIRST_LETTER(str)$$ returns the first character of a string, which expression creates the correct acronym?