
Quiz on Array

Quiz
•
Other
•
University
•
Hard
Jayasheela Kallaganiger
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is Array?
Collection of different type of elements
Collectionof similar type of elements
None of the above
Both a n b
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is right way to Initialize array?
int num[6] = { 2, 4, 12, 5, 45, 5 };
int n{} = { 2, 4, 12, 5, 45, 5 };
int n{6} = { 2, 4, 12 };
int n(6) = { 2, 4, 12, 5, 45, 5 };
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Size of the array need not be specified, when
It is a declaratrion
Initialization is a part of definition
Only It is a formal parameter
All the above
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Predict the output of below code:
#include<stdio.h>
int main()
{
int a[5] = {5, 1, 15, 20, 25};
int i, j, m;
i = ++a[1];
j = a[1]++;
m = a[i++];
printf("%d, %d, %d", i, j, m);
return 0;
}
2,5,15
3, 2, 15
1,2,5
12,15,1
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of a[4]?
int a[5]={1,2,4,1,0}
1
10
0
Error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of C program with arrays?
int main()
{
int a[3] = {20,30,40};
int b[3];
b=a;
printf("%d", b[0]);
}
Compiler Error
Output : 20
Output : 30
Output : 0
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
applications of a multidimensional array
Matrix-Multiplication
Minimum Spanning Tree
Finding connectivity between nodes
All the above
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Two Pointer Quiz

Quiz
•
University
15 questions
Data Structures (Arrays)

Quiz
•
University
16 questions
Data Structures Prelimes

Quiz
•
University
15 questions
Exploring Python Fundamentals

Quiz
•
University
15 questions
Engineers Day Celebration Quiz - Code IT, STME HYD

Quiz
•
University
15 questions
Storage CompTIA 20200415

Quiz
•
University
20 questions
Techwiz - ICL2.0 Quiz

Quiz
•
University
25 questions
c language

Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
11 questions
NFL Football logos

Quiz
•
KG - Professional Dev...
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
38 questions
Unit 6 Key Terms

Quiz
•
11th Grade - University
20 questions
La Hora

Quiz
•
9th Grade - University
7 questions
Cell Transport

Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?

Interactive video
•
4th Grade - University