CompTIA Linux+ XK0-005 – Question006

A user is asking the systems administrator for assistance with writing a script to verify whether a file exists.
Given the following:

Which of the following commands should replace the <CONDITIONAL> string?

A.
if [ -f "$filename" ]; then
B. if [ -d "$filename" ]; then
C. if [ -f "$filename" ] then
D. if [ -f "$filename" ]; while

Correct Answer: A