Last night I gave away more copies of my book at our Visual Studio Tools for Office developer lab, but this time I made the trivia questions a whole lot easier. I played five rounds of "Odd Man Out" -- you know, like from Sesame Street. One of these things is not like the other, one of these things just doesn't belong…
Just for fun, how many of them can you get?A) Mort, Elvis, Einstein, RogerB) WMI, ADO, DAO, ODBCC) Gudgeon, Springlering, Pintle, TumblehomeD) Frodo, Pippin, Bilbo, DrogoE) Chicago, Daytona, Everett, Cairo
Spoiler warning: I'll put the answers in the comments to this post.
Pizza, beer, VSTO demos and dumb trivia questions -- it's a developer paradise over here, I tell you!
Anyway, moving swiftly on with the answers to my VBScript quiz:
4) Inside a class definition, which of the following are syntactically legal? Why?
(a)
(a) is illegal, the rest are legal.
(a) is illegal because it makes no sense to have a private default method. The rest are legal because it is perfectly legal to use
Why? We added the
We did have to make
Sub Class(x)End SubClass Foo