Question #41 is poorly worded. For example, in "add them to the end of each entry" what does the "them" refer to -- the values (the array elements) or newlines? I thought the former when I read it but the answer indicates the latter was the intent.
With that said I believe that English grammar rules would hint at removing the "that do not contain newlines" part of the sentence to determine what the "them" refers to.