A.Truetrue
B.Falsetrue
C.Falsetrue0
D.TruetrueInfinity
E.FalsetrueInfinity
第1题:
A.Bazhasthevalueof0
B.Bazhasthevalueof1
C.Bazhasthevalueof2
D.Anexceptionisthrown.
E.Thecodewillnotcompile.
第2题:
下列数组初始化语句哪些是正确的
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}};
第3题:
【多选题】下列数组初始化语句哪些是正确的?(2 分)
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}};
第4题:
下列数组初始化语句哪些是正确的
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}}
第5题:
以下程序的输出结果是: nums=[1,2,3,4] nums.append([5,6,7,8]) print(len(nums)
A.4
B.5
C.8
D.以上都不对