
Data structures Viva
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
V Shejina
Used 3+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the below code?
#include <stdio.h>
int main()
{
int arr[5]={10,20,30,40,50};
printf("%d", arr[5]);
return 0;
}
50
10
0
Garbage value
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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?
9
10
11
12
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one of the following is the overflow condition if a circular queue is implemented using array having size MAX?
rear= MAX-1
rear= MAX
front=(rear+1) mod MAX
None of these
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following code.
int fun()
{
if(isEmpty())
{
return -10;
}
else
{
int n;
n= q[front];
front++;
return n;
}
}
Which operation does the above code perform?
A)Enqueue
B) Dequeue
C) Returns the front element
Both B & C
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a circular queue implementation using array of size 5, the array index starts with 0 where front and rear values are 3 and 4 respectively. Determine the array index at which the insertion of the next element will take place.
5
0
1
2
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Minimum number of fields in each node of a doubly linked list is
____
2
3
4
5
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
Object Oriented Programming Assessment 1
Quiz
•
University
11 questions
Tutorium 1 - Prog2
Quiz
•
University
10 questions
computer Networks
Quiz
•
University
10 questions
Industry 4.0 Unit 1
Quiz
•
University
10 questions
Scratch
Quiz
•
KG - Professional Dev...
16 questions
E-Commerce
Quiz
•
University - Professi...
20 questions
Control Structures C#
Quiz
•
University
11 questions
HTML Postest
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
