You are on page 1of 6

Subject: Programming using C(CC-II) Branch: BCA 2022-23

Subject Code: BCA


Semester: First
Duration (Total Hours): 40 Hrs
Total Mark: 100
Course Instructor: Prof. Sisira Kanta Padhi
Course Objective:
 C is the primary programming language you use when writing software for OS X and iOS.
 It’s a superset of the C programming language and provides object-oriented capabilities and a
dynamic runtime.
 Objective-C inherits the syntax, primitive types, and flow control statements of C and adds
syntax for defining classes and methods.
 It also adds language-level support for object graph management and object literals while
providing dynamic typing and binding, deferring many responsibilities until runtime.
Syllabus:
Unit-1
Introduction: Introduction to Programming Language, Introduction to C Programming, Keywords
& Identifiers, Constants, Variables, Input and Output Operations, Compilation and pre-processing,
Data types: Different data types, Data types qualifier, modifiers, Memory representation, size and
range,Operators: Operators (Arithmetic, Relational, Logical, Bitwise, Assignment & compound
assignment, Increment & Decrement, Conditional), Operator types (unary, binary, ternary).
Expressions, Order of expression (Precedence and associativity), Control structures: Decision
Making and Branching (Simple IF Statement, IF…ELSE Statement, Nesting IF… ELSE Statement,
ELSE IF Ladder), Selection control structure (Switch Statement).
Unit-2
Loops: The WHILE Statement, The DO…WHILE Statement, The FOR Statement, Jumps in Loops,
Array: Concept of Array, Array Declaration, types of array (one and multiple dimension), Character
Arrays and Strings, Subscript and pointer representation of array, Array of Pointers, Limitation of
array, Pointers: Concept of Pointer (null pointer, wild pointer, dangling pointer, generic pointer),
Pointer Expressions, Accessing the Address of a Variable, Declaring Pointer Variables,
Initializations of Pointer Variable, Accessing a Variable through its Pointer, Pointer arithmetic.
Unit-3
Storage class: Types (auto, register, static, extern), scope rules, declaration and definition.
Storage Function: Function & types (User defined function, library function) Function Definition,
Declaration, Function Calls, Header file and library, Function Arguments, string handling function
(strlen, strcmp, strcpy, strncpy, strcat, strstr), Function recursion, Functions Returning Pointers,
Pointers to Functions, Command line arguments, Application of pointer (dynamic memory
allocation).
Unit-4
Structure and Union: Defining, Declaring, Accessing, Initialization Structure, nested structure, self-
referential structure, bit-field, Arrays of Structures, Structures and Functions, Unions, difference
between structure and union, active data member, structure within union, Self-referential Structure.
File: File Management in C, Defining and Opening a File, File opening modes (read, write, append),
Closing a File, File operations, file and stream, Error Handling During I/O Operations, sequential
and random access file, low level and high level file.
Text Books: 1. E. Balagurusamy, “Programming in ANSI C”, 4/e, (TMH)
Reference Books: 1. B. Kernighan & Dennis Ritchie, “The C Programming Language”, 2/e PHI 2.
Paul Deitel, Harvey Deitel, “C: How to Program”, 8/e, Prentice Hall. 3. P.C. Sethi, P.K. Behera,
“Programming using C”, Kalyani Publisher, Ludhiana
Lect Unit Topic Detail with sub topic Teaching Learning Learning Assignment
No Method Objective Outcome
Introduction to Programming Lecture The objective 1) Students Assignment-1
1 Language and Programming in C is to should be
Constants and Variables: Character Lecture 1. Provide a able to
2 comprehensiv write,
Set, C Tokens, Keywords &
e study of the compile and
Identifiers, Constants, Variables. C language, debug
Data Types: Data Types, Lecture stressing upon Practice all the
programs in
3 Declaration of Variables, the strengths programs in
C language.
declaration of Storage Classes, of C, which 2) Students Chapter-2
Assigning Value to variable. provide the should be from ANSI C
Declaration: Defining Symbolic Lecture students with able to
4 Constants, Declaration a Variable the means of use
as Constant and Variable as writing different
volatile. modular, data types
Solve some Programming in C Problem efficient, in a
5 I using above cases. Solving maintainable, computer
and portable program.
Operators: Arithmetic, Relational, Lecture code. 3) Students
6 Logical, Assignment, Increment & & 2. Objective
Practice all the
should be able
Decrement, Conditional, Bitwise Problem is to provide programs in
to design
and some special Operator. Solving knowledge of programs
Chapter 3 & 4
Solve some Programming in C Problem Defining and involving from ANSI C
7 using above cases. Solving using decision
Expressions: Arithmetic Lecture variables. structures,
8 Expressions and Evaluation of & 3.Using loops and
Expressions with programming. Problem operators to functions.
Solving perform
computation.
Input and Output Operations: Lecture
4
9 Reading a Character, Writing a &
Character, Formatted Input with Problem
suitable programming. Solving
Input and Output Operations: Lecture
10 Formatted Output with suitable &
programming. Problem
Solving
II Decision Making and Branching: Lecture 1. Studying 1) Students
11 Simple IF Statement, IF ….. ELSE & and Learning should be Assignment-2
various able to use
Statement, Nesting IF …. ELSE Problem
iterative all input and
Statement, ELSE IF Ladder with Solving output
suitable Programming. control
structures. functi
Solve some Programming in C Problem on Practice all the
12 using above cases. Solving confid programs in
2.Understandi
Decision Making and Branching: Lecture ng all ently. Chapter-5 &6
13 Switch Statement, Operator, & input and 2) Students from ANSI C
GOTO Statement with suitable Problem output should be able to
Programming. Solving functions. explain the
Solve some Programming in C Problem 3. Working difference
14 with between call by
using above cases. Solving
Arrays and value and call by
Decision Making and Looping: Lecture Strings. reference
15 The WHILE Statement, The DO &
Statement, The FOR Statement, Problem
Jumps in LOOPS with suitable Solving
Programming.
Solve some Programming in C using Problem Practice all the
16 above cases. Solving programs in
Array: Declaration and Initialization Lecture & Chapter-7 & 8 from
17 of One Dimensional Array with Problem ANSI C
suitable Programming. Solving
Array: Declaration and Initialization Lecture &
18 of Two Dimensional Array with Problem
suitable Programming. Solving
Character Arrays and Strings: Lecture &
19 Declaration and Initialization String Problem
Variable, Reading String From Solving
Terminal and Writing String to
Screen with suitable Programming.
Character Arrays and Strings: Lecture &
20 Putting String together, Comparison Problem
of Two Strings and String Handling Solving
Functions with suitable Programming.
User-defined Functions: Need, Lecture & 1.provide 1.Use Assignment-3
21 Elements & Definition of Function Problem Concept of inbuilt
with suitable Programming. Solving functions functions
User-defined Functions: Function Lecture & 2. Library for the Practice all the
22 Calls and Function Declaration with Problem functions: given programs in
suitable Programming. Solving Math problem. Chapter-9 from
User-defined Functions: Function Lecture & functions, 2. Develop ANSI C
23 Calls and Function Declaration with Problem String relevant
III handling user
suitable Programming. Solving
User-defined Functions: No Lecture & functions, defined
24 other functions
Argument and No Return Values, Problem
miscellane for the
Argument but No Return Values, Solving
ous given
Argument with Return Values with
functions. problem.
suitable Programming.
4. 3. Write ‘C’
User-defined Functions: No Lecture &
Parameter codes to
25 Argument and Return Values, Problem
passing: Pass
Functions that return Multiple Solving
call by function
Values, Recursion with suitable
value, call parameters
Programming.
by using the
reference. given
approach.
4d. Write
recursive
function for
the given
problem.
Structures and Unions: Defining, Lecture & Assignment-4
26 Declaring, Accessing, Initialization Problem
Structure with suitable Programming. Solving
Structures and Unions: Arrays of Lecture &
27 Structures, Arrays within Structures Problem
Structure, Structures and Functions Solving
with suitable Programming.

Solve some Programming in C using Lecture &


28 above cases. Problem
Solving
29 Structures and Unions: Unions with Lecture &
suitable Programming. Problem
Solving
Pointers: Accessing the Address of a Lecture & 1. 1) Practice all the
30 Variable, Declaring Pointer Problem Understa Students programs in
Variables, Initializations of Pointer Solving nding should be Chapter-10 & 11
of how able to
Variable with suitable Programming. dynamical from ANSI C
Pointers: Accessing a Variable Lecture & understand
ly
31 Problem the
through its Pointer, Chain of memory
dynamics
Pointers, Pointer Expressions, Solving gets
allocated. of memory
Pointer Increments and Scale Factor by the use
with suitable programming. 2.
Understan of
Pointers: Pointers and Arrays, Lecture & ds why pointers.
32 Pointers and Character Strings, Array Problem and how to 2)
of Pointers with suitable Solving use Students
programming. structure should be
Pointers: Pointers as Function Lecture & and able to use
33 Arguments, Functions Returning Problem Unions. different
3. Using data
Pointers with suitable programming. Solving file data structures
Pointers: Pointers to Functions, Lecture & for and
34 Pointers to Structures, Troubles with Problem computatio create/upda
Pointers with suitable programming. Solving n and te basic
Solve some Programming in C using Lecture & even
data files.
35 above cases. Problem store data
IV in file.
Solving
File Management in C: Defining and Lecture &
36 Opening a File, Closing a File with Problem
suitable programming. Solving
File Management in C: Input/ Output Lecture &
37 Operations on Files, Error Handling Problem
during I/O Operations with suitable Solving
programming.
File Management in C:Random Access Lecture &
38 to Files, Command Line Arguments Problem
with suitable programming. Solving
Solve some Programming in C using Lecture &
39 above cases. Problem
Solving
File Management in C: Dynamic Lecture &
40 Memory Allocation: Malloc, Calloc, Problem
Free and Realloc with suitable Solving
programming.

Evaluation Scheme:

Period Mark Remark


Criteria (On completion of)
Mid Term 20hrs 30
End Term 40hrs 70
COURSE OUTCOMES (CO):

After completion of the course, a student will be able to

COURSE DESCRIPTION
OUTCOME
(CO)
CO1 Identify the need and use of programming in real world environment.

CO2 Improve the understanding of using data types, variables and arithmetic operations in
programming.
CO3 Understand the concept of functions and pointer. In addition, resolve real world
problems using functions and pointers.
CO4 Understand Array and String concepts and implement array and string using functions
and pointers.
CO5 Exercise user defined data types including structure and union.

SUGGESTED CAPSTONE-PROJECTS
Only one micro-project is planned to be undertaken by a student assigned to him/her in
the beginning of the semester. S/he ought to submit it by the end of the semester to
develop the industry oriented COs. Each micro-project should encompass two or more
COs which are in fact, an integration of practicals, cognitive domain and affective
domain LOs.
The total duration of the micro-project should not be less than 16 (sixteen) student
engagement hours during the course. In the first four semesters, the micro-project could
be group-based. However, in higher semesters, it should be individually undertaken to
build up the skill and confidence in every student to become problem solver so that s/he
contributes to the projects of the industry.
A suggestive list is given here:
a. Modern Periodic Table using ‘C’ - Each group will prepare a periodic table
using functions ‘Void add ()’ and ‘Void show ()’
b. Simple Calculator - Each batch will prepare a menu driven program to perform
any five mathematical operations.
c. Employee Record System - Each batch will prepare a menu driven program to
perform following operations:
i. Add record
ii. List record
d. Digital clock using ‘C’
e. String Manipulation project - Each batch will prepare a menu driven program
to perform following operations (any five ) :

i. Substrings
ii. Palindromes
iii. Comparison
iv. Reverse string
v. String to integer
vi. Sort a string
f. Matrix Operations - Each batch will prepare a menu driven program to
perform
following operations:
i. Matrix addition
ii. Matrix multiplication
iii. Matrix transpose
iv. Sum of diagonal of a matrix.
g. Basic mathematic functions - Each batch will prepare a menu driven program
to perform following operations:
i. Pascal triangle
ii. Armstrong No.
iii. Floyd’s triangle
iv. HCF and LCM.

SUGGESTED STUDENT ACTIVITIES


Other than the classroom and laboratory learning, following are the suggested student-related
co-curricular activities which can be undertaken to accelerate the attainment of the various
outcomes in this course:
a. Prepare journals based on practical performed in laboratory.
b. Give seminar on relevant topic.
c. Library/E-Book survey regarding ‘C’ used in electronics industries.
d. Prepare power point presentation or animation for showing different types of ‘C’
Applications.
e. Find and Utilize android applications related to ‘C’.
f. Undertake a market survey of different ‘C’ application and compare with the following
points.
i. Available applications.
ii. Application profile.

You might also like