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. Of course, you can usually get the answers by testing the code yourself or checking out MSDN.
Q1: CAS (Code Access Security) is a/an ____ -based security system.(1) Access (2) Code (3) Evidence (4) Permission (5) PrincipalQ2: Class SuperList implements an indexer: public string this [int index]; When index is not within valid range, the indexer should throw:(1) NotSupportedException (2) IndexOutOfRangeException (3) InvalidOperationException (4)ArgumentOutOfRangeException
Q3: Which one complies with .NET design naming guideline:(1)CLSCompliantAttribute (2)HttpSessionState.SessionID (3)Color.FromArgb (4)System.MarshalByRefObjectQ4: Which one works without an exception:(1) object[] demo = new object[10]; demo[10] = "demo10";(2) System.Collections.ArrayList demo = new System.Collections.ArrayList(10); demo[9] = "demo9";(3) System.Collections.Hashtable demo = new System.Collections.Hashtable(10); demo[8] = "demo8";
(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 http://www.microsoft.com/info/cpyright.htm)