SEMESTER 2
PROGRAMMING IN C
(Common to Group A & B)
Course Code 24SJGXEST204 CIE Marks 40
Teaching Hours/Week
3:0:2:0 ESE Marks 60
(L: T:P: R)
Credits 4 Exam Hours 2 Hrs. 30 Min.
Prerequisites (if any) None Course Type Theory
Course Objectives:
1. To prepare learner to write versatile C programs for solving computational problems
that they come across in their professional life.
2. To equip the learner to write efficient C programs using suitable language constructs
to solve real world computational problems.
SYLLABUS
Module Contact
Syllabus Description
No. Hours
C Fundamentals - Character Set, Constants, Identifiers, Keywords,
Basic Data types, Variables, Operators and its precedence, Bit-wise
operators, Expressions; Statements - Input and Output statements;
1 9
Structure of a C program; Simple programs.
Control Statements - if, if-else, nested if, switch, while, do-while,
for, break & continue, nested loops.
Arrays - Single dimensional arrays, Defining an array, Array
initialization, Accessing array elements; Enumerated data type;
Type Definition; Two- dimensional arrays – Defining a two-
2 dimensional array; Programs for matrix processing; Programs for 9
sequential search; Bubble sort;
Strings - Declaring a string variable, Reading and displaying
strings, String related library functions – Programs for string matching.
Page 58 of 83
Functions - Function definition, Function call, Function prototype,
Parameter passing; Recursion; Passing array to function; Macros -
Defining and calling macros; Command line Arguments.
3 Structures - Defining a Structure variable, Accessing members, 9
Array of structures, Passing structure to function; Union.
Storage Class - Storage Classes associated with variables:
automatic, static, external and register.
Pointers - Declaration, Operations on pointers, Passing pointer to a
function, Accessing array elements using pointers, Processing
strings using pointers, Pointer to pointer, Array of pointers, Pointer to
4 function, Pointer to structure, Dynamic Memory Allocation. 9
Files- Different types of files in C, Opening & Closing a file,
Writing to and Reading from a file, Processing files, Library
functions related to file – fseek(), ftell(), fread(), fwrite().
Course Assessment Method
(CIE: 40 marks, ESE: 60 marks)
Continuous Internal Evaluation Marks (CIE):
Internal Internal
Attendance Assignment/ Examination-1 Examination- 2 Total
Microproject (Written) (Written)
5 15 10 10 40
End Semester Examination Marks (ESE)
In Part A, all questions need to be answered and in Part B, each student can choose any one
full question out of two questions
Part A Part B Total
• 2 Questions from • Each question carries 9 marks.
each module. • Two questions will be given from each
• Total of 8 Questions, module, out of which 1 question should
be answered.
each carrying 3 marks 60
• Each question can have a maximum of 3
sub divisions.
(8x3 =24marks) (4x9 = 36 marks)
Page 59 of 83
Course Outcomes (COs)
At the end of the course students should be able to:
Bloom’s
Course Outcomes Knowledge
Level (KL)
Infer a computational problem and develop C programs from
CO1 them using basic constructs of C language including the control K2
statements.
CO2 Develop C programs using arrays, matrices, and strings. K3
Utilize functions to find solution to the computational
CO3 problems by dividing it into a number of modules and abstract K3
data types.
CO4 Develop C programs using pointers for dynamic data handling. K3
CO5 Use files in C to permanently store and manipulate data. K3
Note: K1- Remember, K2- Understand, K3- Apply, K4- Analyse, K5- Evaluate, K6- Create
CO-PO Mapping Table:
PO1 PO2 PO3 PO4 PO5 PO6 PO7 PO8 PO9 PO10 PO11
CO1 3 3 3 3 3
CO2 3 3 3 3 3
CO3 3 3 3 3 3
CO4 3 3 3 3 3
CO5 3 3 3 3 3
Text Books
Name of the Edition
Sl. No Title of the Book Name of the Author/s Publisher and Year
1 Programming with C Byron S Gottfried Mc Graw Hill 4/e, 2018
Problem Solving and Program Jeri R. Hanly, Elliot B.
2 Pearson 8/e, 2016
Design in C Koffman
Page 60 of 83
Reference Books
Sl. Name of the Name of the Edition
No Title of the Book Author/s Publisher and Year
Brian W. Kernighan
1 The C Programming Language Pearson 2/e, 2015
and Dennis Ritchie
2 C The Complete Reference Herbert Schildt Mc Graw Hill 4/e, 2017
3 Let us C Yashavant Kanetkar BPB 19/e, 2022
Publishers
4 Programming in ANSI C E Balagurusamy Mc Graw Hill 9/e, 2024
Page 61 of 83