VBScript Quiz Answers, Part One  VBScript Quiz Answers, Part One
• Comments 7  There were a grand total of eight entries to my
VBScript quiz -- I think I made it too hard! Congratulations to
Steven Bone and Nicholas Allen, who both got all twelve right,
with more-or-less correct explanations of what was happening
here. Guys, send me your addresses and I'll send you both
autographed books just as soon as I get my next box. Should be
any day now.  The answers are  1: only d is legal 2: only c is
Integer 3: only c is illegal 4: only a is illegal 5: only c
never prints False 6: only d is illegal 7: a 8: only c is legal
9: only a is legal 10: only a is illegal 11: only a is not a
tautology 12: c  (Hmm, no "b"s. That wasn't intentional. Weird.)
I'll spend the next few entries explaining the answers. But
before I get into the details, some jargon.  The standard design
for a compiler is as follows: first the text of the program is
broken up into tokens by a lexical analyzer, also known as a
"lexer" or "scanner".