CS PROGRAMMING & ATA STRUCTURES I. UNIT I Part - A

Similar documents
V.S.B ENGINEERING COLLEGE DEPARTMENT OF INFORMATION TECHNOLOGY I IT-II Semester. Sl.No Subject Name Page No. 1 Programming & Data Structures-I 2

CS PROGRAMMING & DATA STRUCTURES. UNIT I Part - A. 2. What is the difference between if and while statement?

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING UNIT-1

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


Reg. No. : Question Paper Code : 27157

Advanced C Programming and Introduction to Data Structures

UNIT I : OVERVIEW OF COMPUTERS AND C-PROGRAMMING

KLiC C. About. Tools: Turbo C++ Syllabus:

VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur

VALLIAMMAI ENGINEERING COLLEGE SRM NAGAR, KATTANGULATHUR

VALLIAMMAI ENGINEERING COLLEGE

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

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

SAURASHTRA UNIVERSITY

CS6202 PROGRAMING AND DATASTRUCTURE-I

PESIT Bangalore South Campus Department of MCA Course Information for

17CS33:Data Structures Using C QUESTION BANK

PERIYAR CENTENARY POLYTECHNIC COLLEGE Periyar Nagar- Vallam Thanjavur

1 P age DS & OOPS / UNIT II

Writing an ANSI C Program Getting Ready to Program A First Program Variables, Expressions, and Assignments Initialization The Use of #define and

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

EC8393FUNDAMENTALS OF DATA STRUCTURES IN C Unit 3

CSCI 171 Chapter Outlines

Code No: R Set No. 1

About this exam review

KLiC C Programming. (KLiC Certificate in C Programming)

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

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

B.V. Patel Institute of Business Management, Computer & Information Technology, Uka Tarsadia University

UNIT IV 2 MARKS. ( Word to PDF Converter - Unregistered ) FUNDAMENTALS OF COMPUTING & COMPUTER PROGRAMMING

The Waite Group's. New. Primer Plus. Second Edition. Mitchell Waite and Stephen Prata SAMS

C Refresher, Advance C, Coding Standard, Misra C Compliance & Real-time Programming

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

Solution for Data Structure

Contents. Preface. Introduction. Introduction to C Programming

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

M.C.A DEGREE EXAMINATION,NOVEMBER/DECEMBER 2010 Second Semester MC 9222-OBJECT ORIENTED PROGRAMMING (Regulation 2009)

Software Development & Education Center C Programming


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

FUNDAMENTALS OF COMPUTING & COMPUTER PROGRAMMING UNIT IV INTRODUCTION TO C

Madhya Pradesh Bhoj (Open) University, Bhopal

Computer Programming Unit v

CS350 - Exam 1 (100 Points)

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

CS301 - Data Structures Glossary By

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

UNIT IV-2. The I/O library functions can be classified into two broad categories:

DATA STRUCTURES USING C

Section I. 1 Review of user defined function,recursion, pointer, structure 05 2 Introduction to Data Structures and stack

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

Contents. A Review of C language. Visual C Visual C++ 6.0

Sample Question Paper

DYNAMIC MEMORY ALLOCATION AND DEALLOCATION

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

File (1A) Young Won Lim 11/25/16

Program Design (II): Quiz2 May 18, 2009 Part1. True/False Questions (30pts) Part2. Multiple Choice Questions (40pts)

Computer Science 302 Spring 2007 Practice Final Examination: Part I

C How to Program, 6/e by Pearson Education, Inc. All Rights Reserved.

A Programming Approach with C DHARMENDER SINGH KUSHWAHA

MODULE 5: Pointers, Preprocessor Directives and Data Structures

The Foundation of C++: The C Subset An Overview of C p. 3 The Origins and History of C p. 4 C Is a Middle-Level Language p. 5 C Is a Structured

ENEE 150: Intermediate Programming Concepts for Engineers Spring 2018 Handout #27. Midterm #2 Review

Standard File Pointers

(i) Describe in detail about the classification of computers with their features and limitations(10)

Mode Meaning r Opens the file for reading. If the file doesn't exist, fopen() returns NULL.

Systems Programming. 08. Standard I/O Library. Alexander Holupirek

Fundamentals of Data Structure

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

DEPARTMENT OF COMPUTER APPLICATIONS B.C.A. - FIRST YEAR ( REGULATION) SECOND SEMESTER LESSON PLAN SRM INSTITUTE OF SCIENCE AND TECHNOLOGY

Short Notes of CS201

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

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

CS201 Some Important Definitions

EMBEDDED Systems. Functions. MODULE- 1 C programming with data Structure Introduction to C. Array and String. Control Flow Statements In C

CS201 - Introduction to Programming Glossary By

C File Processing: One-Page Summary

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

CS 216 Exam 1 Fall SOLUTION

Department of Computer Science and Technology

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

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

CE Lecture 11

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

Appendix A Developing a C Program on the UNIX system

Preprocessing directives are lines in your program that start with `#'. The `#' is followed by an identifier that is the directive name.

DATA STRUCTURE UNIT I

Programming Abstractions

PA3 Design Specification

1. Attempt any three of the following: 15

Unit 6 Files. putchar(ch); ch = getc (fp); //Reads single character from file and advances position to next character

LESSON PLAN B.C.A. - FIRST YEAR ( REGULATION) SECOND SEMESTER

Chapter 12. Files (reference: Deitel s chap 11) chap8

Advanced C Programming Topics

DATA STRUCUTRES. A data structure is a particular way of storing and organizing data in a computer so that it can be used efficiently.

Information Science 2

CS8391-DATA STRUCTURES QUESTION BANK UNIT I

Fundamentals of Programming. Lecture 15: C File Processing

DHANALAKSHMI COLLEGE OF ENGINEERING Tambaram, Chennai

Transcription:

CS6202 - PROGRAMMING & ATA STRUCTURES I Question Bank UNIT I Part - A 1. What are Keywords? 2. What is the difference between if and while statement? 3. What is the difference between while loop and do while loop? 4. What will happen when you access the array more than its dimension? 5. Write the limitations of getchar( ) and sacnf( ) functions for reading strings. 6. What is the output of the programs given below? 7. Distinguish between Call by value Call by reference. 8. What is the difference between while(a) and while(!a)? 9. Why we don t use the symbol & symbol, while reading a String through scanf()? 10. What is the difference between static and auto storage classes? 11. Define delimiters in C. 12. Differentiate break and continue statement. 13. Distinguish between while..do and do..while statement in C. 14. Compare switch( ) and nestedif statement. 15. Give the syntax for the for loop statement 16. What is the use of sizeof( ) operator? 17. What is a loop control statement? 18. What are global variable in C? 19. Write a program to swap the values of two variables (without temporary variable). 20. What is an array? 21. What is a Pointer? How a variable is declared to the pointer? 22. What are the uses of Pointers? 23. What is the output of the program? 24. How can you return more than one value from a function? 25.What are the main elements of an array declaration? 26.List the header files in C language. 27.What are the pre-processor directives? 28. What is the difference between an array and pointer? 29.Is it better to use a macro or a function? 30.List the characteristics of Arrays. 31.What are the types of Arrays? 32.What is the use of \0 character? 33. What is C functions? Why they are used? 34. Differentiate library functions and User-defined functions.

35. What are the steps in writing a function in a program? 36. Give the syntax for using user-defined functions in a program. 37. Classify the functions based on arguments and return values. 38. Define pre-processor in C. 39. Define Macro in C. 40. What are conditional Inclusions in Preprocessor Directive? 41. What you meant by Source file Inclusion in Preprocessor directive? PART B 1. Explain about the various decision making statements in C language. 2. Explain the control statements in c. 3. What are functions? Explain the types of functions in detail with an example program for each type. 4. Define arrays. Explain the array types with an example program for each type 5. What are pointers? When and why they are used? Explain in detail with sample programs. 6. Describe in detail about the Preprocessors in C. 7. Explain function pointers with example. 8. Detailly explain about function with variable number of arguments.?

1. Define structure. CS6202 - PROGRAMMING & DATA STRUCTURES I 2. What is meant by structure template? UNIT II Part A 3. Write the syntax for structure declaration and definition 4. Define union. 5. Write the syntax for union declaration and definition. 6. How structures are initialized? Give example. 6. What are nested structures? 8. What is meant by array of structures? 9. What is structure assignment? 10. How do you reference a structure member? 11. Differentiate structure and union. 12. Differentiate Struct and array. 13. What are the advantages of union over structure? 13. Write the syntax for pointers to structure. 15. What is a file? 16. Write the syntax for file declaration. 17. What are file modes? 18. Write the syntax to open a file. 19. What is the significance of fclose() function? 20. What are the steps for using a file? 21. What are the functions of text files in stdio library? 22. What are the file pointers of stdlib.h? 23. What are the types of files? 24. What are the features of binary files? 24. What are the functions to access files randomly? Part B 1. Explain the different modes in which a file can be opened. 2. Explain the functions fscanf, fprintf, fgets, fputs, getw, putw, getc, putc, fread, fwrite, feof, ferror,fseek,ftell,rewind with example. 3. Explain structures with an example 4. Explain union with an example 5. Discuss about the file handling concepts in C 6. Explain different ways to read data from a file. 7. Explain different ways to write data to a file

8. Design a c program to create the employee database and to perform the manipulations such as adding a record, deleting a record, updating a record. 9. Explain about structure within structure with example.

CS6202 - PROGRAMMING & DATA STRUCTURES - I 1. What is a data structure? 2. Why do we need data structures? 2. List some common data structures. 3. How data structures are classified? Unit III Part A 4. Differentiate linear and non-linear data structure. 5. Define ADT(Abstract Data Type) 6. Mention the features of ADT. 7. Define List ADT 8. What are the ways of implementing linked list? 9. What are the types of linked lists? 11. How the singly linked lists can be represented? 12. How the doubly linked list can be represented? 13. What are benefits of ADT? 14. When singly linked list can be represented as circular linked list? 15. When doubly linked list can be represented as circular linked list? 16. Where cursor implementation can be used? 16. List down the applications of List. 18. What are the advantages of linked list? 19. Mention the demerits of linked list 20. How the polynomial is represented using linked lists? 21. What are the operations performed in list? 22. What are the merits and demerits of array implementation of lists? 22. What is a circular linked list? Part B 1. Explain the various operations of the list ADT with examples 2. Write the program for array implementation of lists 3. Write a C program for linked list implementation of list. 4. Explain the operations of singly linked lists 5. Explain the operations of doubly linked lists 6. Explain the operations of circularly linked lists 7. How polynomial manipulations are performed with lists? Explain the operations 8. Explain the steps involved in insertion and deletion into an singly and doubly linked list. Page 5

1. Define Stack. CS6202 - PROGRAMMING & DATA STRUCTURES I 2. What are the operations of the stack? Unit IV Part - A 3. Write the routine to push a element into a stack. 4. How the operations performed on linked list implementation of stack? 5. What are the applications of stack? 6. What are the methods to implement stack in C? 7. How the stack is implemented by linked list? 8. Write the routine to pop a element from a stack. 9. Define queue. 10. What are the operations of a queue? 11. Write the routine to insert a element onto a queue. 12. What are the types of queue? 13. Define double ended queue 14. What are the methods to implement queue in C? 15. How the queue is implemented by linked list? 16. Write the routine to delete a element from a queue 17. What are the applications of queue? 18. Define circular queue 19. What are push and pop operations? 20. What are enqueue and dequeue operations? Part B 1. Explain Stack ADT and its operations 2. Explain array based implementation of stacks 3. Explain linked list implementation of stacks 4. Explain the applications of Stacks 5. Explain how to evaluate arithmetic expressions using stacks 6. Explain queue ADT 7. Explain array based implementation of queues 8. Explain linked list implementation of queues 9. Explain the applications of queues 10. Explain circular queue and its implementation 11. Explain double ended queue and its operations

CS6202 - PROGRAMMING & DATA STRUCTURES I 1. Define sorting 2. Mention the types of sorting Unit V Part A 2. What do you mean by internal and external sorting? 3. Define bubble sort 4. How the insertion sort is done with the array? 5. What are the steps for selection sort? 6. What is meant by shell sort? 7. What are the steps in quick sort? 9. Define radix sort 10. What are the advantages of insertion sort 10. Define searching 11. Mention the types of searching 12. What is meant by linear search? 13. What is binary search? 14. Define hashing function 15. What is open addressing? 16. What are the collision resolution methods? 17. Define separate chaining Part B 1. Explain the sorting algorithms 2. Explain the searching algorithms 3. Explain hashing 4. Explain open addressing 5. Write a C program to sort the elements using bubble sort. 6. Write a C program to perform searching operations using linear and binary search. 7. Explain in detail about separate chaining.