Programming Imp Questions
Programming Imp Questions
P
P
Code No.: MP-BCA-102
B RILLIANT 'S ®
Programming
Methodology &
Data Structures
NP
BCA 1st Year
www.thebrilliants.in
C++ C++ C++
P
C++ C++ C++
C++ C++
C++ C++ C++ C++
C++
New Syllabus
Programming Methodology &
Data Structures
UNIT 1.
NP Introduction to Programming: Programming Concept, Characteris-
tics of Programming, Stages in Program Development, Algorithms,
Notations, Design, Flowcharts, Types of Programming Methodolo-
gies.
Basics of C++: A Brief History of C++, Application of C++. Compil-
ing & Linking, Tokens, Keywords, Identifiers & Constants. Basic
Data Types, User-Defined Data Types, Symbolic Constant, Type
Compatibility, Reference Variables, Operator in C++, Scope Resolu-
tion Operator, Member Dereferencing Operators, Memory Man-
agement Operators, Manipulators. Type Cast Operator.
Functions In C++: The Main Function, Function Prototyping, Call
by Reference Call by Address, Call by Value, Return by Reference,
Inline Function, Default Arguments, Constant Arguments, Func-
tion Overloading, Function with Array.
UNIT 2.
Classes & Objects: A Sample C++ Program with class, Defining
Member functions, Making an Outside Function Inline, Nesting of
Member Functions, Private Member Functions, Arrays within a Class,
Memory Allocation for Objects, Static Data Members, Static Mem-
ber, Functions, Array of Objects, Object as Function Arguments,
Friend Functions, Virtual functions, Returning Objects, Constant
member functions, Pointer to Members, Local Classes.
P
Constructor & Destructor: Constructor, Parameterized Constructor,
Multiple Constructors in a Class, Constructors with Default Argu-
ments, Dynamic Initialization of Objects, Copy Constructor, Dy-
namic Constructor and Destructor.
UNIT 3.
Inheritance: Defining Derived Classes, Single inheritance, Making
a Private Member Inheritable, Multilevel Inheritance, Hierarchical
Inheritance, Multiple Inheritance, Hybrid Inheritance, Virtual Base
Classes, Abstract Classes. Constructor in Derived Classes, Nesting
of Classes. Operator Overloading & Type Conversion, Polymor-
phism, Pointers: Pointers with Arrays C++, Streams: C++ Stream
Classes, Unformatted I/O Operation, Formatted I/O Operation,
Managing Output with Manipulators, Exception Handling.
NP
UNIT 4.
Data Structure: Basic concepts, Linear and Non-Linear data struc-
tures
Algorithm Specification: Introduction, Recursive algorithms, Data
Abstraction, Performance analysis.
Arrays: Representation of single, two-dimensional arrays, triangu-
lar arrays, sparse matrices-array and linked representations.
Stacks: Operations, Array and Linked Implementations, Applica-
tions infix to Post fix Conversion, Infix to Postfix Conversion, Postfix
Expression Evaluation, Recursion Implementation.
Queues: Definition, Operations, Array and Linked Implementa-
tions. Circular Queue-Insertion and Deletion Operations, Dequeue
(Double Ended Queue), Priority Queue- Implementation.
UNIT 5.
Linked Lists: Singly Linked Lists, Operations, Concatenating, circu-
larly linked lists-Operations for Circularly linked lists, Doubly Cir-
cular Linked List- Operations, Doubly Circular Linked List, Header
Linked List. Trees: Representation of Trees, Binary tree, Properties
of Binary Trees, Binary Tree Representations- Array and Linked
Representations, Binary Trees Traversals, Threaded Binary Trees.
Heap: Definition, Insertion, Deletion.
P
UNIT 6.
Graphs: Graph ADT, Graph Representations, Graph Traversals,
Searching.
Hashing: Introduction, Hash tables, Hash Functions, Overflow
Handling.
Sorting: Bubble sort, Selection Sort, Insertion Sort, QuickSort, Merge
Sort, Comparison of Sorting Methods,
Search Trees: Binary Search Trees, AVL Trees- Definition and Ex-
amples.
UNIT 7.
Innovations in India, origin of Julia Programming Language, In-
dian Engineers who designed new programming languages, open
source languages, Dr. Sartaj Sahni computer scientist - pioneer of
NP
data structure, Other relevant Contributors and their Contributions.
PRACTICAL
1. Write a program to swap the contents of two variables.
2. Write a program for finding the roots of a Quadratic Equation.
3. Write a program to find area of a circle, rectangle square using
switch case.
4. Write a program to print table of any number.
5. Write a program to print Fibonacci series.
6. Write a program to find factorial of a given number using recur-
sion.
7. Write a program to convert decimal (integer) number into equiva-
lent binary number.
8. Write a program to check given string is palindrome or not.
9. Write a program to print digits of entered number in reverse
order.
10. Write a program to print sum of two matrices.
11. Write a program to print multiplication of two matrices.
12. Write a program to generate even/odd series from 1 to 100.
13. Write a program whether a given number is prime or not.
14. Write a program for call by value and call by reference.
P
15. Write a program to create a pyramid structure.
1
12
123
1234
16. Write a program to check entered number is Armstrong or not.
17. Write a program to input N numbers and find their average.
18. Write a program to find the area and volume of a rectangular
box using constructor.
19. Write a program to design a class time with hours, minutes and
seconds as data members. Use a data function to perform the
addition of two time objects in hours, minutes and seconds.
20. Write a program to implement single inheritance.
21. Write a program to find largest element from an array.
22. Write a program to implement push and pop operations on a
NP stack using array.
23. Write a program to perform insert and delete operations on a
queue using array.
24. Write a program for Linear search.
25. Write a program for Binary search.
26. Write a program for Bubble sort.
27. Write a program for Selection sort.
28. Write a program for Quick sort.
29. Write a program for insertion sort.
30. Write a program to implement linked list.
P
C++ C++ C++
C++
C++ C++
Contents
UNIT
FLOWCHART / âbmoMmQ>©
MANIPULATORS / ‘¡{Zß¶wboQ>g©
Objective Questions 97
UNIT
CONSTRUCTOR / H§$ñQ´>³Q>a
DESTRUCTOR / {S>ñQ´>ŠQ>a
POLYMORPHISM / nm°br‘m°{’©$Á
µ ‘
Short Answer Type Questions
Q.59. What is polymorphism? Explain its types.
nm°br‘m°{’©$µÁ‘ жm h¡? BgHo$ àH$mam| H$mo g‘PmBE& 177
NP
DATA STRUCTURE- BASIC CONCEPTS
S>oQ>m ñQ´>ŠMa- ~w{Z¶mXr AdYmaUmE±
Short Answer Type Questions
Q.66. What are data structures? Explain linear and non-lin-
ear data structures. / S>oQ>m ñQ´>ŠMg© жm h¢? br{Z¶a Am¡a
Zm°Z-br{Z¶a S>oQ>m ñQ´>ŠMg© H$mo g‘PmBE& 200
ALGORITHM SPECIFICATION: INTRODUCTION, RECUR-
SIVE ALGORITHMS, DATA ABSTRACTION, PERFORMANCE
ANALYSIS / EëJmo[aX‘ ñno{g{’$Ho$eZ - n[aM¶, [aH${g©d
EëJmo[aX‘, S>oQ>m EãgQ´>o³eZ, na’$m°‘}Ýg EZm{b{gg
Long Answer Type Questions
Q.67. Write a short note on: / {ZåZ na EH$ g§{jßV {Q>ßnUr {b{IE:
(i) Recursive algorithm / [aH${g©d EëJmo[aX‘
(ii) Data Abstraction / S>oQ>m EãgQ´>o³eZ
(iii) time and space complexity / g‘¶ Am¡a ñWmZ O{Q>bVm
NP
INDIAN CONTRIBUTION TO THE FIELD: INNOVATIONS IN
INDIA, ORIGIN OF JULIA PROGRAMMING LANGUAGE / joÌ
‘| ^maVr¶ ¶moJXmZ: ^maV ‘| ZdmMma, Oy{b¶m àmoJ«mq‘J ^mfm H$s CËn{Îm
Long Answer Type Questions
Q.102. Write a short note on innovation in India in field of
computer technology. / H§$ß¶yQ>a àm¡Úmo{JH$s Ho$ joÌ ‘| ^maV ‘|
ZdmMma na EH$ g§{já ZmoQ> {b{IE& 380
PRACTICAL 396