How is an array initialized in C language?
Data Structures

Quiz
•
Computers
•
University
•
Medium
VIJI S
Used 49+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int a[3] = {1, 2, 3};
int a = {1, 2, 3};
int a[] = new int[3]
int a(3) = [1, 2, 3];
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not the type of queue?
Priority queue
Single-ended queue
Circular queue
Ordinary queue
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the output of the following code snippet?
void solve() {
int a[] = {1, 2, 3, 4, 5};
int sum = 0;
for(int i = 0; i < 5; i++) {
if(i % 2 == 0) {
sum += *(a + i);
}
else {
sum -= *(a + i);
}
}
cout << sum << endl;
}
15
syntax error
3
2
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not the type of queue?
Single-ended queue
Circular queue
Priority queue
Ordinary queue
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How are String represented in memory in C?
LinkedList of characters.
The object of some class.
An array of characters.
Same as other primitive data types.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The depth of a complete binary tree is given by
Dn = log2n+1
Dn = n log2n+1
Dn = n log2n
Dn = log2n
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Binary trees nodes with no successor are called......
Final nodes
Last nodes
Terminal nodes
End nodes
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
New DSC Quiz

Quiz
•
University
20 questions
Data Structures and Algorithm

Quiz
•
University
20 questions
Data Structures

Quiz
•
University - Professi...
15 questions
DS MODULE 3 LINKED LIST

Quiz
•
University
20 questions
Final Quiz

Quiz
•
University
20 questions
DATA STRUCTURES

Quiz
•
University
15 questions
Data Structure

Quiz
•
University
20 questions
Data Structures Quiz

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade