Data Structure Interview Question and Answers

Slides:



Advertisements
Similar presentations
Data Structures Static and Dynamic.
Advertisements

CHP-5 LinkedList.
Lecture - 1 on Data Structures. Prepared by, Jesmin Akhter, Lecturer, IIT,JU Data Type and Data Structure Data type Set of possible values for variables.
Chapter 12 C Data Structures Acknowledgment The notes are adapted from those provided by Deitel & Associates, Inc. and Pearson Education Inc.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Chapter 12 – Data Structures Outline 12.1Introduction.
Basic Definitions Data Structures: Data Structures: A data structure is a systematic way of organizing and accessing data. Or, It’s the logical relationship.
C o n f i d e n t i a l Developed By Nitendra NextHome Subject Name: Data Structure Using C Title: Overview of Data Structure.
Chapter 12 Data Structure Associate Prof. Yuh-Shyan Chen Dept. of Computer Science and Information Engineering National Chung-Cheng University.
Data Structures Winter What is a Data Structure? A data structure is a method of organizing data. The study of data structures is particularly important.
Introduction to Data Structures. Definition Data structure is representation of the logical relationship existing between individual elements of data.
Design and Analysis of Algorithms CSC201 Shahid Hussain 1.
Chapter 6 Binary Trees. 6.1 Trees, Binary Trees, and Binary Search Trees Linked lists usually are more flexible than arrays, but it is difficult to use.
Chapter 9 (modified) Abstract Data Types and Algorithms Nell Dale John Lewis.
 DATA STRUCTURE DATA STRUCTURE  DATA STRUCTURE OPERATIONS DATA STRUCTURE OPERATIONS  BIG-O NOTATION BIG-O NOTATION  TYPES OF DATA STRUCTURE TYPES.
9-1 Abstract Data Types Abstract data type A data type whose properties (data and operations) are specified independently of any particular implementation.
Data Structures Types of Data Structure Data Structure Operations Examples Choosing Data Structures Data Structures in Alice.
File Structures. 2 Chapter - Objectives Disk Storage Devices Files of Records Operations on Files Unordered Files Ordered Files Hashed Files Dynamic and.
Data Structures. Abstract Data Type A collection of related data is known as an abstract data type (ADT) Data Structure = ADT + Collection of functions.
BINARY TREES Objectives Define trees as data structures Define the terms associated with trees Discuss tree traversal algorithms Discuss a binary.
Data Structure and Algorithms
Chapter 5 Record Storage and Primary File Organizations
Chapter 9 Abstract Data Types and Algorithms Nell Dale John Lewis.
CHAPTER 51 LINKED LISTS. Introduction link list is a linear array collection of data elements called nodes, where the linear order is given by means of.
LINKED LISTS.
DATA STRUCURES II CSC QUIZ 1. What is Data Structure ? 2. Mention the classifications of data structure giving example of each. 3. Briefly explain.
CPS120: Introduction to Computer Science Nell Dale John Lewis Abstract Data Types.
Mohammed I DAABO COURSE CODE: CSC 355 COURSE TITLE: Data Structures.
STACKS & QUEUES for CLASS XII ( C++).
Review Array Array Elements Accessing array elements
Data Structures Using C, 2e
G.PULLAIAH COLLEGE OF ENGINEERING AND TECHNOLOGY
Data Structure By Amee Trivedi.
Set Collection A Bag is a general collection class that implements the Collection interface. A Set is a collection that resembles a Bag with the provision.
Chapter 12 – Data Structures
Course Developer/Writer: A. J. Ikuomola
Top 50 Data Structures Interview Questions
Lectures linked lists Chapter 6 of textbook
Program based on queue & their operations for an application
Data Structures & File Processing
12 C Data Structures.
Interview, Viva and Basic Questions of Data Structures
Prepared by, Jesmin Akhter, Lecturer, IIT, JU
DATA STRUCTURES AND OBJECT ORIENTED PROGRAMMING IN C++
Data Structures Data Structure is a way of collecting and organising data in such a way that we can perform operations on these data in an effective.
Datastructure.
Objectives In this lesson, you will learn to: Define stacks
Lectures Queues Chapter 8 of textbook 1. Concepts of queue
Stacks and Queues.
Data Structures Interview / VIVA Questions and Answers
Review Graph Directed Graph Undirected Graph Sub-Graph
Program based on pointers in C.
Data Structure Interview
Chapter 8: Data Abstractions
QUEUE.
Introduction to Data Structure
CMSC 341 Lecture 5 Stacks, Queues
Disk Storage, Basic File Structures, and Hashing
DATA STRUCTURE QUEUE.
Arrays and Linked Lists
Introduction to Data Structures
Introduction to Data Structures
Introduction to Data Structure
QUEUE Visit for more Learning Resources Free Powerpoint Templates.
By Yogesh Neopaney Assistant Professor Department of Computer Science
DATA STRUCTURE.
Important Problem Types and Fundamental Data Structures
LINKED LIST Dr. T. Kokilavani Assistant Professor
(1 - 2) Introduction to C Data Structures & Abstract Data Types
Presented by : Aman Gupta PGT CS KV No.1, Narimedu, Madurai
LINEAR DATA STRUCTURES
Presentation transcript:

Data Structure Interview Question and Answers

There are two types of data structure Linear Nonlinear 1. What is data structure? The logical and mathematical model of a particular organization of data is called data structure. There are two types of data structure Linear Nonlinear 2. What is a linked list? A linked list is a linear collection of data elements, called nodes, where the linear order is given by pointers. Each node has two parts first part contain the information of the element second part contains the address of the next node in the list. 3. What is a queue? A queue is an ordered collection of items from which items may be deleted at one end (front end) and items inserted at the other end (rear end). It obeys FIFO rule there is no limit to the number of elements a queue contains.

A spanning tree is a tree associated with tree a network. All the 4. What is a spanning Tree? A spanning tree is a tree associated with tree a network. All the nodes of the graph appear spanning tree is a spanning on the tree once. A minimum organized so that the total edge weight between nodes is minimized. 5. What is precision? Precision refers the accuracy of the decimal portion of a value. Precision is the number of digits allowed after the decimal point. 6. What are the goals of Data Structure? It must rich enough in structure to reflect the actual relationship of data in real world. The structure should be simple enough for efficient processing of data.

What is the difference between a Stack and an Array? Stack 7. What is the difference between a Stack and an Array? Stack Stack is a dynamic object whose size is constantly changing items are pushed and popped. as Stack may contain different data types. Stack is declared as a structure containing an array to hold the element of the stack, and an integer to indicate the current stack top within the array. Stack is an ordered collection of items. Array Array is an ordered collection of items. Array is a static object. It contains same data types. Array can be home of a stack i.e. array can be declared large enough for maximum size of the stack.

The priority queue is a data ordering of the elements. structure 8. What is sequential search? In sequential search each item in the array is compared with the item being searched until a match occurs. It is applicable to a table organized either as an array or as a linked list. 9. What are the disadvantages array implementations of linked list? The no of nodes needed can’t be predicted when the program is written. The no of nodes declared must remain allocated throughout its execution. 10. What is a priority queue? The priority queue is a data ordering of the elements. structure in which the intrinsic 11. What are the disadvantages of sequential storage? Fixed amount of storage remains allocated to the data structure even if it contains less element. No more than fixed amount of storage is allocated causing overflow.

When a function is called arguments are passed 12. Define circular list? In linear list the next field of the last node contain a null pointer, when a next field in the last node contain a pointer back to the first node it is called circular list. 13. What does abstract Data Type Mean? Data type is a collection of values and a set of operations on these values. Abstract data type refers to the mathematical concept that define the data type. 14. What do you mean by recursive definition? The definition which defines an object in terms of simpler cases of itself is called recursive definition. 15. What actions are performed when a function is called? When a function is called arguments are passed local variables are allocated and initialized transferring control to the function

Right field that contain pointer to node on right side. 16. Define double linked list? It is a collection of data elements called nodes, where each node is divided into three parts An info field that contains the information stored in the node. Left field that contain pointer to node on left side. Right field that contain pointer to node on right side. 17. What do you mean by overflow and underflow? When new data is to be inserted into the data structure but there is no available space i.e. Free storage list is empty this situation is called overflow. When we want to delete data from a data structure that is empty this situation is called underflow. 18. Whether Linked List is linear or Non-linear data structure? According to Access strategies Linked list is a linear one. According to Storage Linked List is a Non-linear one.

19. What do you mean by free pool? Pool is a list consisting of unused memory cells which has its own pointer. 20. What are the methods available in storing sequential files? Straight merging Natural merging Polyphase sort Distribution of Initial runs 21. What is a node class? A node class is a class that has added new services or functionality beyond the services inherited from its base class. 22. what is binary tree? A binary tree is a tree data structure in which each node has at most two child nodes, usually distinguished as left and right.

Thanks…