1. Question: Which are correct rectangular array declaration in C#?

    A
    in[,] matrix=new int[3,3];

    B
    var matrix=new int[,]{ {0,1,2}, {3,4,5}, {6,7,8} };

    C
    int [][] matrix=new int[3][];

    D
    int[,] matrix={ {0,1,2}, {3,4,5}, {6,7,8} };

    Note: Not available
    1. Report
  2. Question: Which are correct jagged array declaration in C#?

    A
    int[][] matrix=new int[3][];

    B
    int[][] matrix={ new int[]{0,1,2}, new int[]{3,4,5}, new int[]{6,7,8} };

    C
    int[,] matrix=new int[,]

    D
    var matrix=new int[][]{ new int[]{0,1,2}, new int[]{3,4,5}, new int[]{6,7,8} };

    Note: Not available
    1. Report
  3. Question: What is an array in C#?

    A
    A data structure that can hold multiple values of the same type

    B
    A data structure that holds only one value

    C
    A method to store variables

    D
    None

    Note: Not available
    1. Report
Copyright © 2024. Powered by Intellect Software Ltd