If the input is 'red blue green yellow', which of the following outputs shows the colors sorted by length of the word?

B. BLUE RED GREEN YELLOW

Given the input 'cat dog apple', which of the following is the correct output after rearranging the words in alphabetical order?

A. APPLE CAT DOG

If the input is '3 1 4 2', what will be the output after sorting the numbers in ascending order?

A. 1 2 3 4

From the input 'zebra monkey apple', what is the output after rearranging the words in reverse alphabetical order?

A. ZEBRA MONKEY APPLE

Given the input 'cat dog apple banana', what is the output after rearranging in alphabetical order?

A. APPLE BANANA CAT DOG