What is Array?

Quiz on Array

Quiz
•
Other
•
University
•
Hard
Jayasheela Kallaganiger
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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 Quizizz
20 questions
Round 3-Tech Titans

Quiz
•
University
20 questions
TECHTRIX2025 BUGHUNT SET5

Quiz
•
University
17 questions
C Program Day 2

Quiz
•
University
20 questions
TECHTRIX2025 BUGHUNT SET4

Quiz
•
University
25 questions
C Programming

Quiz
•
12th Grade - University
25 questions
Round 2- Syntax ShowDown

Quiz
•
University
20 questions
Logika & Algoritma Pemrograman

Quiz
•
University
20 questions
First Meet Sains Data 2022

Quiz
•
University
Popular Resources on Quizizz
10 questions
Chains by Laurie Halse Anderson Chapters 1-3 Quiz

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
15 questions
Character Analysis

Quiz
•
4th Grade
12 questions
Multiplying Fractions

Quiz
•
6th Grade
30 questions
Biology Regents Review #1

Quiz
•
9th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function

Quiz
•
9th - 12th Grade
Discover more resources for Other
10 questions
Identifying equations

Quiz
•
KG - University
16 questions
Chapter 8 - Getting Along with your Supervisor

Quiz
•
3rd Grade - Professio...
6 questions
Railroad Operations and Classifications Quiz

Quiz
•
University
71 questions
Logos

Quiz
•
3rd Grade - University
8 questions
Mali - Geography

Quiz
•
University