JAVA/Sun Exam Questions

What is Wally searching for in this file?

Wally is logged into a system and is searching in a file using the following command.
$ grep -i "$LOGNAME" weekly-reports.txt
What is Wally searching for in this file?

A.
The string wally, upper or lower case.

B.
The string LOGNAME, upper or lower case.

C.
The string LOGNAME at the end of a line, upper or lower case.

D.
The string $LOGNAME upper or lower case.