MCQs on Array in C

Hello students welcome to CSE Study247 , Today I am Provide you MCQs on Array in C.

This page provide 20 Multiple choice question with Answer that is very useful of Computer science students like preparation of many exam Like ( ISRO,DRDO ,Semester, Interview, TCS , Railway & another Government Sector)

❤️ TOP 500+ C Programming Question and Answer

C programming is the basic language of programming that help to learn another language. So this MCQ is very useful for you.


C is a general purpose ,high level language that originally developed by Dennis Ritchie to develop the UNIX operating system at Bell labs.


Q.1 Which of these best describes an array?

ANSWER= (A) Container of objects of similar types


Q.2 Array elements are stored in ?

ANSWER= (B) Sequential memory location


Q.3 A Character array always ends with

ANSWER= (A) Null (0) character


Q.3 What are the Types of Arrays

ANSWER= (C) Both A & B


Q.5 An array Index starts with



Q.6 If you declare array without static the elements it will be set to

ANSWER= (C) Garbage value


Q.7 Array can not be initialized if they are

ANSWER= (A) Automatic


Q.8 All the elementts in the array must be ?

ANSWER= (C) Both A & B


Q.9 Length of the string “csestudy” is



Q.10 Find out the output for the following program

  void main()
  int ary(3)=[1,2,3];
  printf(“%d”, a(1));

ANSWER= (D) Compiler error

Explain Array should be declared and defined with Square Brackets. Use ary[1] instead of ary(1)


Q.11 How many integer values can the array N[8][5] store ?

ANSWER= (C) 40


Q.12 How many integer values can the array N[2][2] store ?



Q.13 What index value should be used to access the last element of the integer array N[5]



Q.14 The process of creating a fixed sized array by allocating memory space at compile time is called

ANSWER= (A) Static memory allocation


Q.15 Find out the output for the following program

  void main()
  int no[4]=[12,23,35,40];
  printf(“%d”, no[2]);

ANSWER= (C) Compiler error

You should use Flower Brackets or Braces to define elements like {12,23,35,40} It is wrong to use [12,23,35,40]


Q.16 The variable used as a subscript in an array is popularly known as — variable

ANSWER= (C) Index


Q.17 How do you initialize an array in C?

ANSWER= (C) int arr[2] = {1,2};


Q.18 What is the maximum number of dimensions an array in C may have

ANSWER= (D) No Limit


Q.19 Array is an example of —– type memory allocation.

ANSWER= (B) Compile time


Q.20 Find out the output for the following program

  void main()
  int a[3] = {2,5,4}; a[0]++;
  int i=0;
  printf(“%d “, i[a]);


ANSWER= (A) 3 5 4

1. Official Telegram Click Here
2. Telegram For CSE MCQs Click Here
3. You TubeClick Here
error: Content is protected !!