ASP.NET中,在Web窗体页上注册一个用户控件,指定该控件的名称为”Mike”,正确的注册指令为()(2分)
A. 〈%@Register TagPrefix = “Mike” TagName = “Space2” Src = “myX.ascx”%〉
B. 〈%@Register TagPrefix = “Space2” TagName = “Mike” Src = “myX.ascx”%〉
C. 〈%@Register TagPrefix = “SpaceX” TagName = “Space2” Src = “Mike”%〉
D. 以上皆非
以下是一些C#中的枚举型的定义,其中错误的用法有()(3分)
A. public enum var1{ Mike = 100, Nike =”102”, Jike }
B. public enum var1{ Mike = 100, Nike, Jike }
C. public enum var1{ Mike=-1 , Nike, Jike }
D. public enum var1{ Mike , Nike , Jike }
下列数组初始化语句哪些是正确的?(3分)
A. int[] nums = new int[]{0,1,2,3,4};
B. int[] nums2 = {0,1,2,3,4,5};
C. int[][] num_1 = {new int[]{0,1},new int[]{0,1,2},new int[]{0,1,2,3}};
D. int[][] num_2 = {{0,1},{0,1,2},{0,1,2,3}};