
Quiz on Array
Authored by Jayasheela Kallaganiger
Other
University

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
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
15 questions
Tax Goes to School
Quiz
•
University
20 questions
SIMULACRO DEL CURSO ADMISION
Quiz
•
University
20 questions
Repaso Desarrollo cognitivo
Quiz
•
University
20 questions
Nomenclatura Arancelaria
Quiz
•
University
21 questions
ALS
Quiz
•
University - Professi...
15 questions
LATIHAN ESEI
Quiz
•
University
18 questions
SEMM2223: Gear Train System
Quiz
•
University
20 questions
CostControl Quiz#3
Quiz
•
University
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
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
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Other
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University