MCA SEM-II Data Structure

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

Department of Computer Science and Technology

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

Fundamentals of Data Structure

1 P age DS & OOPS / UNIT II

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

DATA STRUCTURE : A MCQ QUESTION SET Code : RBMCQ0305

INSTITUTE OF AERONAUTICAL ENGINEERING

Sample Question Paper

Advanced C Programming and Introduction to Data Structures

CS8391-DATA STRUCTURES

Adapted By Manik Hosen

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

CS 8391 DATA STRUCTURES

CS8391-DATA STRUCTURES QUESTION BANK UNIT I

DEEPIKA KAMBOJ UNIT 2. What is Stack?

A6-R3: DATA STRUCTURE THROUGH C LANGUAGE

MULTIMEDIA COLLEGE JALAN GURNEY KIRI KUALA LUMPUR

Representation Techniques for Logical Spaces

DYNAMIC MEMORY ALLOCATION AND DEALLOCATION

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

12 Abstract Data Types

A6-R3: DATA STRUCTURE THROUGH C LANGUAGE

Data Structures. Chapter 06. 3/10/2016 Md. Golam Moazzam, Dept. of CSE, JU

Data Structures Question Bank Multiple Choice

3. Fundamental Data Structures

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

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.

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))

EC8393FUNDAMENTALS OF DATA STRUCTURES IN C Unit 3

Frequently asked Data Structures Interview Questions

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

CS301 - Data Structures Glossary By

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)

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

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

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

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

Recursive Data Structures and Grammars

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

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

Data Abstractions. National Chiao Tung University Chun-Jen Tsai 05/23/2012

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

DATA STRUCTURES AND ALGORITHMS

ECE Spring 2018 Problem Set #0 Due: 1/30/18

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

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

Postfix (and prefix) notation

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

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

CSCE 2014 Final Exam Spring Version A

S.Y. B.Sc. (IT) : Sem. III. Data Structures

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

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

Data Structures. Outline. Introduction Linked Lists Stacks Queues Trees Deitel & Associates, Inc. All rights reserved.

CS W3134: Data Structures in Java

UNIT 6A Organizing Data: Lists. Last Two Weeks

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

Course Review. Cpt S 223 Fall 2009

Basic Data Structures (Version 7) Name:

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

Solution: The examples of stack application are reverse a string, post fix evaluation, infix to postfix conversion.

DATA STRUCTURES: OVERVIEW AND ITS APPLICATIONS

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

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

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?

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

MIDTERM EXAMINATION Spring 2010 CS301- Data Structures


UNIT 6A Organizing Data: Lists Principles of Computing, Carnegie Mellon University

CSC 172 Data Structures and Algorithms. Lecture 24 Fall 2017

Chapter 5 Data Structures Algorithm Theory WS 2016/17 Fabian Kuhn

and 6.855J February 6, Data Structures

Content: Learning Objectives

Course Review for Finals. Cpt S 223 Fall 2008

Stacks and queues (chapters 6.6, 15.1, 15.5)

DS ata Structures Aptitude

Algorithm Design and Analysis

CS 206 Introduction to Computer Science II

Stacks, Queues and Hierarchical Collections

Time : 03 Hours Maximum Marks : 75

Abstract Data Structures IB Computer Science. Content developed by Dartford Grammar School Computer Science Department

ME/CS 132: Advanced Robotics: Navigation and Vision

Summer Final Exam Review Session August 5, 2009

namibia UniVERSITY OF SCIEnCE AnD TECHnOLOGY

ADVANCED DATA STRUCTURES USING C++ ( MT-CSE-110 )

Operations on Heap Tree The major operations required to be performed on a heap tree are Insertion, Deletion, and Merging.

Linear Data Structure

Warm Up. Use Kruskal s algorithm to find the minimum spanning tree and it s weight.

Linked List. April 2, 2007 Programming and Data Structure 1

CHARUTAR VIDYA MANDAL S SEMCOM Vallabh Vidyanagar

Algorithms and Data Structures

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

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION

1. Attempt any three of the following: 15

DATA STRUCTURES AND ALGORITHMS

Lecture 3: Stacks & Queues

Module 1: Asymptotic Time Complexity and Intro to Abstract Data Types

Stacks, Queues and Hierarchical Collections. 2501ICT Logan

Transcription:

MCA SEM-II Data Structure Timings: 30 Minutes] Objective Questions Keys [ Marks - 40 1. The memory address of the first element of an array is called a. Floor address b. Foundation address c. First address d. Base address 2. Which of the following data structures are indexed structures? a. Linear arrays b. Linked lists 3. Which of the following is not the required condition for binary search algorithm? a. The list must be sorted b. There should be the direct access to the middle element in any sublist c. There must be mechanism to delete and/or insert elements in list 4. Which of the following is not a limitation of binary search algorithm? a. Must use a sorted array b. Requirement of sorted array is expensive when a lot of insertion and deletions are needed c. There must be a mechanism to access middle element directly d. Binary search algorithm is not efficient when the data elements are more than 1000. 5. Two dimensional arrays are also called a. Tables arrays b. Matrix arrays 6. Which of the following data structure can't store the non homogeneous data elements? b. Records c. Pointers d. None 7. Which of the following data structure store the homogeneous data elements? b. Records c. Pointers d. None 8. The difference between linear array and a record is 1 P age a. An array is suitable for homogeneous data but hte data items in a record may have different data type b. In a record, there may not be a natural ordering in opposed to linear array.

c. A record form a hierarchical structure but a lienear array does not 9. Which of the following statement is false? are dense lists and static data structure b. Data elements in linked list need not be stored in adjecent space in memory c. Pointers store the next data element of a list d. Linked lists are collection of the nodes that contain information part and next pointer 10. When new data are to be inserted into a data structure, but there is no available space; this situation is usually called a. Underflow b. Overflow c. Housefull d. Saturated 11. The situation when in a linked list START=NULL is a. Underflow b. Overflow c. Housefull d. Saturated 12. Which of the following is two way list? a. Grounded header list b. Circular header list c. Linked list with header and trailer nodes 13. The term "push" and "pop" is related to the a. Array b. Lists c. Stacks 14. A data structure where elements can be added or removed at either end but not in the middle 2 P age a. Linked lists b. Stacks c. Queues d. Deque 15. Two main measures for the efficiency of an algorithm are a. Processor and memory b. Complexity and capacity c. Time and space d. Data and space 16. The time factor when determining the efficiency of algorithm is measured by a. Counting microseconds b. Counting the number of key operations c. Counting the number of statements

d. Counting the kilobytes of algorithm 17. The space factor when determining the efficiency of algorithm is measured by a. Counting the maximum memory needed by the algorithm b. Counting the minimum memory needed by the algorithm c. Counting the average memory needed by the algorithm d. Counting the maximum disk space needed by the algorithm 18. The complexity of linear search algorithm is a. O(n) b. O(log n) c. O(n2) d. O(n log n) 19. The complexity of Binary search algorithm is a. O(n) b. O(log n ) c. O(n2) d. O(n log n) 20. Which of the following data structure is not linear data structure? b. Linked lists 21. Which of the following data structure is linear data structure? a. Trees b. Graphs c. Arrays 22. The operation of processing each element in the list is known as a. Sorting b. Merging c. Inserting d. Traversal 23. Finding the location of the element with a given value is: a. Traversal b. Search c. Sort 24. Arrays are best data structures a. For relatively permanent collections of data b. For the size of the structure and the data in the structure are constantly changing c. For both of above situation d. For none of above situation 25. Linked lists are best suited 3 P age

a. For relatively permanent collections of data b. For the size of the structure and the data in the structure are constantly changing c. For both of above situation d. For none of above situation 26. How many minimum number of queue is require for priority Queue? a. One b. Two c. Three 27. Polish and Reverse Polish notations are used for Evaluation Arithmetic Expression a. True b. False 28. In a tree construction which is the suitable data structure? a. Linked List b. Array c. Queue 29. If every node u in G is adjacent to every other node v in G, A graph is said to be a. Isolated b. Complete c. Finite d. Strongly connected 30. In a graph if e=[u, v], Then u and v are called a tree graph a. Endpoints of e b. Adjacent nodes c. Neighbors 31. In a Heap tree a. Values in a node is greater than every value in left sub tree and smaller than right sub tree b. Values in a node is greater than every value in children of it conditions applies conditions applies 32. The in order traversal of tree will yield a sorted listing of elements of tree in a. Binary trees b. Binary search trees c. Heaps 33. An algorithm that calls itself directly or indirectly is known as 4 P age a. Sub algorithm b. Recursion c. Polish notation d. Traversal algorithm 34. Which of the following sorting algorithm is of divide and conquer type?

a. Bubble sort b. Insertion sort c. Quick sort 35. The post order traversal of a binary tree is DEBFCA. Find out the pre order traversal a. ABFCDE b. ADBFEC c. ABDECF d. ABDCEF 36. To represent hierarchical relationship between elements, which data structure is not suitable? a. Deque b. Priority c. Tree 37. Which data structure allows deleting data elements from front and inserting at rear? a. Stacks b. Queues c. Deques d. Binary search tree 38. form of access is used to add and remove nodes from a stack a. LIFO b. FIFO c. Both a and b d. None of these 39. form of access is used to add and remove nodes from a queue a. LIFO,Last In First Out b. FIFO, First In First Out c. Both a and b d. None of these 40. What happens when you push a new node onto a stack? a. The new node is placed at the front of the linked list. b. The new node is placed at the back of the linked list. c. The new node is placed at the middle of the linked list. d. No Changes happens. 5 P age