
Data Structures
Authored by VIJI S
Computers
University
Used 66+ times

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
How is an array initialized in C language?
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
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
17 questions
Music, Politics, Poetry, Tech 2021
Quiz
•
3rd Grade - University
20 questions
Java Quiz 1
Quiz
•
University
15 questions
quiz pertemuan 2 asik ddp
Quiz
•
University
20 questions
TEST1.PY
Quiz
•
10th Grade - University
18 questions
Kiểu dữ liệu xâu kí tự trong Python
Quiz
•
10th Grade - University
18 questions
Fiber Optic
Quiz
•
University
20 questions
Review Quiz (Chapter 3&4)
Quiz
•
University
20 questions
C Programming Unit-1 Test-2
Quiz
•
University
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
Discover more resources for Computers
8 questions
2 Step Word Problems
Quiz
•
KG - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
10 questions
14.2 Independent/Dependent Variables
Quiz
•
KG - University
18 questions
Great Lakes States
Quiz
•
KG - University
7 questions
DNA, Chromosomes, Genes, and Traits: An Intro to Heredity
Interactive video
•
11th Grade - University
7 questions
Reflexive Verbs in Spanish
Lesson
•
9th Grade - University
7 questions
Narrative Writing 1
Interactive video
•
4th Grade - University