Data Structure With C++ 2018 Semester 2 Full Solution Pdf Download Paper CC-3 (IT) 2018
GROUP 'A'
Answer all the Question
1. Which of the following data structures are indexed structures.
(a) Stack
(b) Linked list
(c) Linear array
(d) None of the above
2. Which are the application(s) of stack..
(a) Function call
(b) Large number arithmetic's
(c) Evaluation of arithmetic expression
(d) All of the above
3. The logical or mathematical model of a particular organization of data is called.............
(a) Data type
(b) Data structure
(c) Array
(d) Linked list
4. The preorder traversal sequence of a binary search tree is 30, 20, 10, 15, 25, 23, 39, 35, 42. Which one of the following is the postorder traversal sequence of the same tree.
(a) 10, 20, 15, 23, 25, 35, 42, 39, 30
(b) 15, 10, 25, 23, 20, 42, 35, 39, 30
(c) 15, 20, 10, 23, 25, 42, 35, 39, 30
(d) 15, 10, 23, 25, 20, 35, 42, 39, 30
5. 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 linked list, then in pop 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 the beginning.
(c) Both of the above
(d) None of the above
6. The accessing and processing each record a data structure.
(a) Traversing
(b) Searching
(c) Inserting
(d) Deleting
7. The data structure which reflects a hierarchical relationship between various elements.
(a) Linked list
(b) Stacks
(c) Tree
(d) Graphs
8. Which of the following is not the member of class?
(a) Static Function
(b) Friend Function
(c) Const Function
(d) Virtual Function
9. Object oriented programming employs .................. programming approach.
(a) Top-down
(b) Procedural
(c) Bottom-up
(d) All of these
10. In CPP, c in and c out are the predefined stream....................
(a) Operator
(b) Functions
(c) Objects
(d) Data types
GROUP 'B'
Answer any Four Question
2. What is data structure? Explain any two types of data structure.
Ans:- A data structure is a way of organizing data that considers not only the objects stored, but also their relation to each other. In other words, the organized collection of data is called data structure. Data Structure = Organized Data + Permitted Operations
A data structure is a storage that is used to store and organize data. It is a way of arranging data on a computer so that it can be accessed and updated efficiently.
Explain Types Of Data Structure
Array Data Structure :- An array is a linear data structure and is a collection of objects stored at contiguous memory locations. The idea is to store multiple items of the same type together in one place. It allows the processing of large amounts of data in a relatively short amount of time. The first element of the array is indexed by a subscript of 0. Various operations like searching, sorting, inserting, traversing, reversing and deleting are possible in an array.
Stack Data Structure :- Stack is a linear data structure that follows a particular order in which operations are performed. The order is LIFO (Last In First Out). Data entry and retrieval is possible from one end only. The insertion and retrieval of data in the stack are also called push and pop operations. Different operations are possible in the stack like reversing the stack using recursion, sorting, removing the middle element of the stack, etc.3. What are advantages of linked list over an array ?
5. What is a graph? Explain adjacency matrix.
Join the conversation