
Arrays

Quiz
•
Computers
•
University
•
Hard
Aruna Devi
Used 46+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int j[4] the sizeof(j) and sizeof(int )
will display the value
8,2
2,8
2,2
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is the correct statement to declare an
array?
int x[];
int x[5];
int x{5};
3.
FILL IN THE BLANK QUESTION
45 sec • 1 pt
Find the output
void main()
{
int i,marks[5]={55,56,67,78,64};
clrscr();
for(i=2;i<=4;i++)
printf(“\n %d”,marks[i]);
getche();
}
4.
FILL IN THE BLANK QUESTION
45 sec • 1 pt
Find the output
void main()
{
char name []={’a’,’m’,’i’,’t’};
int i;
clrscr();
for(i=0;i<=4;i++)
printf(“%c”,name[i]);
getche();
}
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose a correct statement about C language arrays.
An array address is the address of first element of array itself.
An array size must be declared if not initialized immediately.
Array size is the sum of sizes of all elements of the array.
All the above
6.
FILL IN THE BLANK QUESTION
1 min • 1 pt
find the output
void main()
{
int a1[5]={1};
int b=0,k=0;
clrscr();
for(b=0;b<=4;b++)
{
printf(“%3d”,++a1[0]);
}
}
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of C program.?
int main()
{
float marks[3] = {90.5, 92.5, 96.5};
int a=0;
while(a<3)
{ printf("%.2f,", marks[a]); a++; } }
90.5 92.5 96.5
90.50 92.50 96.50
0.00 0.00 0.00
Create a free account and access millions of resources
Similar Resources on Wayground
11 questions
Basics of JAVA

Quiz
•
University
15 questions
C Language Quiz-1

Quiz
•
University - Professi...
12 questions
Java quiz-2024-Sec-B

Quiz
•
University
12 questions
Archivos en JAVA

Quiz
•
University
10 questions
Array in C

Quiz
•
University
13 questions
C programming-1

Quiz
•
University
10 questions
Arrays

Quiz
•
11th Grade - University
10 questions
exception

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University