0% found this document useful (0 votes)
7 views

bcom c and c++

The document outlines the syllabus for a programming course focused on C and C++, covering fundamental concepts such as data types, control statements, functions, arrays, pointers, structures, and object-oriented programming principles. It includes detailed unit breakdowns for both C and C++ programming, along with practical lab exercises to reinforce learning through coding tasks. The course aims to equip students with essential programming skills and knowledge applicable in various programming scenarios.

Uploaded by

srilathadg
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

bcom c and c++

The document outlines the syllabus for a programming course focused on C and C++, covering fundamental concepts such as data types, control statements, functions, arrays, pointers, structures, and object-oriented programming principles. It includes detailed unit breakdowns for both C and C++ programming, along with practical lab exercises to reinforce learning through coding tasks. The course aims to equip students with essential programming skills and knowledge applicable in various programming scenarios.

Uploaded by

srilathadg
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Paper DSC 203:PROGRAMMING WITH C & C++ Hours Per Week: 7 (3T+4P)

Credits: 5 Exam Hours: 1 ½ Marks: 50U+35P+15


I Objective:To understand the fundamental concepts of programming in C and
Object Oriented Programming using C++.
UNIT-I: INTRODUCTION TO C LANGUAGE, VARIABLES, DATA TYPES AND
OPERATORS Introduction: Types of Languages- History of C language – Basic
Structure –Programming Rules – Flow charts-algorithms–Commonly used
library functions - Executing the C Program - Pre-processors in “C”- Keywords
& Identifiers – Constants – Variables: Rules for defining variables - Scope and
Life of a Variable–- Data types - Type Conversion - Formatted Input and Output
operations. Operators: Introduction – Arithmetic – Relational – Logical –
Assignment - Conditional - Special - Bitwise - Increment / Decrement operator.
UNIT-II: WORKING WITH CONTROL STATEMENTS, LOOPS Conditional
statements: Introduction - If statements - If-else statements – nested if-else –
break statement-continue statement-go to statement-Switch statements.
Looping statements: IntroductionWhile statements – Do-while statements - For
Statements-nested loop statements.
UNIT-III: FUNCTIONS, ARRAYS AND STRINGS Functions: Definition and
declaration of functions- Function proto type-return statement- types of
functions-formatted and unformatted functions. Built in functions:
Mathematical functions - String functions - Character functions - Date
functions.User defined functions: Introduction - Need for user defined
functions - Elements of functions – Function call – call by value and call by
reference - Recursive functions.Arrays: Introduction - Defining an array -
Initializing an array –characteristics of an array- One dimensional array – Two
dimensional array – Multi dimensional array. Strings: Introduction - Declaring
and initializing string - Reading and Writing strings - String standard functions.
UNIT-IV: POINTERS, STRUCTURES AND UNIONS Pointers: Features of pointers-
Declaration of Pointers-arithmetic operations with pointers Structures:
Features of Structures - Declaring and initialization of Structures –Structure
within StructureArray of Structures- Enumerated data type-Unions-Definition
and advantages of Unions comparison between Structure & Unions.
UNIT-V: OBJECT ORIENTED CONCEPTS USING C++ Object Oriented
Programming: Introduction to Object Oriented Programming - Structure of C+
+ – Simple programof C++– Storage Classes-Similarities and Differences
between C & C++ - Data Members-Member Functions - Object Oriented
Concepts-Class Object-Inheritance-PolymorphismEncapsulation-Abstraction.

Bcom lab
Bsc sem ii- programming in c++
Unit – I Introduction to C++: Applications, Example Programs, Tokens, Data
Types, Operators, Expressions, Control Structures, Arrays, Strings, Pointers,
Searching and Sorting Arrays. Functions: Introduction, Prototype, Passing Data
by Value, Reference Variables, Using Reference Variables as Parameters,
Inline Functions, Default Arguments, Overloading Functions, Passing Arrays to
Functions. Object Oriented Programming: Procedural and Object-Oriented
Programming, Terminology, Benefits, OOP Languages, and OOP Applications.
Unit – II Classes: Introduction, Defining an Instance of a Class, Why Have
Private Members? Separating Class Specification from Implementation, Inline
Member Functions, Constructors, Passing Arguments to Constructors,
Destructors, Overloading Constructors, Private Member Functions, Arrays of
Objects, Instance and Static Members, Friends of Classes, Member-wise
Assignment, Copy Constructors, Operator Overloading, Object Conversion,
Aggregation.
Unit – III Inheritance: Introduction, Protected Members and Class Access, Base
Class Access Specification, Constructors and Destructors in Base and Derived
Classes, Class Hierarchies, Polymorphism-Function Overloading, Function
Overriding and Virtual Member Functions, Abstract Base Classes and Pure
Virtual Functions, Multiple Inheritance. C++ Streams: Stream Classes,
Unformatted I/O Operations, Formatted I/O Operations.
Unit – IV Exceptions: Introduction, Throwing an Exception, Handling an
Exception, Object-Oriented Exception Handling with Classes, Multiple
Exceptions, Extracting Data from the Exception Class, Re-throwing an
Exception. Templates: Function Templates–Introduction, Function Templates
with Multiple Type, Overloading with Function Templates, Class Templates –
Introduction, Defining Objects of the Class Template, Class Templates and
Inheritance, , Introduction to the STL.

Programming lab

1. Write a program to.

a. Print the sum of digits of a given number.

b. Check whether the given number is Armstrong or not

c. Print the prime number from 2 to n where n is natural number given.

2. Write a program to find largest and smallest elements in a given list of numbers and
sort the given list.

3. Write a program to read the student name, roll no, marks and display the same using
class and object.

4. Write a program to implement the dynamic memory allocation and de-allocation using
new and delete operators using class and object.

5. Write a program to find area of a rectangle, circle, and square using constructors.

6. Write a program to implement copy constructor

. 7. Write a program using friend functions and friend class.

8. Write a program to implement constructors

a. Default Constructor, Parameterized Constructor, Copy Constructor

b. Define the constructor inside/outside of the class

c. Implement all three constructors within a single class as well as use multiple
classes( individual classes)

9. Write a program to implement the following concepts using class and object
a. Function overloading

b. Operator overloading (unary/binary(+ and -))

10. Write a program to demonstrate single inheritance, multilevel inheritance and


multiple inheritances.

11. Write a program to implement the overloaded constructors in inheritance.

12. Write a program to implement the polymorphism and the following concepts using
class and object.

a. Virtual functions

b. Pure virtual functions

13. Write a program to implement the virtual concepts for following concepts

a. Constructor (not applied)

b. Destructor (applied)

14. Write a program to demonstrate static polymorphism using method overloading.

15. Write a program to demonstrate dynamic polymorphism using method overriding


and dynamic method dispatch

16. Write a program to implement the template (generic) concepts

a. Without template class and object

b. With template class and object

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy