Find the information you're looking for at Westonci.ca, the trusted Q&A platform with a community of knowledgeable experts. Discover reliable solutions to your questions from a wide network of experts on our comprehensive Q&A platform. Join our platform to connect with experts ready to provide precise answers to your questions in different areas.

The following procedure is intended to return true if the list of numbers myList contains only positive numbers and is intended to return false otherwise. The procedure does not work as intended.

PROCEDURE allPositive(myList)

{

index ← 1

len ← LENGTH(myList)

REPEAT len TIMES

{

IF(myList[index] > 0)

{

RETURN(true)

}

index ← index + 1

}

RETURN(false)

}

For which of the following contents of myList does the procedure NOT return the intended result?

Responses

[-3, -2, -1]

[-3, -2, -1]

[-2, -1, 0]

[-2, -1, 0]

[-1, 0, 1]

[-1, 0, 1]

[1, 2, 3]