Computers

University -

Professional Development

Image

Ap Computer science Chapter 6

21
plays

5 questions

Show Answers
See Preview
  • 1. Multiple Choice
    30 seconds
    1 pt
    Image

    An array is more flexible than an AraayList

    True

    False

  • 2. Multiple Choice
    30 seconds
    1 pt
    Image

    What is this function of this method?


    private void swap(int[] arr, int i, int j)

    {

    int temp = arr[i];

    arr[i] = arr[j];

    arr[j] = temp;

    }


    //CHOOSE ALL THE FOLLOWING

    Swapping

    Blah Blah Blah

    Shifting

    initializing

    analyzing

  • 3. Multiple Choice
    30 seconds
    1 pt
    Image

    an array list cannot shrink or expand, you need to write a code to shift elements?

    True

    False

  • Answer choices
    Tags
    Answer choices
    Tags

    Explore all questions with a free account

    Already have an account?