What does the following recursive algorithm display?

writeBack(in s:string)
if (s is empty)
return
else
{
Write the first character of s
writeBack(the string beginning at the second character of s)
}
a. nothing
b. the first character of s a number of times equal to the length of s
c. the string s
d. the string s backward

c. the string s

Computer Science & Information Technology

You might also like to view...

The Merge Cells feature is the only way to combine multiple cells into one cell

Indicate whether the statement is true or false

Computer Science & Information Technology

Which of the following methods can be used to extract longer text strings?

A. slice.string(start [,end]) B. string.start(slice [,end]) C. string.slice(start [,end]) D. slice.start(string [,end])

Computer Science & Information Technology