Computers

University

Image

Array

2.7K
plays

11 questions

Show Answers
See Preview
  • 1. Multiple Choice
    1 minute
    1 pt

    Java code to create a non-element array of student marks with the size of 20.

    double mark;

    double [20] mark = new double;

    double [ ] mark = new mark [20];

    double [ ] mark = new double [20];

  • 2. Multiple Choice
    1 minute
    1 pt

    Java code to create a non-element array of student name with size 15.

    String [ ] name = new String;

    String [ ] name = new String [15];

    name = new String [15];

    String [15] name = new String [ ];

  • 3. Multiple Choice
    1 minute
    1 pt

    Java code to create an array of student id with element 115331, 450055, 555641, 875560 and 987555.

    int [ ] id = new {115331, 450055, 555641, 875560, 987555};

    int [5] id = {115331, 450055, 555641, 875560, 987555};

    int [ ] id = {115331, 450055, 555641, 875560, 987555};

    int [ ] id = new int [5];

  • Answer choices
    Tags
    Answer choices
    Tags

    Explore all questions with a free account

    Already have an account?