go to previous page   go to home page   go to next page

Answer:

Yes. The tail of a single-character string is "". If you reverse it, you get "". And if you put 'X' at the end of it you get "X".


Bubbles

The following bubble diagram shows this working with the string "Apple". Each bubble is labeled with the character it appends at the end of the string it gets back from the bubble it calls.

Reversed String

QUESTION 13:

In the above, what character is the first one removed from the string?

What character is the last one appended to the reversed string?


go to previous page   go to home page   go to next page