
ADS_2022-23
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
Rakhi Wajgi
Used 3+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Q 1. A circularly linked list is used to represent a Queue. A single variable p is used to access the Queue. To which node should p point such that both the operations enQueue and deQueue can be performed in constant time?
rear node
front node
not possible with a single pointer
node next to front
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
The following C function takes a single-linked list of integers as a parameter and rearranges the elements of the list. The function is called with the list containing the integers 1,2,3,4,5,6,7 in the given order. What will be the contents of the list after the function completes execution? struct node { int value; struct node *next; }; Void rearrange (struct node *list ){ struct node *p, *q; int temp; if( !list || !list-> next) return; p = list; q = list->next; while (q) { temp = p->value; p-> value = q ->value; q-> value = temp; p = q-> next; q = p ? p->next : 0; } }
1,2,3,4,5,6,7
2,1,4,3,6,5,7
1,3,2,5,4,6,7
2,3,4,5,6,7,1
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The best data structure to check whether an arithmetic expression has balanced parentheses is a
Queue
Trees
Stack
Linked List
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Suppose a stack implementation supports an instruction REVERSE, which reverses the order of elements on the stack, in addition to the PUSH and POP instructions. Which one of the following statements is TRUE with respect to this modified stack?
A queue cannot be implemented using this stack.
A queue can be implemented where ENQUEUE takes a single instruction and DEQUEUE takes a sequence of two instructions.
A queue can be implemented where ENQUEUE takes a sequence of three instructions and DEQUEUE takes a single instruction.
A queue can be implemented where both ENQUEUE and DEQUEUE take a single instruction each.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the worst case time complexity of searching for singly linked list?
O(1)
O(n^2)
O(n)
O(log n)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
which of the following is not the application of tree data structure
In Compiler designing
In AI for searching
finding shortest distance
sorting
7.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Consider the skip list with three levels: L0: 2,5,9,11,13,18,22,25,28,33,36,40,44,46. L1:2,11,22,33,44. L2:2,33. How many comparisons needed for searching element 40
Create a free account and access millions of resources
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
11 questions
Examen Tema 1 - Simulación
Quiz
•
University
10 questions
Post Test #4 - Python Fundamental #3
Quiz
•
University
10 questions
Data Warehouse - Foundations
Quiz
•
University
7 questions
Data mining-Clustering-1
Quiz
•
University
15 questions
GIS Unit III
Quiz
•
University
15 questions
Computer and Other Human Inventions
Quiz
•
University
15 questions
Robotics Prelim
Quiz
•
University
12 questions
Cloud Computing - Introducción
Quiz
•
University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
20 questions
Slopes and Slope-Intercept Form
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Biomolecules (Updated)
Interactive video
•
11th Grade - University
20 questions
Winter/Holiday Trivia
Quiz
•
KG - University
10 questions
WINTER WIN Time - ELA - 12/9/2025
Quiz
•
KG - University
7 questions
Human Impact on Resources
Interactive video
•
4th Grade - University

