placeholder image to represent content

Arrays

Quiz by Kavitha Praseed

Our brand new solo games combine with your quiz, on the same screen

Correct quiz answers unlock more play!

New Quizalize solo game modes
10 questions
Show answers
  • Q1

    Cell numbers of a dimensional array are also known as

    blocks

    subsrcipts

    compartments

    packets

    30s
  • Q2

    The elements of array arr[20] are numbered:

    0 to 20

    1 to 19

    1 to 20

    0 to 19

    30s
  • Q3

    Which element is represented by arr[20]?

    20th

    19th

    None

    21st

    30s
  • Q4

    State the total size in bytes of the array arr[5] of char data type.

    10 bytes

    20 bytes

    12 bytes

    40 bytes

    30s
  • Q5

    Name the algorithm which makes several passes through the array, selecting the next smallest item in the array each time and placing it where it belongs in the array.

    Selection sort

    Bubble sort

    linear search

    Binary search

    30s
  • Q6

    What is the output of the below Java program?

    int[] marks = {25,44,65,95};

    System.out.print(marks.length + "," + marks[1]);

    4,25

    3,44

    4,65

    4,44

    30s
  • Q7

    Which one of the following is a valid statement?

    int a[]=new int();

    int a[]=new int(5);

    int a[]=new int[5];

    int a()=new int(5);

    30s
  • Q8

    What is the output of the below Java program with arrays?

    String[] colors = {"RED";"YELLOW";"WHITE"};

    System.out.print(colors[2]);

    RED

    YELLOW

    WHITE

    compilation error

    30s
  • Q9

    What is the output of the below Java program with arrays?

    public class Polo {

    public static void main(String args[]) {

    String[] computer = {"RAM","HDD","MOUSE"};

    String[] parts = {computer[0],computer[2]};

    System.out.print(parts[1]);

    }

    }

    MOUSE

    HDD

    RAM

    compilation error

    30s
  • Q10

    Row number and Column number in a Multidimensional array start with ___.

    1

    0

    -1

    2

    30s

Teachers give this quiz to your class