Identify the right variant: Mr. White asked the boy: “Can you read or write?”

1 Mr. White said boy can he read or write.
2 Mr. White asked boy can he read or write.
3 Mr. White asked boy to read or write.
4 Mr. White asked the boy if he could read or write.
5 Mr. White told the boy to read or write.