This document contains a 50 question quiz on data structures. The questions cover topics like linked lists, stacks, queues, trees, sorting algorithms, hashing and more. For each question there are 4 multiple choice answers and the correct answer is indicated. The quiz is assessing understanding of fundamental data structure concepts and their applications.
Building Ontologies from Multiple Information SourcesRaji Ghawi
This is the powerpoint presentation of my paper: "Building Ontologies from Multiple Information Sources", presented at IT2009 conference in Kaunas, Lithuania, 23/04/2009.
This is a Question Papers of Mumbai University for B.Sc.IT Student of Semester - IV [C++ and Java] (Old Course). [Year - June / 2014] . . . Solution Set of this Paper is Coming soon . . .
Building Ontologies from Multiple Information SourcesRaji Ghawi
This is the powerpoint presentation of my paper: "Building Ontologies from Multiple Information Sources", presented at IT2009 conference in Kaunas, Lithuania, 23/04/2009.
This is a Question Papers of Mumbai University for B.Sc.IT Student of Semester - IV [C++ and Java] (Old Course). [Year - June / 2014] . . . Solution Set of this Paper is Coming soon . . .
Data Structures Multiple Choice Questions (MCQs) are designed to test an individual's understanding of the fundamental concepts, algorithms, and implementations related to organizing and storing data efficiently. These questions cover a wide range of topics within the field of data structures. Below is a description outlining the common themes addressed by MCQs in this domain:
Basic Concepts:
MCQs may cover fundamental concepts such as arrays, linked lists, stacks, and queues.
Understanding the basic properties, advantages, and disadvantages of these data structures is often assessed.
Trees and Graphs:
Questions may focus on tree structures, including binary trees, AVL trees, and B-trees.
Graph-related topics could include concepts like traversal algorithms, connectivity, and properties of directed and undirected graphs.
Hashing:
MCQs often evaluate knowledge of hashing techniques and collision resolution methods.
Understanding the principles of hash functions and their applications in data retrieval is essential.
Sorting and Searching:
Questions may cover various sorting algorithms (e.g., bubble sort, quicksort, mergesort) and their time complexities.
Searching algorithms, such as binary search and linear search, might be included in these questions.
Dynamic Programming:
MCQs may assess the understanding of dynamic programming concepts, including optimal substructure and overlapping subproblems.
Knowledge of dynamic programming techniques to solve problems efficiently may be evaluated.
Graph Algorithms:
Questions may explore graph traversal algorithms like depth-first search (DFS) and breadth-first search (BFS).
Shortest path algorithms (e.g., Dijkstra's algorithm, Bellman-Ford algorithm) and minimum spanning tree algorithms may also be covered.
Heap and Priority Queue:
MCQs may inquire about heap data structures and their applications, including priority queues.
Understanding the operations and time complexities associated with heaps is commonly tested.
Advanced Data Structures:
Questions may cover more advanced data structures such as trie, segment tree, and Fenwick tree (Binary Indexed Tree).
Knowledge of these structures and their use cases is often examined in MCQs.
Abstract Data Types (ADTs):
MCQs may assess the understanding of abstract data types like stacks, queues, and sets.
Candidates may be tested on their ability to choose appropriate ADTs based on specific requirements.
Space and Time Complexity Analysis:
Questions may evaluate the ability to analyze the time and space complexity of algorithms and data structures.
Candidates may need to compare different algorithms and choose the most efficient one for a given problem.
Applications and Real-World Scenarios:
Some MCQs may present real-world scenarios and ask candidates to identify the most suitable data structure or algorithm for solving specific problems.
These MCQs aim to assess a candidate's proficiency in understanding, implementing, and analyzing various data.
Introduction to Data structure & Algorithms - Sethuonline.com | Sathyabama Un...sethuraman R
Introduction to Data structure Algorithms
R.Sethuraman M.E,(PhD).,
Assistant Professor,
Faculty of Computing,
Dept of Computer Science Engineering,
Sathyabama University
http://Sethuonline.com
Std 12 Computer Chapter 9 Working with Array and String in Java important MCQsNuzhat Memon
Std 12 Computer Chapter 9 Working with Array and String in Java important MCQs
Std 12 Computer MCQs
Computer std 12 mcq ch 9
computer std 12 ch 9 mcq
std 12 important mcq
chapter 9 working with array and string
1 d array (single dimensional array)
2 d array
String in java
This course will cover the practical aspects of network programming, with emphasis on the Internet. The goal of this course is to introduce the students to the basics of networks programming. We will introduce the students to the TCP/IP protocol stack and some of its important protocols. Students will also be introduced to multi-tier application development and RPC technologies including: RMI, CORBA, EJB, and Web Services.
Water billing management system project report.pdfKamal Acharya
Our project entitled “Water Billing Management System” aims is to generate Water bill with all the charges and penalty. Manual system that is employed is extremely laborious and quite inadequate. It only makes the process more difficult and hard.
The aim of our project is to develop a system that is meant to partially computerize the work performed in the Water Board like generating monthly Water bill, record of consuming unit of water, store record of the customer and previous unpaid record.
We used HTML/PHP as front end and MYSQL as back end for developing our project. HTML is primarily a visual design environment. We can create a android application by designing the form and that make up the user interface. Adding android application code to the form and the objects such as buttons and text boxes on them and adding any required support code in additional modular.
MySQL is free open source database that facilitates the effective management of the databases by connecting them to the software. It is a stable ,reliable and the powerful solution with the advanced features and advantages which are as follows: Data Security.MySQL is free open source database that facilitates the effective management of the databases by connecting them to the software.
Understanding Inductive Bias in Machine LearningSUTEJAS
This presentation explores the concept of inductive bias in machine learning. It explains how algorithms come with built-in assumptions and preferences that guide the learning process. You'll learn about the different types of inductive bias and how they can impact the performance and generalizability of machine learning models.
The presentation also covers the positive and negative aspects of inductive bias, along with strategies for mitigating potential drawbacks. We'll explore examples of how bias manifests in algorithms like neural networks and decision trees.
By understanding inductive bias, you can gain valuable insights into how machine learning models work and make informed decisions when building and deploying them.
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesChristina Lin
Traditionally, dealing with real-time data pipelines has involved significant overhead, even for straightforward tasks like data transformation or masking. However, in this talk, we’ll venture into the dynamic realm of WebAssembly (WASM) and discover how it can revolutionize the creation of stateless streaming pipelines within a Kafka (Redpanda) broker. These pipelines are adept at managing low-latency, high-data-volume scenarios.
ACEP Magazine edition 4th launched on 05.06.2024Rahul
This document provides information about the third edition of the magazine "Sthapatya" published by the Association of Civil Engineers (Practicing) Aurangabad. It includes messages from current and past presidents of ACEP, memories and photos from past ACEP events, information on life time achievement awards given by ACEP, and a technical article on concrete maintenance, repairs and strengthening. The document highlights activities of ACEP and provides a technical educational article for members.
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsVictor Morales
K8sGPT is a tool that analyzes and diagnoses Kubernetes clusters. This presentation was used to share the requirements and dependencies to deploy K8sGPT in a local environment.
1. SHRI RAWATPURA SAKAR INSTITUTE OF TECHNOLOGY, NEW RAIPUR
BE CSE 4th
SEMESTER
Data Structure Quiz Question
1. Which of the following points
is/are true about Link List data
structure when it is comparedwith
array?
a) Arrays have better cache locality
that can make them better in terms of
performance
b) It is easy to insert and delete
elements in Linked List
c) Random access is not allowed in
typical implementation of Linked
Lists
d) All of the above
Ans: D
2. Which of the following
algorithms canbe used to sort a
random link list with minimum
time complexity?
a) Insertion Sort
b) Quick Sort
c) Merge Sort
d) Heap Sort
Ans: C
3. Which one of the following is the
application of stack data structure?
a) Managing function calls
b) The stockspan problem
c) Arithmetic expression evolution
d) All of the above
Ans:D
4. Which of the following is true
about linked list implementation of
stack?
a) In push operation, if new nodes are
inserted at the beginning of link list,
then in poop operation, nodes must be
removed from end.
b) In push operation, if new nodes are
inserted at the end, then in pop
operation, nodes must be removed
from beginning.
c) Both of the above
d) None of the above.
Ans: D
5. Which one of the following is an
application of Queue data
structure?
a) When a resource is shared among
multiple consumers
b) When data is transferred
asynchronously between 2 processes
c) Load balancing
d) All of the above
Ans: D
6. How many stacks are neededto
implement a queue. Considerthe
situation where no other data
structure like arrays, linked list is
available to you.
a) 1
b) 2
2. SHRI RAWATPURA SAKAR INSTITUTE OF TECHNOLOGY, NEW RAIPUR
BE CSE 4th
SEMESTER
Data Structure Quiz Question
c) 3
d) 4
Ans: B
7. How many queues are needed to
implement a stack. Considerthe
situation where no other data
structure like arrays, linked list is
available to you.
a) 1
b) 2
c) 3
d) 4
Ans: B
8. A priority queue can efficiently
implemented using which of the
following data structures? Assume
that the number of insert and peek
(operation to see the current highest
priority item) and extraction
(remove the highestpriority item)
operations are almost same.
a) Array
b) Link List
c) Heap data structures like binary
heap, Fibonacciheap
d) None of the above
Ans: C
9. Which of the following is true
about Binary Trees
a) Every Binary Tree is either
complete or full
b) Every complete binary tree is also a
full binary tree
c) Every full binary tree is also a
complete binary tree
d) None of the above
Ans: D
10. The maximum number of
binary trees that can be formed
with three unlabeled nodes is:
a) 1
b) 5
c) 4
d) 3
Ans: B
11. How many distinct binary
searchtrees canbe createdout of 4
distinct keys?
a) 4
b) 14
c) 24
d) 42
Ans: B
12. One Key reasonwhy developers
have difficulty testing their own
work is:
a) Lack of technical documentation
b) Lack of test tools on the market for
developer’s
c) Lack of Objectivity
d) Lack of training
Ans: C
3. SHRI RAWATPURA SAKAR INSTITUTE OF TECHNOLOGY, NEW RAIPUR
BE CSE 4th
SEMESTER
Data Structure Quiz Question
13. What is the worstcase run-time
complexity of binary search
algorithm?
a) O(n2)
b) O(nlogn)
c) O(n3)
d) O(n)
Ans: D
14. Postfix expressionis just a
reverse of prefix expression.
a) True
b) False
Ans: B
15. Quick sort algorithm is an
example of?
a) Greedy Approach
b) Improved binary search
c) Dynamic Programming
d) Divide & Conquer
Ans: D
16. Visiting root node after visiting
left and right sub-trees is called
a) In-order traversal
b) Pre-order traversal
c)Post-ordertraversal
Ans: C
17. Time complexity of Depth First
Traversal of is?
a) Θ(|V|+|E|)
b) Θ(|V||)
c) Θ(|E|)
d) Θ(|V|*|E|)
Ans: A
18. If queue is implemented using
arrays, what would be the worst
run time complexity of queue and
dequeue operation?
a) O(n), O(n)
b) O(n), O(1)
c) O(1), O(n)
d) O(1), O(1)
Ans: D
19. Towerof Hanoi is an example
of:
a) Divide & Conquer
b) Recursive approach
c) Option B but not option A
d) Both A & B
Ans: D
20. A Pivot element to partition
unsorted list is used in:
a) Merge Sort
b) Quick Sort
c) Insertion Sort
d) Selection Sort
Ans: B
4. SHRI RAWATPURA SAKAR INSTITUTE OF TECHNOLOGY, NEW RAIPUR
BE CSE 4th
SEMESTER
Data Structure Quiz Question
21. A stable algorithm -
a) Doesn’t crash
b) Doesn’t run out of memory
c) Doesn’t change the sequence of
appearance of elements
d) Doesn’t existss
Ans: C
22. What is the time complexity of
Build Heap operation. Build Heap
is used to build a max(or min)
binary heap from a given array.
Build Heap is used in Heap Sort as
a first step for sorting.
a) O(nlogn)
b) O(n2)
c) O(logn)
d) O(n)s
Ans: D
23. What is the time complexity of
Build Heap operation. Build Heap
is used to build a max(or min)
binary heap from a given array.
Build Heap is used in Heap Sort as
a first step for sorting.
a) O(nlogn)
b) O(n2)
c) O(logn)
d) O(n)s
Ans: D
24. A max-heap is a heap where the
value of each parent is greater than
or equal to the values of its
children. Which of the following is a
max-heap?
Ans: B
25. In a binary max heap containing
n numbers, the smallest element
can be found in time
a) O(n)
b) O(logn)
c) O(loglogn)
d) O(1)
Ans: A
26. Given two max heaps of size n
each, what is the minimum possible
time complexity to make a one max-
heap of size from elements of two
max heaps?
a) O(nlogn)
b) O(nloglogn)
5. SHRI RAWATPURA SAKAR INSTITUTE OF TECHNOLOGY, NEW RAIPUR
BE CSE 4th
SEMESTER
Data Structure Quiz Question
c) O(n)
d) O(nlogn)
Ans: C
27. Which of the following Binary
Min Heap operation has the highest
time complexity?
a) Inserting an item under the
assumption that the heap has capacity
to accommodate one more item
b) Merging with another heap
c) O(n)
d) O(nlogn)
Ans: C
28. How is Data in a Queue
accessed?
a) First in First out
b) First in Last out
c) Last in First out
d) None of these
Ans: A
29. An Adjacency matrix
representation of a graph cannot
contain information of:
a) nodes
b) edges
c) direction of edges
d) parallel edges
Ans: D
30. Which of the following is/are the
levels of implementation of data
structure:
a) Abstract level
b) Application level
c) Implementation level
d) All of the above
Ans: D
31. A linear collection of data
elements where the linear node is
given by means of pointer is called:
a) Linked List
b) node list
c) Primitive list
d) None of these
Ans: A
32. …………. Is not an operation
performed on linear list.
a) Insertion
b) Insertion & Deletion
c) Deletion & Traversal
d) None of the above
Ans: D
33. Which is the application of
stack?
a) Function calls
b) Large number arithmetic
c) Evaluation of arithmetic
expressions
d) All of the above
Ans: D
6. SHRI RAWATPURA SAKAR INSTITUTE OF TECHNOLOGY, NEW RAIPUR
BE CSE 4th
SEMESTER
Data Structure Quiz Question
34. …………. Is a pile in which
items are added at one end and
removed from the other.
a) Stack
b) Queue
c) List
d) None of the above
Ans: B
35. Which of the following is the
type of the queue?
a) Ordinary
b) Single ended queue
c) Circular Queue
d) Priority Queue
Ans: B
36. ……….. is not the component of
data structure.
a) Operations
b) Storage Structures
c) Algorithms
d) None of the above
Ans: D
37. The property of binary tree is
a) The first subset is called left
subtree
b) The second subtree is called right
subtree
c) The root cannot contain NULL
d) The right subtree can be empty
Ans: D
38. Representation of Data
Structure in memory is known as
a) recursive
b) abstract data type
c) storage structure
d) file structure
Ans: B
39. Inserting an item into the stack
when stack is not full is called
………. Operation and deletion of
item form the stack is not empty is
called ……. Operation?
a) Push, Pop
b) pop, push
c) insert, delete
d) delete, insert
Ans: A
40. ………. Is a directed tree in
which outdegree of eachnode is less
than or equal to two
a) Unary tree
b) Ternary tree
c) Binary tree
d) Both B and C
Ans: C
41. ………. Level is where the
model becomes compatible
executable code.
a) Abstract level
b) Application level
7. SHRI RAWATPURA SAKAR INSTITUTE OF TECHNOLOGY, NEW RAIPUR
BE CSE 4th
SEMESTER
Data Structure Quiz Question
c) Implementation level
d) All of the above
Ans: C
42. A binary search tree whose left
subtree and right subtree differ in
height by at most 1 unit is called.
a) AVL tree
b) Red Black tree
c) Lemma
d) None of the above
Ans: A
43. …………. Is very useful in
situation when data have to stored
and then retrieved in reverse order.
a) Stack
b) Queue
c) List
d) Link List
Ans: A
44. Stack is also called as?
a) Last in First out
b) First in Last out
c) Last in last out
d) First in first out
Ans: A
45. Quick sort is also known as?
a) merge sort
b) heap sort
c) bubble sort
d) none of these
Ans: D
46. Any node is the path from the
root to the node is called?
a) Successor node
b) Ancestor node
c) Internal node
d) None of the above
Ans: B
47. Which of the following is not the
part of ADT description?
a) Data
b) Operations
c) Both of the above
d) None of the above
Ans: D
48. The best average behavior is
shown by
a) Quick sort
b) Merge sort
c) Insertion sort
d) Heap sort
Ans: A
49. The extra key inserted at the
end of the array is called as.
a) End key
b) Stop key
c) Sentinel
d) Transposition
Ans: C
8. SHRI RAWATPURA SAKAR INSTITUTE OF TECHNOLOGY, NEW RAIPUR
BE CSE 4th
SEMESTER
Data Structure Quiz Question
50. The goal of hashing is to
produce a search that takes
a) O(1) time
b) O(n2) time
c) O(logn) time
d) O(nlogn) time
Ans: A