Going through some MCPD practice exam questions, I ran into an interesting question I wanted to share. This questions highlights a programming philosophy in .NET coding that is encouraged by Microsoft.
Here is the question:
Click to expand any image.
The choices for answers are:
Now on a first look, it seems like the correct answer is the first choice since indeed the code does satisfy the requirements. However, the correct answer is the one highlighted. Here is why:
Interesting huh?
No comments:
Post a Comment