Arrays


  1. Which of the following gives the memory address of the first element in array?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    array;


  1. Which of the following accesses the ninth element stored in array?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    The array location starts from zero, So it can accessed by array[8].



  1. What is a array?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    An array is a series of elements of the same type in contiguous memory locations


  1. What is the index number of the last element of an array with 12 elements?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    Because the first element always starts at 0. So it is on 11 position.



  1. Which of the following correctly declares an array?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    Because array variable and values need to be declared after the datatype only.