Welcome to Westonci.ca, your go-to destination for finding answers to all your questions. Join our expert community today! Join our Q&A platform to connect with experts dedicated to providing accurate answers to your questions in various fields. Explore comprehensive solutions to your questions from knowledgeable professionals across various fields on our platform.

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]