Computers

9th -

12thgrade

Image

Arrays Intro

85
plays

12 questions

Show Answers
See Preview
  • 1. Multiple Choice
    30 seconds
    1 pt
    Which declaration creates an array that holds 5 ints?
    int[5] hand = new int[5];
    int[5] hand = new int[];
    int[] hand = new int[5];
    int hand = new int[5];
  • 2. Multiple Choice
    30 seconds
    1 pt
    For the array:
    double[] stats = new double[3];
    What is the range of the index?
    0 to 3
    0 to 2
    1 to 3
    0 to 4
  • 3. Multiple Choice
    30 seconds
    1 pt
    //Which array will win?
    string status = "Win";  
    if(player[3] == 4)          
      status = "lose";
    if(player[1] == 3)            
      status = "lose";
    if(player[2] == 2)            
      status = "lose";
    {0,1,2,3}
    {1,3,2,4}
    {3,2,1,4}
    {3,2,4,5}
  • Answer choices
    Tags
    Answer choices
    Tags

    Explore all questions with a free account

    Already have an account?