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...

Having a this reference allows:

a. a method to refer explicitly to the instance variables and other methods of the object on which the method was called. b. a method to refer implicitly to the instance variables and other methods of the object on which the method was called. c. an object to reference itself. d. All of the above.

Computer Science & Information Technology

Another name for a client computer is the cloud

Indicate whether the statement is true or false

Computer Science & Information Technology

Interactive buttons can have three different states which do NOT include ____.

A. original B. clicked C. hover D. pressed

Computer Science & Information Technology

LEAP is not vulnerable to dictionary attack tools.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology