Multiple choice technology programming languages

What operator is used to check whether the file is empty or not

  1. -e'

  2. -s'

  3. -z'

  4. -x'

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In Perl, the -z file test operator specifically returns true if the specified file exists and has a size of zero bytes (meaning it is empty). The -s operator returns the file size, which is used to check if a file is not empty.