Array can be considered as set of elements stored in consecutive memory locations but having __________.

ARRAYS IN C

Quiz
•
Other
•
Professional Development
•
Hard
Yamini KP
Used 229+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Same data type
Different data type
Same scope
None of these
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the maximun number of dimensions an array in C may have?
Two
Eight
Sixteen
Theoratically no limit. The only practical limits are memory size and compilers
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will happen if in a C program you assign a value to an array element whose subscript exceeds the size of array?
The element will be set to 0.
The compiler would report an error.
The program may crash if some important data gets overwritten.
The array size would appropriately grow.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of C Program.?
int main()
{
int a[];
a[4] = {1,2,3,4};
printf("%d", a[0]);
}
1
2
4
Compiler Error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of C Program.?
int main()
{
int a[] = {1,2,3,4};
int b[4] = {5,6,7,8};
printf("%d,%d", a[0], b[0]);
}
1,5
2,6
0 0
Compiler error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of C Program.?
int main()
{
int a[3] = {10,12,14};
a[1]=20;
int i=0;
while(i<3)
{
printf("%d ", a[i]);
i++;
}
}
20 12 14
10 20 14
10 12 20
Compiler error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of C Program.?
int main()
{
int a[3] = {20,30,40};
a[0]++;
int i=0;
while(i<3)
{
printf("%d ", i[a]);
i++;
}
}
20 30 40
41 30 20
21 30 40
None of the above
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
French Beginner

Quiz
•
4th Grade - Professio...
15 questions
China Shipment

Quiz
•
Professional Development
10 questions
Python Basics

Quiz
•
Professional Development
15 questions
22 EKİM SİVEK TANIŞMA TOPLANTISI

Quiz
•
Professional Development
10 questions
QUIZ DATA JOURNEY

Quiz
•
Professional Development
10 questions
Health project

Quiz
•
4th Grade - Professio...
15 questions
Quiz sur les tableaux en C

Quiz
•
Professional Development
12 questions
Mega trudny quiz o wszystkim

Quiz
•
10th Grade - Professi...
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz

Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
15 questions
June Review Quiz

Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles

Quiz
•
8th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade