Sign in
Mike Stall's .NET Debugging Blog
Notes on Managed Debugging, ICorDebug, and random .NET stuff
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Tags
Azure
binary_diff
Compilers & Languages
csv
Design
dlr
Edit-And-Continue (EnC)
Family
feedback
FuncEval
ICorDebug
Interop (mixed-mode)
interview
linkfest
MDbg
Non-work
Pages
Python
Quiz
Random
random .net
reading
Reflection
Sample Code
Silverlight
Testing
This should be in MSDN
Troubleshooting
versioning
WebAPI
Whidbey (V2.0)
Windows Live
wishlist
WP7
Browse by Tags
MSDN Blogs
>
Mike Stall's .NET Debugging Blog
>
All Tags
>
quiz
Tagged Content List
Blog Post:
Quiz: can you count how many combinations ...
Mike Stall - MSFT
Here's a combinatorics quiz: If you have 2 ordered lists (lengths N, M), how many ways can they be interleaved into a single list while still preserving the partial ordering from the original lists? So if the lists were: List 1: A,B List 2: X,Y The following would be valid: A,B,X,Y A,X...
on
28 Jan 2008
Blog Post:
RTS Battle simulation with IronPython
Mike Stall - MSFT
I used Python to simulate Age of Empires archer battles. I wanted to be able to answer questions like: If 12 archers attack 10 archers, what will the margin of victory be? If two armies of the same size attack each other, how do different strategies affect the outcome? This also led to some...
on
2 Jan 2008
Blog Post:
"This statement is false"
Mike Stall - MSFT
Saying phrases like "This statement is false" does mean you've found some fatal flaw in logic itself and it does not make you sound smart. It makes you sound like somebody who doesn't know the difference between syntax and semantics. The real issue... In order for a statement to have meaning, it must...
on
20 Nov 2007
Blog Post:
Trivia about the [Conditional] attribute
Mike Stall - MSFT
The System.Diagnostics.Conditional attribute has been on blog-todo list for a while, and I'm finally getting around to it. For the quiz-loving folks, here you go: Quiz : First, some lingo: I'll say a Conditional Function is a function with a Conditional attribute on it. The conditional function is active...
on
15 Oct 2007
Blog Post:
Quiz: What runs before Main()?
Mike Stall - MSFT
Quiz: What managed code runs before managed Main() in your program startup path? Answers : I note "managed code", because obviously the CLR startup code gets executed, as does other native startup code. 1) The common answer is static constructors referenced from Main(). 2) The less common answer would...
on
14 Oct 2007
Blog Post:
Answer to Number puzzle
Mike Stall - MSFT
Here are answers + commentary to the number puzzle I posted yesterday, which was, fill in the digits: ABC + DEF GHI OR prove it's impossible. I originally moderated the answers but have now gone back and published them all. My conclusion is that the folks who read this blog are way smarter than I am...
on
13 Jun 2007
Blog Post:
Number puzzle
Mike Stall - MSFT
Here's a little number puzzle quiz. Fill in the digits: ABC + DEF GHI Where each letter represents a unique digit between 1 and 9, such that all digits are used exactly once. OR (and this is where it gets interesting...) prove that it's impossible to fill in such digits. (And, "it's too hard...
on
12 Jun 2007
Blog Post:
"Why are you picking off the olives?"
Mike Stall - MSFT
Somebody asked me this at lunch. I had gotten a pizza with olives, and was picking off the olives. I figured that would make a cute good interview question. So consider it a pop-quiz: why would somebody order a pizza with olives and then pick off the olives ? Spoiler: The simple answer...
on
9 Mar 2007
Blog Post:
Viewing types with Reflection-Only
Mike Stall - MSFT
It's natural for a tool to use Reflection-Only loading to load an assembly and view the types in it. For example, I used this in my pdb2xml tool. However, I missed an important detail that I wanted to warn you about after getting it wrong myself. Consider the following snippet which will print all...
on
22 Nov 2006
Blog Post:
Pop quiz: Who wins in finally vs. return?:
Mike Stall - MSFT
Question 1) What's the return value from this C# function: static int Test() { int val = 1; try { return val; } finally { val = 2; } } Question 2) What about this (using a static instead of local) static int s_val; static int Test() { s_val = 1; try { return...
on
5 Oct 2006
Page 1 of 1 (10 items)