The new program does not have quote marks to show the start and end of the character string:
LET NAME$ = Sherlock Holmes PRINT NAME$ END
This is a syntax error. QBasic will not run the program.
The correct program is:
LET NAME$ = "Sherlock Holmes" PRINT NAME$ END
The quote marks are needed to show what characters are part of the string. Without the quote marks it is not clear what the programmer wants.
Here is the program again, with a slight change:
LET NAME$ = "Sherlock Holmes" PRINT NAME END
What do you think will happen with this new program? (Hint: this is another trick question.)