A6-R3: DATA STRUCTURE THROUGH C LANGUAGE

Similar documents
A6-R3: DATA STRUCTURE THROUGH C LANGUAGE

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

Fundamentals of Data Structure

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

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

INSTITUTE OF AERONAUTICAL ENGINEERING

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

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

DATA STRUCTURE : A MCQ QUESTION SET Code : RBMCQ0305

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

Data Structures Question Bank Multiple Choice

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

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

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

CS8391-DATA STRUCTURES QUESTION BANK UNIT I

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

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

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

UCS-406 (Data Structure) Lab Assignment-1 (2 weeks)

Data Structure. IBPS SO (IT- Officer) Exam 2017

Course Review for Finals. Cpt S 223 Fall 2008

DYNAMIC MEMORY ALLOCATION AND DEALLOCATION

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.

Department of Computer Science and Technology

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

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

Total Score /1 /20 /41 /15 /23 Grader

About this exam review

( ) ( ) C. " 1 n. ( ) $ f n. ( ) B. " log( n! ) ( ) and that you already know ( ) ( ) " % g( n) ( ) " #&

MULTIMEDIA COLLEGE JALAN GURNEY KIRI KUALA LUMPUR

CSCE 2014 Final Exam Spring Version A

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

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?

Data Structure Advanced

University of Illinois at Urbana-Champaign Department of Computer Science. Final Examination

1. [1 pt] What is the solution to the recurrence T(n) = 2T(n-1) + 1, T(1) = 1

CS301 - Data Structures Glossary By

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

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

Data Structures Brett Bernstein

CS 8391 DATA STRUCTURES

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

CS8391-DATA STRUCTURES

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

MIDTERM EXAMINATION Spring 2010 CS301- Data Structures

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

CSE100 Practice Final Exam Section C Fall 2015: Dec 10 th, Problem Topic Points Possible Points Earned Grader

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

COMP 251 Winter 2017 Online quizzes with answers

Course Review. Cpt S 223 Fall 2009

M4.1-R3: PROGRAMMING AND PROBLEM SOLVING THROUGH C LANGUAGE

D. Θ nlogn ( ) D. Ο. ). Which of the following is not necessarily true? . Which of the following cannot be shown as an improvement? D.

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

DATA STRUCTURE. 1- What data structure can be used to check if a syntax has balanced paranthesis? A - queue B - tree C - list D - stack

Summer Final Exam Review Session August 5, 2009

12 Abstract Data Types

Computer Science E-22 Practice Final Exam

Binary Trees

Question Bank Subject: Advanced Data Structures Class: SE Computer

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

Direct Addressing Hash table: Collision resolution how handle collisions Hash Functions:

VALLIAMMAI ENGINEERING COLLEGE

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

CS24 Week 8 Lecture 1

CSCE 210/2201 Data Structures and Algorithms. Prof. Amr Goneid

) $ f ( n) " %( g( n)

Solutions to Exam Data structures (X and NV)

CSCE 210/2201 Data Structures and Algorithms. Prof. Amr Goneid. Fall 2018

Frequently asked Data Structures Interview Questions

7.1 Introduction. A (free) tree T is A simple graph such that for every pair of vertices v and w there is a unique path from v to w


A function exhibits recursive behavior when it can be defined by two properties or rules

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

CS-301 Data Structure. Tariq Hanif

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

Recitation 9. Prelim Review

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?

MLR Institute of Technology

Computer Science 302 Spring 2007 Practice Final Examination: Part I

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

Programming Abstractions

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

Computer Science 302 Spring 2017 (Practice for) Final Examination, May 10, 2017

Trees Algorhyme by Radia Perlman

CSE 373 APRIL 17 TH TREE BALANCE AND AVL

CS521 \ Notes for the Final Exam

CS210 (161) with Dr. Basit Qureshi Final Exam Weight 40%

University of Illinois at Urbana-Champaign Department of Computer Science. Final Examination

Lecture Summary CSC 263H. August 5, 2016

UNIVERSITY OF WATERLOO DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING E&CE 250 ALGORITHMS AND DATA STRUCTURES

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

VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur

ROOT: A node which doesn't have a parent. In the above tree. The Root is A.

CS 112 Final May 8, 2008 (Lightly edited for 2012 Practice) Name: BU ID: Instructions

UNIT III TREES. A tree is a non-linear data structure that is used to represents hierarchical relationships between individual data items.

DS ata Structures Aptitude

Final Examination CSE 100 UCSD (Practice)

1. [1 pt] What is the solution to the recurrence T(n) = 2T(n-1) + 1, T(1) = 1

Suggested Study Strategy

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING B.E SECOND SEMESTER CS 6202 PROGRAMMING AND DATA STRUCTURES I TWO MARKS UNIT I- 2 MARKS

Transcription:

A6-R3: DATA STRUCTURE THROUGH C LANGUAGE NOTE: 1. There are TWO PARTS in this Module/Paper. PART ONE contains FOUR questions and PART TWO contains FIVE questions. 2. PART ONE is to be answered in the TEAR-OFF ANSWER SHEET only, attached to the question paper, as per the instructions contained therein. PART ONE is NOT to be answered in the answer book. 3. Maximum time allotted for PART ONE is ONE HOUR. Answer book for PART TWO will be supplied at the table when the answer sheet for PART ONE is returned. However, candidates, who complete PART ONE earlier than one hour, can collect the answer book for PART TWO immediately after handing over the answer sheet for PART ONE. TOTAL TIME: 3 HOURS TOTAL MARKS: 100 (PART ONE 40; PART TWO 60) PART ONE (Answer all the questions) 1. Each question below gives a multiple choice of answers. Choose the most appropriate one and enter in the tear-off answer sheet attached to the question paper, following instructions therein. (1 x 10) 1.1 Number of subtrees of a node in a Tree/Graph is called A) Order B) Degree C) Level D) Depth 1.2 An undirected graph with n vertices and e edges will require a memory space of n locations plus: A) 2e+1 B) 2e-1 C) 2e 1.3 Which data structure is implemented in automatic variable declaration? A) Queue B) Stack C) Heap D) Graph 1.4 An ordered set of items from which items may be deleted inserted at either end A) Queue B) Graph C) Heap D) Dequeue 1.5 Order of magnitude of an algorithm refers to A) Frequency of execution B) Computing time C) Sum of frequencies of all its statements A6-R3 Page 1 of 5 July, 2007

1.6 When bucket size in the hash table is one A) Only collision occurs B) Collisions and overflows occur simultaneously C) Only overflow occurs 1.7 In a stack, top=0 denotes that A) stack is empty B) stack is full C) top has no element D) none of the above 1.8 The correct increasing order of magnitude of computing time is- A) O(1) < O(logn) < O(n) < O(n logn) < O(n 2 ) < O(n 3 ) < O(2 n ) B) O(2 n ) < O(n 3 ) < O(n 2 ) < O(n logn) < O(n) < O(logn) O(1) C) O(logn) < O(n logn) < O(n) < O(n 2 ) < O(n 3 ) < O(2 n ) < O(1) 1.9 Which of the following is true in case of null pointer? A) marks the end of the node B) is equal to \0 in c C) is the address of some node D) is called as void pointer in C 1.10 Suppose the union is declared like union { }num; float x; char c[10]; int y; Assuming that float requires 4 bytes, char requires 1 byte and int requires 2 bytes, the memory space used by the variable num is A) 16 bytes B) 10 bytes C) 4 bytes D) 7 bytes A6-R3 Page 2 of 5 July, 2007

2. Each statement below is either TRUE or FALSE. Choose the most appropriate one and ENTER in the tear-off sheet attached to the question paper, following instructions therein. (1 x 10) 2.1 Row major order in 2-dimensional array refers that all elements of a row are stored in memory in sequence followed by next row in sequence and so on. 2.2 Siblings are nodes at the same level and of different parent. 2.3 A forest is obtained when a subtree is removed from a tree. 2.4 A complete binary tree, with the property that the value at each node is at least as large as the values at its children, is an AVL tree. 2.5 Hashing refers to the process of deriving a record key from storage address. 2.6 Folding is a method of generating a hash function. 2.7 Breadth first search scans all incident edges before moving to other vertex. 2.8 In linked list, the logical order of elements is same as their physical arrangement. 2.9 Queue needs one pointer to handle addition and deletion of an item. 2.10Depth-first traversal of a direct acyclic graph produces a reverse topological ordering of the nodes. 3. Match words and phrases in column X with the closest related meaning/ word(s)/phrase(s) in column Y. Enter your selection in the tear-off answer sheet attached to the question paper, following instructions therein. (1 x 10) X 3.1 Huffman code A. O(n) 3.2 Add a note to the front of list B. Fixed length code 3.3 Elements in an intrinsic ordering in a data structure C. Add operator 3.4 Towers of Hanoi D. Queue 3.5 Space requirements of address calculation sort for n elements in an array Y E. Variable length code 3.6 Efficient search technique F. Iterative algorithm 3.7 Garbage collection G. Push operator 3.8 Efficient Prim s algorithm for finding minimum spanning tree with n nodes and e edges H. n + temporary variables 3.9 Depth first traversal I. Recursive algorithm 3.10 In address calculation sort J. Priority Queue K. 2*n+ temporary variables L. Interpolation search M. Free nodes N. O(e n log n) O. Hashing P. Used nodes Q. O((n+e)log n) R. directed graph S. Binary Search T. O(n 2 ) U. Acyclic Graph A6-R3 Page 3 of 5 July, 2007

4. Each statement below has a blank space to fit one of the word(s) or phrase(s) in the list below. Enter your choice in the tear-off answer sheet attached to the question paper, following instructions therein. (1 x 10) A. Null B. n 2 C. Selection sort D. Shuttle sort E. Symmetric F. Underflow G. Position of element in the pattern H. Overflow I. n J. Balanced K. Recursive L. Terminal M. Iterative N. Parent O. Bubble sort P. ABEDFC Q. Heap sort R. FDBEAC S. Quick sort T. O(n log n) 4.1 In pattern matching is returned if smaller string is not present in bigger one. 4.2 Attempting to delete a node in empty link list results in. 4.3 Space complexity of Merge sort is. 4.4 Other name of insertion sort is. 4.5 A digraph in which out degree is same as in degree is called. 4.6 In a tree, a node that has no children is called a node. 4.7 A function which calls itself is said to be function. 4.8 sort does not use divide & conquer methodology. 4.9 The Inorder traversal of some binary tree produced in the sequence DBEFCA. The corresponding preorder traversal will be. 4.10For sorting contiguous list of records sort may be preferred over merge sort because it does not require extra space for an auxiliary space. A6-R3 Page 4 of 5 July, 2007

PART TWO (Answer any FOUR questions) 5. a) What is a binary search tree? How does it differ from sorted linear arrays & linked lists? b) Write down an algorithm to insert a node in the binary search tree (BST). Using the algorithm, construct a BST by following data to be added in a tree one by one 12, 30, 11, 90, 75, 9, 2 (6+9) 6. a) What are the differences between internal sorting and external sorting? When is a sorting technique said to be stable? b) Write an algorithm to implement merge sort with n elements. Explain with an example. (6+9) 7. a) What do you mean by graph traversal? b) Define depth-first traversal (DFS) of a graph. Write an algorithm of non-recursive depth first traversal. c) Give an application of DFS. d) Compare and contrast: DFS and BFS (Breadth First Search). (2+[3+4]+2+4) 8. a) Differentiate between linked list and an array. b) What are the disadvantages of a linked list? How can you overcome those? c) Write an algorithm to insert a node at the end of a noncircular singly linked list. (5+5+5) 9. a) Define an algorithm. Mention the basic criteria to be satisfied by an algorithm. b) What do you mean by performance measurement of an algorithm? Illustrate with an example. c) Illustrate the concept of double hashing with an example. (5+5+5) A6-R3 Page 5 of 5 July, 2007