PRN292c_-_FA_2023_-_1_1180.webp
lanhoa86

PRN292c_-_FA_2023_-_1_1180.webp

  • Media owner lanhoa86
  • Ngày thêm
(Choose 1 answer)
Considering method M3, which of the following statements is correct?
{ int x = 1;
public static int M3(int[][] J)foreach (int[] k in J){foreach (int e in k){}x *= e } return x;}
A. The output of the below statement is 12 M3(new int[][] { new int[] {1, 2}, new int[]{2, 3} });
B. The output of the below statement is 2
M3(new int[][] { new int[] { 0, 2} });
C. M3 will be compiled as the datatype of k should be int
D. The code below raises an exception since there are no elements in the given array.M3(new int[][] {});


Exit 20

Thông tin

Category
PRN292c
Thêm bởi
lanhoa86
Ngày thêm
Lượt xem
92
Lượt bình luận
1
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRN292c_-_FA_2023_-_1_1180.webp
File size
57.2 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom