
DSA 11.07.24
Authored by PUSHPALATHA C2114
Computers
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1.Consider the following stack implemented using stack.
#define SIZE 11
struct STACK
{
int arr[SIZE];
int top=-1;
}
What would be the maximum value of the top that does not cause the overflow of the stack?
8
9
11
10
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2.What would be the output after performing the following operations in a Deque?
Insertfront(10);
Insertfront(20);
Insertrear(30);
Insertrear(40);
Deletefront();
Insertfront(50);
Deleterear();
Display();
10, 20, 30
50, 10, 30
40, 20, 30
None of the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
3.Minimum number of queues required for priority queue implementation?
5
4
3
2
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
4.Heap sort is an implementation of ____________ using a descending priority queue.
a) insertion sort
b) selection sort
c) bubble sort
d) merge sort
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
5.What does the following piece of code do?
for (int i = 0; i < arr.length-1; i++) { for (int j = i+1; j < arr.length; j++) { if( (arr[i].equals(arr[j])) && (i != j) ) { System.out.println(arr[i]); } } }
a) Print the duplicate elements in the array
b) Print the element with maximum frequency
c) Print the unique elements in the array
d) Prints the element with minimum frequnecy
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
6.In doubly linked lists
A - a pointer is maintained to store both next and previous nodes.
B - two pointers are maintained to store next and previous nodes.
C - a pointer to self is maintained for each node.
D - none of the above.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
7.From a complete graph, by removing maximum _______________ edges, we can construct a spanning tree.
A - e-n+1
B - n-e+1
C - n+e-1
D - e-n-1
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
ETL - Quiz
Quiz
•
University
15 questions
PYTHON UNIT I MCQS
Quiz
•
University
11 questions
Python basics
Quiz
•
University
11 questions
Network Hardware
Quiz
•
12th Grade - University
12 questions
AppsLab_Q3
Quiz
•
1st Grade - Professio...
15 questions
Basic Java Quiz
Quiz
•
University
15 questions
After Effect Intoduction
Quiz
•
10th Grade - University
12 questions
OOP- Class+Object
Quiz
•
University
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
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
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
5 questions
What is Presidents' Day?
Interactive video
•
10th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
20 questions
Mardi Gras History
Quiz
•
6th Grade - University
10 questions
The Roaring 20's Crash Course US History
Interactive video
•
11th Grade - University
17 questions
Review9_TEACHER
Quiz
•
University