Prepared By: Ms. Nidhi Solanki (Assist. Prof.) Page 1

Similar documents
17CS33:Data Structures Using C QUESTION BANK

INSTITUTE OF AERONAUTICAL ENGINEERING

R10 SET - 1. Code No: R II B. Tech I Semester, Supplementary Examinations, May

R13. II B. Tech I Semester Supplementary Examinations, May/June DATA STRUCTURES (Com. to ECE, CSE, EIE, IT, ECC)

Table of Contents. Chapter 1: Introduction to Data Structures... 1

DYNAMIC MEMORY ALLOCATION AND DEALLOCATION

Bachelor Level/ First Year/ Second Semester/ Science Full Marks: 60 Computer Science and Information Technology (CSc. 154) Pass Marks: 24

PESIT Bangalore South Campus Department of MCA Course Information for

Sample Question Paper

A6-R3: DATA STRUCTURE THROUGH C LANGUAGE

Department of Computer Science and Technology

GUJARAT TECHNOLOGICAL UNIVERSITY COMPUTER ENGINEERING (07) / INFORMATION TECHNOLOGY (16) / INFORMATION & COMMUNICATION TECHNOLOGY (32) DATA STRUCTURES

A6-R3: DATA STRUCTURE THROUGH C LANGUAGE

End-Term Examination Second Semester [MCA] MAY-JUNE 2006

R10 SET - 1. Code No: R II B. Tech I Semester, Supplementary Examinations, May

Introduction p. 1 Pseudocode p. 2 Algorithm Header p. 2 Purpose, Conditions, and Return p. 3 Statement Numbers p. 4 Variables p. 4 Algorithm Analysis

MULTIMEDIA COLLEGE JALAN GURNEY KIRI KUALA LUMPUR

CS8391-DATA STRUCTURES QUESTION BANK UNIT I

Bharati Vidyapeeth s College Of Engineering for Women Pune-43 Department E & TC. SE- Unit Test I Subject-DS

MLR Institute of Technology

E.G.S. PILLAY ENGINEERING COLLEGE (An Autonomous Institution, Affiliated to Anna University, Chennai) Nagore Post, Nagapattinam , Tamilnadu.

Discuss the following operations on One-Dimensional array with algorithms.

Fundamentals of Data Structure

EC8393FUNDAMENTALS OF DATA STRUCTURES IN C Unit 3

Objective Questions for Online Practical Exams under CBCS Scheme Subject: Data Structure-I (CS-113)

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

ASSIGNMENTS. Progra m Outcom e. Chapter Q. No. Outcom e (CO) I 1 If f(n) = Θ(g(n)) and g(n)= Θ(h(n)), then proof that h(n) = Θ(f(n))

Code No: R Set No. 1

VALLIAMMAI ENGINEERING COLLEGE

CS 8391 DATA STRUCTURES

CS8391-DATA STRUCTURES

QUESTION BANK. Prepared by,mrs.d.maladhy AP/IT,RGCET. Page 1

DATA STRUCTURE : A MCQ QUESTION SET Code : RBMCQ0305

CS301 - Data Structures Glossary By

Data Structures Question Bank Multiple Choice

MID TERM MEGA FILE SOLVED BY VU HELPER Which one of the following statement is NOT correct.

Preface... (vii) CHAPTER 1 INTRODUCTION TO COMPUTERS

Binary Trees, Binary Search Trees

Trees. (Trees) Data Structures and Programming Spring / 28

Tribhuvan University Institute of Science and Technology Computer Science and Information Technology (CSC. 154) Section A Attempt any Two questions:

FORTH SEMESTER DIPLOMA EXAMINATION IN ENGINEERING/ TECHNOLIGY- MARCH, 2012 DATA STRUCTURE (Common to CT and IF) [Time: 3 hours

Analysis of Algorithms

VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified)

Data Structures. 1. Each entry in a linked list is a called a (a)link (b)node (c)data structure (d)none of the above

TREES. Trees - Introduction

Adapted By Manik Hosen

CSI33 Data Structures

First Semester - Question Bank Department of Computer Science Advanced Data Structures and Algorithms...

CP2 Revision. theme: dynamic datatypes & data structures

MIDTERM EXAMINATION Spring 2010 CS301- Data Structures

PROGRAMMING IN C++ (Regulation 2008) Answer ALL questions PART A (10 2 = 20 Marks) PART B (5 16 = 80 Marks) function? (8)

Draw a diagram of an empty circular queue and describe it to the reader.

University of Palestine. Final Exam 2 nd semester 2014/2015 Total Grade: 50

1 P a g e A r y a n C o l l e g e \ B S c _ I T \ C \

Answers. 1. (A) Attempt any five : 20 Marks

CS24 Week 8 Lecture 1

DATA STRUCTURES USING C

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION

1 P age DS & OOPS / UNIT II

FORTH SEMESTER DIPLOMA EXAMINATION IN ENGINEERING/ TECHNOLIGY- OCTOBER, 2012 DATA STRUCTURE

Revision Statement while return growth rate asymptotic notation complexity Compare algorithms Linear search Binary search Preconditions: sorted,

DATA STRUCTURES AND ALGORITHMS

DS ata Structures Aptitude

Stacks, Queues and Hierarchical Collections

Course goals. exposure to another language. knowledge of specific data structures. impact of DS design & implementation on program performance

a) State the need of data structure. Write the operations performed using data structures.

Algorithms and programs, basic idea of pseudo-code.algorithm efficiency and analysis, time and space analysis of algorithms order notations.

Syllabus for Bachelor of Technology. Computer Engineering. Subject Code: 01CE0301. Subject Name: Data Structure. B.Tech. Year - II

CS DATA STRUCTURES AND ALGORITHMS

Visit ::: Original Website For Placement Papers. ::: Data Structure

DATA STRUCTURES THROUGH C++

S.E. Sem. III [CMPN] Data Structures. Primitive Linear Non Linear

12 Abstract Data Types

DC104 DATA STRUCTURE JUNE Q.2 a. If you are using C language to implement the heterogeneous linked list, what pointer type will you use?

NET/JRF-COMPUTER SCIENCE & APPLICATIONS. Time: 01 : 00 Hour Date : M.M. : 50

1) What is the primary purpose of template functions? 2) Suppose bag is a template class, what is the syntax for declaring a bag b of integers?

Chapter 20: Binary Trees

8. Write an example for expression tree. [A/M 10] (A+B)*((C-D)/(E^F))

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: Ph:

Stacks, Queues and Hierarchical Collections. 2501ICT Logan

Summer Final Exam Review Session August 5, 2009

1. Two main measures for the efficiency of an algorithm are a. Processor and memory b. Complexity and capacity c. Time and space d.

APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY THIRD SEMESTER B.TECH DEGREE EXAMINATION, JULY 2017 CS205: DATA STRUCTURES (CS, IT)

VALLIAMMAI ENGNIEERING COLLEGE SRM Nagar, Kattankulathur DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING QUESTION BANK

Data Structures. Trees. By Dr. Mohammad Ali H. Eljinini. M.A. Eljinini, PhD

COSC 2007 Data Structures II Final Exam. Part 1: multiple choice (1 mark each, total 30 marks, circle the correct answer)

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified)

FINALTERM EXAMINATION Fall 2009 CS301- Data Structures Question No: 1 ( Marks: 1 ) - Please choose one The data of the problem is of 2GB and the hard

Course Name: B.Tech. 3 th Sem. No of hours allotted to complete the syllabi: 44 Hours No of hours allotted per week: 3 Hours. Planned.

CSE 373 Spring Midterm. Friday April 21st

Tree: non-recursive definition. Trees, Binary Search Trees, and Heaps. Tree: recursive definition. Tree: example.

Advanced Tree Data Structures

Total No. of Questions :09] [Total No. of Pages : 02. II/IV B.Tech. DEGREE EXAMINATIONS, NOV/DEC First Semester CSE/IT DATA STRUCTURES USING C

CSE 373 APRIL 17 TH TREE BALANCE AND AVL

BRONX COMMUNITY COLLEGE of the City University of New York DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE. Sample Final Exam

U IT I FIFO, i F r t s n I i F r t s u O t . I L FO S r a t p i o nt r e R pop S c a s k fr n o t . l a f o h t e b a o e S c a k S c a k

Bioinformatics Programming. EE, NCKU Tien-Hao Chang (Darby Chang)

S.E. Sem. III [INFT] Data Structures & Analysis. Primitive Linear Non Linear

Data Structures and Algorithms for Engineers

Transcription:

QUESTION BANK ON COURSE: 304: PRELIMINARIES: 1. What is array of pointer, explain with appropriate example? 2 2. Differentiate between call by value and call by reference, give example. 3. Explain pointer to structure and pointer declared within the structure of type structure. What is difference between them? 4. How we can create an instance of a structure? What is difference between 3 declaring an instance of structure and declaring it using typedef?. Explain Pointer to array and pointer to structure. 6. How we can pass pointer to function.. Explain Linear & non linear programming, give difference between them. 8. What is recursion, discuss its advantages and disadvantages, give 8 recursive function for first n Fibonacci number. 9. Explain pointer. Give difference between dynamic and static memory allocation. 10. Explain array of pointer and pointer to array. 11. What is meaning of int **a 2 12. What is use of typedef? 2 13. Give difference between pointer to array and array of pointer. 2 14. What is call by value? Can we pass array through this method? If yes, 3 how? 1. What is prototype of function? 2 16. How array differ from pointer? Explain it with example. 1. Give example of static memory allocation. 3 18. Explain pointer to structure. Write a program to declare a structure with 8 the fields roll No, name, marks1, marks2.input and output this structure data using pointer. 19. Define DS. 2 20. Write short note on pointers. 21. List out non primitive data structures. 3 22. Name various primitive and non primitive DS. 3 23. What is difference between int *a and int**a 3 24. What is difference between *p+1 and *(p+1) 3 2. Find the address of fourth element of an integer array A[10],if base address is 100 2 Prepared By: Ms. Nidhi Solanki (Assist. Prof.) Page 1

QUEUE: 1. Explain concept of circular queue, describe using algorithm 2. Define priority queue 2 3. What will be position of front and rear in empty circular queue 2 4. list types of queue 2. What is DEQ, give difference between input and output restricted Dqueue 8 and program of input output operations on input restricted deque 6. What will be position of front and rear in full circular queue 2. Give concept of queue, and compare queue and stack 8. Explain Circular Queue and list its operations 9. Discuss DE Queue, give its operations 10. Give application of stack and queue 11. What do you mean by queue? List out the different types of queue. Write an algorithm to perform insert and delete operation on Circular Queue. 12. Write a note on priority queue. 13. Write condition of overflow and underflow in dequeue? 2 14. What is double ended queue? Explain input restricted and output restricted dqueue.write algorithm of input restricted dequeue. 1. Explain simulation. Prepared By: Ms. Nidhi Solanki (Assist. Prof.) Page 2

STACK 1. Which condition is not required in dynamic stack? 2 2. Explain the concept of stack. Write algorithm to reverse string using stack. 3. Explain the difference between stack and queue with their functionality. 4. convert expression into post fix a+(b*c-d/e*g)+h (a+b)*(c-d/e)*g+h 6. How to implement stack using link list. 6. What is Stack, list its operation, write down an algorithm of operations of stack.. Give difference between stack queue 2 8. When stack overflow occur? 2 9. Give prefix and postfix expression for: (A-2*(B+C)-D*E)*F 3 10. what is stack give different operations 11. What is recursion give algorithm to display factorial for given num using it? 12. Algorithm to implement stack using DLL. 13. Convert infix to postfix 2 14. Explain recursion. Give its advantages and disadvantages Write recursive function to display first N Fibonacci numbers. 1. Explain tower of Hanoi. 16. List computer applications of stack. 2 1. Give program to convert infix to postfix expression. 8 18. What is recursion? Which condition is necessary in recursion? 2 19. What is stack list operations give algorithm of infix to postfix 20. What is function chaining how recursion differs from it? 2 Prepared By: Ms. Nidhi Solanki (Assist. Prof.) Page 3

LINK LIST 1. Which build in function is used to create link list. 2 2. Explain concept of dynamic memory allocation, how link list is appropriate. 3. Explain concept of double link list. Write algorithm to delete and display nodes in it. 4. Discuss traversal of single link list. Explain process of searching in single link list. 6. Explain insert in DLL. 3. Write advantages of link list 2 8. Give difference between DLL and SLL,write algorithm to perform insert and delete at particular poison in SLL 9. How new node is created using structure and pointer in SLL? 3 10. SLL create del insert algorithm 11. How to display node values in reverse order for DLL give its algorithm. 12. Compare array and Link List 13. Give disadvantage of LL 2 14. what do you mean by LL,list applications of LL,write algorithm for insert del,display in SLL 1. List disadvantages of link list. 3 16. Give LL rep. of polynomial 4x3+2 x2+2x+4y2+y2. 1. What do you mean by null in link list? Explain with an example 2 18. Describe circular singly link list. Write algorithm to perform insert and delete from particular position in circular singly link list. Prepared By: Ms. Nidhi Solanki (Assist. Prof.) Page 4

SEARCHING 1. What is searching? Give difference between binary and linear search. Discuss binary search algorithm for following data 11,12,30,40,44,,60,66,,80,88,99. Search out key=40.show all the steps of it. 2. Discuss sequential and binary search method. Explain binary search with its algorithm. 3. Give difference between sequential and binary search explain their performance. 4. Differentiate between binary and linear search. Give algorithm of binary search SORTING 1. Discuss various sorting methods.which method is faster and why? 2. What is sorting? Compare various sorting with its advantages and disadvantages. Which is best and why? 3. Name various sort method which is faster and give algorithm to perform Bubble Sort on given array. 4. What are best worst and average case complexity of bubble and insertion 2 sort?. Short note on heap sort. 6. Insertion sort with algorithm. Difference between quick and bubble sort. 8. Difference between selection and insertion sort. 2 9. Differentiate between internal and external sort. use quick sort for data :3,1,4,,10,,8 10. short note heap sort 11. what do you mean by sorting, write an algorithm to sort array using quick sort 8 Prepared By: Ms. Nidhi Solanki (Assist. Prof.) Page

TREE 1. What is forest and leaf node? 2 2. Explain Left and right subtree? 2 3. Give difference between root & leaf node in tree. 2 4. how many null branches are there with 20 node in BT. 2. Define forest, path. 2 6. Give expression tree for (a+b)*(c-d)/e 3. Draw tree for following traversal: Inorder:Q B K C F A G P E D H R Preorder:G B Q A C K F P D E R H 8. Explain 2-3 trees with example. Also explain how to search an element 8 from 2-3 trees with data tracing. 9. Define AVL tree explain possible cases during the insertion of new node in it. 10. What is critical node in height balance tree? 2 11. Define terminal and non terminal node with example 2 12. short note AVL tree 13. How a directed tree can be represented graphically in different ways? Write algorithm to convert general tree to Binary Tree 14. Write application of tree 2 1. Explain weight balanced tree and height balanced tree. 16. Explain traversal technique of tree. Discuss difference between them. 1. What is tree? Write difference between Complete Binary Tree & balanced Binary Tree? Discuss various terminologies of tree. 18. Construct tree when: Inorder: D B A E C G F H preorder :D B E G H F C A 19. Short note on 2-3 trees. 20. Traversal of binary tree and its various methods. 21. Differentiate between Depths First Search and Breadth First Search. 3 22. Give difference between strictly binary tree and complete binary tree explain tree. 23. What is tree? What is difference between binary tree to 2-3 tree? Discuss various terminologies related to tree 24. What is tree how to insert and delete node in binary tree 2. Explain 2-3 trees with example. Also explain how to search an element 8 from 2-3 tree with proper data tracing 26. Define AVL tree. Explain possible cases during the insertion of new node into it 2. What is critical node in a height balance tree 2 28. Short note 2-3 tree 29. Explain weight balance and height balance tree 8 Prepared By: Ms. Nidhi Solanki (Assist. Prof.) Page 6