
ARRAYS IN C
Authored by Yamini KP
Other
Professional Development
Used 232+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Array can be considered as set of elements stored in consecutive memory locations but having __________.
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
PRE TEST BINTEK KPPS
Quiz
•
Professional Development
14 questions
M2S04-05 - Influence du développement durable & du numérique
Quiz
•
Professional Development
10 questions
Quizizz - Finance Directorate Event
Quiz
•
Professional Development
13 questions
EO 5
Quiz
•
Professional Development
15 questions
Happy-happy Review Agenda II
Quiz
•
Professional Development
10 questions
C1. Entertainment
Quiz
•
Professional Development
10 questions
PMBOK - Gestión de Costos
Quiz
•
University - Professi...
10 questions
USO DE LA FUERZA
Quiz
•
Professional Development
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Other
20 questions
Black History Month Trivia Game #1
Quiz
•
Professional Development
100 questions
Screening Test Customer Service
Quiz
•
Professional Development
20 questions
90s Cartoons
Quiz
•
Professional Development
10 questions
Reading a ruler in Inches
Quiz
•
4th Grade - Professio...
16 questions
Parallel, Perpendicular, and Intersecting Lines
Quiz
•
KG - Professional Dev...
12 questions
Valentines Day Trivia
Quiz
•
Professional Development