230k views
14 votes
Please help! Here is the question and the answer choices.

Please help! Here is the question and the answer choices.-example-1
Please help! Here is the question and the answer choices.-example-1
Please help! Here is the question and the answer choices.-example-2

1 Answer

4 votes

Answer:

It is line 3. Line 3 is supposed to be hasNegative >- true.

Step-by-step explanation:

It is line 3 because the hasNegative <- true doesn't make any sense. It is supposed to change into hasNegative >- true because if the list contains a negative number, it should return as true. But hasNegative <- true means the opposite.

Hope it helped!

User Albert Nemec
by
4.3k points