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?
Q.2 Array elements are stored in ?
Q.3 A Character array always ends with
Q.3 What are the Types of Arrays
Q.5 An array Index starts with
Q.6 If you declare array without static the elements it will be set to
Q.7 Array can not be initialized if they are
Q.8 All the elementts in the array must be ?
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));
}
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 ?
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
Q.15 Find out the output for the following program
void main()
{
int no[4]=[12,23,35,40];
printf(“%d”, no[2]);
}
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
Q.17 How do you initialize an array in C?
Q.18 What is the maximum number of dimensions an array in C may have
Q.19 Array is an example of —– type memory allocation.
Q.20 Find out the output for the following program
void main()
{
int a[3] = {2,5,4}; a[0]++;
int i=0;
while(i<3)
{
printf(“%d “, i[a]);
} 3)>
}
1. Official Telegram | Click Here |
2. Telegram For CSE MCQs | Click Here |
3. You Tube | Click Here |