NIT Jalandhar Syllabus Computer Programming 1st Year

NIT Jalandhar Syllabus Computer Programming 1st Year

 

CS – 101 Computer Programming

Introduction: Computer system, Software and hardware concepts. Introduction to word processor and system software’s viz. MS Office.
Major elements of C++ program, Declarations of Variables, Body of Statements and functions, Identifiers, Keywords, Data types, Variables, Expressions, Statements, Type Conversions, Operators, Arithmetic operators, Unary operators, Binary operators, Char type, Cast operator, Precedence and Associatively of operations, Change of Precedence, Assignment operators, Bitwise operators, Shift operators, Relational operators, Loops, For loop and it’s variants, While loop, do-while loop, if statement, if else statement, Switch function, Ternary operators, Logical operators, Break function, Continue function, Null statement, Goto Function.
Defining a function, Types of structure declarations, User defined data types, Nested structure declaration, Initialization of structure, processing structures with initialized values, Processing Enumeration data type, Unions.
Function prototypes, Passing arguments to a function, Passing arguments by value, Returning value, Specifying arguments by data types, Passing arguments by reference, References, Passing arguments to a function by reference, function Overloading, Inline functions, Recursion, Storage classes and scope.
Class, objects, Data Abstraction, Data Hiding, Encapsulation, C++ objects as data types, Scope resolution operator, Public and private member functions, Nesting of member functions, Friend functions, Constructors, Destructors, Static data members static member functions.
Array and Operator overloading: Array, Operations on Arrays, Multi-Dimensional Array, Array as Class member Data, Use of Arrays with a class, Array of objects, Operator overloading, Overloading Unary operators, Multiple overloading, and Overloading Binary operators.
Inheritance: Base class, Derived class, Visibility modes, Derivation and friendship, Types of Inheritance, Containership, Virtual functions Binding, Pure Virtual functions, Abstract class, Pointers, Accessing the pointer’s object, Pointers and arrays, Operations on Pointers, Pointers and functions, structures and pointers, pointer to objects, this pointer.
Stream class: hierarchy, Stream classes, String I/O, Reading and Writing strings Character I/O, File Pointers, Random Access, Redirection, Command line arguments Printer output, Overloading extraction and insertion operators, File updating.

 

Books Recommended
1. Bjarne Stroustrup, “C++ Programming Language”, 3rd edition, Pearson Education Asia, (1997)
2. Lafore R, “Object Oriented Programming in C++”, 4th Ed., Techmedia, New Delhi (2002).
3. Yashwant Kenetkar, “Let Us C++”, 1st Ed. BPB Publication, New Delhi (1999).
4. Sourav Sahay, “Object Oriented Programming with C++”, 1st Ed., Oxford University Press (2006)
5. B. A. Forouzan and R. F. Gilberg, Complier Science, “A Structured approach using C++,” Cengage Learning, New Delhi. CS -102 Computer Programming Laboratory [0 0 2 1]
1. Program to make use of the if else if structure.
2. Program to make use of the switch statement.
3. Program to make use of the nested for loop.
4. Program to make use of the nested while loop.
5. Program to implement do-while loop.
6. Program to find the factorial of a number using functions.
7. Program to print the Fibonacci series using functions.
8. Program to overload functions.
9. Program to display the details of a employee record using nested structures.
10. Program to display the result card of student record using Union.
11. Program to calculate the area of rectangle and square using classes.
12. Program to implement ‘date class’ containing data members: day, month and year. Implement
assignment operator and copy constructor in this class.
13. Program to perform insertion and deletion operations on arrays.
14. Program to merge to arrays.
15. Program to implement Multiple Inheritance.
16. Program to implement Multi level Inheritance.
17. Program to demonstrate Hybrid Inheritance.
18. Program to demonstrate containership.
19. Program to multiply two arrays using pointers to the functions.
20. Program to give the command line arguments and displaying those using files.
This is only the suggested of Practicals. Instructor may frame additional Practicals relevant to the course contents.

Leave a Comment