pencil-icon
Build your own quiz

Computers

11th

grade

Image

java arrays

295
plays

22 questions

Show Answers
See Preview
  • 1. Multiple Choice
    5 minutes
    1 pt

    What is the length of the following array: byte[] data = { 12, 34, 9, 0, -62, 88 };

    1

    5

    6

    12

  • 2. Multiple Choice
    5 minutes
    1 pt

    Which of the following is FALSE about arrays on Java

    A java array is always an object

    Length of array can be changed after creation of array

    Arrays in Java are always allocated on heap

  • 3. Multiple Choice
    5 minutes
    1 pt

    class Demo1

    {

    public static void main(String args[])

    {

    int i[] = new int[10];

    System.out.println(i[10]);

    }

    }

    0

    Garbage Value

    Out-of-bounds exception

    Error

  • Answer choices
    Tags
    Answer choices
    Tags

    Explore all questions with a free account

    Already have an account?