<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Realize .NET Potential  : Quiz</title><link>http://blogs.msdn.com/zhanbos/archive/tags/Quiz/default.aspx</link><description>Tags: Quiz</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>.NET Quiz (Q1-Q4)</title><link>http://blogs.msdn.com/zhanbos/archive/2004/06/28/168255.aspx</link><pubDate>Tue, 29 Jun 2004 01:40:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:168255</guid><dc:creator>zhanbos</dc:creator><slash:comments>14</slash:comments><comments>http://blogs.msdn.com/zhanbos/comments/168255.aspx</comments><wfw:commentRss>http://blogs.msdn.com/zhanbos/commentrss.aspx?PostID=168255</wfw:commentRss><description>&lt;P&gt;A quick way to measure your understanding of .NET is to take some quiz questions. And from time to time, I will offer some for your enjoyment. The answers will be given out either in the comment and/or in the next Quiz blog.&amp;nbsp;Of course, you can usually get the answers by testing the code yourself or checking out MSDN. &lt;/P&gt;
&lt;P&gt;Q1: CAS (Code Access Security) is a/an ____ -based security system.&lt;BR&gt;(1) Access (2) Code (3) Evidence (4) Permission (5) Principal&lt;BR&gt;&lt;BR&gt;Q2: Class SuperList implements an indexer: public string this [int &lt;EM&gt;index&lt;/EM&gt;]; When &lt;EM&gt;index&lt;/EM&gt; is not within valid range, the indexer should throw:&lt;BR&gt;(1) NotSupportedException (2) IndexOutOfRangeException &lt;BR&gt;(3) InvalidOperationException (4)ArgumentOutOfRangeException&lt;/P&gt;
&lt;P&gt;Q3: Which one complies with .NET design naming guideline:&lt;BR&gt;(1)CLSCompliantAttribute (2)HttpSessionState.SessionID &lt;BR&gt;(3)Color.FromArgb&amp;nbsp; (4)System.MarshalByRefObject&lt;BR&gt;&lt;BR&gt;Q4: Which one works without an exception:&lt;BR&gt;(1) object[] demo = new object[10];&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; demo[10] = "demo10";&lt;BR&gt;(2) System.Collections.ArrayList demo = new System.Collections.ArrayList(10);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; demo[9] = "demo9";&lt;BR&gt;(3) System.Collections.Hashtable demo = new System.Collections.Hashtable(10);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; demo[8] = "demo8";&lt;/P&gt;
&lt;P&gt;(This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at &lt;A href="http://www.microsoft.com/info/cpyright.htm"&gt;http://www.microsoft.com/info/cpyright.htm&lt;/A&gt;) &lt;BR&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=168255" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/zhanbos/archive/tags/Quiz/default.aspx">Quiz</category></item></channel></rss>