Multiple choice technology testing

What is the output of the following code snippet @echo off for /l %%X in (C:*) do echo %%X

  1. Displays the names of the directories present in C Drive

  2. Infinite loop

  3. Syntax Error

  4. None of the above

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

The syntax used in the loop command is invalid for batch scripting, specifically the misuse of the /l switch combined with a file path like C:*, which results in a syntax error.