DIGITAL FUNDAMENTALS AND OBJECT ORIENTED PROGRAMMING USING C Sem I
DIGITAL FUNDAMENTALS AND OBJECT ORIENTED PROGRAMMING USING C Sem I
COMPUTER SCIENCE
3 Credits 90 Hours
Module I 18
Hours
Digital fundamentals
Logic gates, Boolean algebra - Boolean expressions, De Morgan’s theorems, simplification of
Boolean expressions, karnaugh map. Combinational circuits - Half-adder, Full-adder,
Encoders, Decoders, Multiplexers, and De-multiplexers. Sequential circuits - Flip-Flops-Edge
triggered D, SR and JK, Master-slave SR, Asynchronous counters, Shift registers.
Module II 18
Hours
Control statements
If, switch, for loop, while loop, do-while loop, jump statements –return, break, continue, exit
function.
Arrays
Single dimensional, two-dimensional, and multi-dimensional arrays, array initialization.
Functions
General form of a function, function prototype, function arguments, storage class specifiers,
calling functions with arrays, arguments to main function –argc, and argv, return from a
function, returning values from functions, recursive functions, function overloading, inline
functions, default arguments.
Managing console I/O operations
C++ streams, stream classes, unformatted I/O operations – put, get, getline, write functions,
formatted console I/O operations – width, precision, fill, setfill, unsetf functions, managing
output with manipulators – setw, setprecision, setfill, setiosflags, resetiosflags functions, and
endl.
Module III 18
Hours
Pointers
Pointer variable, pointer operators, pointer expressions, pointer assignment, pointer
arithmetic, pointer comparison, pointers and arrays, array of pointers, initializing pointers,
pointers to functions.
Structures, unions, enumerated data types
Structures, accessing structure members, structure assignments, arrays of structures,
passing structure members to functions, passing entire structures to functions, structures
within structures, unions, enumerated data types, typedef
Module IV 18
Hours
Object oriented programming
OOPs concepts, namespaces, classes and objects, access specifiers, scope resolution operator,
constructors – default, parameterized, overloaded, copy constructors, destructors, static
data members and member functions, arrays within a class, passing objects to functions,
returning objects, arrays of objects pointers to objects, this pointer, returning of values by
reference, dynamic memory allocation.
Module V 18Hours
Operator overloading
Creating a member operator function, overloading unary operators - ++, and --, overloading
binary operator - +, -, <, ==, concatenating strings using + operator, string comparison using
++ operator, rules for overloading operators, type conversion.
Inheritance
Types of inheritance – single, multi-level, multiple, hybrid, hierarchical, derived class
constructors, virtual functions, pure virtual functions, late binding, abstract classes, virtual
base classes
Text books:
1. The Complete Reference, C++, Herbert Schildt, Tata McGraw Hill publications, Fourth
edition.
2. Object Oriented Programming with C++, E Balagurusamy, Tata McGraw Hill publications,
Sixth Edition.
Reference books:
1. Object Oriented Programming in C++, Robert Lafore, SAMS publishing, and Fourth
Edition.
2. C++ Primer, Stanley B Lippman, Josee Lajoie, Barbara E Moo, Addison-Wesley, Fifth
Edition.