Vous êtes sur la page 1sur 9

Lovely Professional University, Punjab

Course Code Course Title Course Planner Lectures Tutorials Practicals Credits
CAP126 COMPUTER PROGRAMMING-II 12962::Harjinder Kaur 3 0 0 3
Course Weightage ATT: 5 CA: 25 MTT: 20 ETT: 50
Exam Category: 13: Mid Term Exam: All MCQ – End Term Exam: MCQ +
Subjective
Course Orientation KNOWLEDGE ENHANCEMENT, PLACEMENT EXAMINATION

TextBooks ( T )
Sr No Title Author Publisher Name
T-1 PROGRAMMING IN ANSI C E.BALAGURUSAMY M.G.Hills
Reference Books ( R )
Sr No Title Author Publisher Name
R-1 PROGRAMMING WITH ANSI & ASHOK N. KAMTHANE PEARSON
TURBO C
R-2 SCHAUM'S OUTLINE OF BYRON GOTTFRIED M.G.Hills
PROGRAMMING WITH C
R-3 LET US C YASHWANT BPB PUBLICATIONS
KANETKAR
Other Reading ( OR )

Sr No Journals articles as Compulsary reading (specific articles, complete reference)

OR-1 https://coderdojo.com/ ,

Relevant Websites ( RW )
Sr No (Web address) (only if relevant to the course) Salient Features
RW-1 http://www.cprogrammingexpert.com/ It covers all the basic concepts, constructs,functions, pointers, structure
and files
RW-2 http://www.c4learn.com/c-programs/ Basics of C programming with demonstrations of various examples

RW-3 http://fresh2refresh.com/c-tutorial-for-beginners/ C programming notes which includes tutorials on input and output,
control flow, functions, structures, etc.
Audio Visual Aids ( AV )
Sr No (AV aids) (only if relevant to the course) Salient Features
AV-1 https://www.cs.purdue.edu/homes/cs240/ Video lectures tutorials on pointers, structures, memory management

An instruction plan is a tentative plan only and a teacher may make some changes in his/her teaching plan. The students are advised to use syllabus for preparation of all examinations. The students are expected to keep themselves
updated on the contemporary issues related to the course. Upto 20% of the questions in any examination/Academic tasks can be asked from such issues even if not explicitly mentioned in the instruction plan.
Software/Equipments/Databases
Sr No (S/E/D) (only if relevant to the course) Salient Features
SW-1 https://turboc.codeplex.com/ It provides faster and optimized environment for development and
execution of C programmes
Virtual Labs ( VL )
Sr No (VL) (only if relevant to the course) Salient Features
VL-1 http://iiith.vlab.co.in/?sub=21&brch=47 Virtual lab of C programming which includes various basic concepts of C
programming

LTP week distribution: (LTP Weeks)


Weeks before MTE 7
Weeks After MTE 7
Spill Over (Lecture) 7

Detailed Plan For Lectures


Week Lecture Broad Topic(Sub Topic) Chapters/Sections of Other Readings, Lecture Description Learning Outcomes Pedagogical Tool Live Examples
Number Number Text/reference Relevant Websites, Demonstration/
books Audio Visual Aids, Case Study /
software and Virtual Images /
Labs animation / ppt
etc. Planned
Week 1 Lecture 1 Storage Classes(Storage T-1 RW-1 L0:Introduction to Student will learn Live demonstration Memory and
class specifiers) advance concepts of C about various storage on compiler register storage.
programming. classes.
L1: Introduction and
difference between
various storage class
specifiers.
Lecture 2 Storage Classes(Scope of a T-1 RW-3 Describe about the Learn about the Discussions using int main() {
variable) declaration and different scopes white board. int n; // n is a
implementation of local where a variable can local varible to
and global variables. be declared. main() function
... .. ...
}

void func() {
int n1; // n1 is
local to func()
fucntion
}

An instruction plan is a tentative plan only and a teacher may make some changes in his/her teaching plan. The students are advised to use syllabus for preparation of all examinations. The students are expected to keep themselves
updated on the contemporary issues related to the course. Upto 20% of the questions in any examination/Academic tasks can be asked from such issues even if not explicitly mentioned in the instruction plan.
Week 1 Lecture 3 Storage Classes(Auto) T-1 RW-2 Declaration and Learn about the Live demonstration
R-3 implementation of auto working difference in on compiler
and static variables auto and static
variable.
Storage Classes(Static) T-1 RW-2 Declaration and Learn about the Live demonstration
R-3 implementation of auto working difference in on compiler
and static variables auto and static
variable.
Week 2 Lecture 4 Storage Classes(Extern) T-1 DK-1 Declaration and Learn the difference Live demonstration
R-3 implementation of in global and external on compiler
extern variable. variable.
Lecture 5 Storage Classes(Register) T-1 SW-1 Declaration and Learn about type of Live demonstration
R-1 implementation of variables that can be on compiler
register variables. declared as register
variables.
Lecture 6 Storage Classes(Static T-1 AV-1 Declaration and Learn about the Demonstration A fun example
variables and functions) R-2 implementation of static difference in using white board. could be using a
variables and functions. implementing static water gun on
and non-static holi festival, you
variables. store red colored
water and use it
than you again
fill it with blue
colored water
and use it and
than you fill it
but some other
color etc... for
each time we
don't use a new
water gun.
Week 3 Lecture 7 Storage Classes(Const T-1 VL-1 Declaration and Learn the usage of Demonstration
Qualifier) R-1 Implementation of Const Qualifier using white board.
Const Qualifier
Lecture 8 Pointers(Pointer data type) T-1 OR-1 Need of pointers, Learn how to store Live demonstration Knowing the
declaring and\ address of one on compiler address of your
initialization of pointer variable to another. friend
variables
Pointers(Pointer declaration) T-1 OR-1 Need of pointers, Learn how to store Live demonstration Knowing the
declaring and\ address of one on compiler address of your
initialization of pointer variable to another. friend
variables
Lecture 9 Pointers(Initialization) T-1 OR-1 Reading of values of Learn the difference Live demonstration
pointer variable. between variable and using compiler.
pointer variable.
Week 4 Lecture 10 Pointers(Accessing values T-1 AV-1 Implementation of Learn to read pointer Live Find marks of
using pointers) R-2 address operators, variable. Demonstration student through
indirection operator using compiler. reg.no

An instruction plan is a tentative plan only and a teacher may make some changes in his/her teaching plan. The students are advised to use syllabus for preparation of all examinations. The students are expected to keep themselves
updated on the contemporary issues related to the course. Upto 20% of the questions in any examination/Academic tasks can be asked from such issues even if not explicitly mentioned in the instruction plan.
Week 4 Lecture 11 Pointers(Pointer expressions T-1 RW-1 Implementation of Students will learn to Demonstration
and arithmetic) increment/decrement of work with addresses using audio video
pointer and subtraction of variables and learn
on pointer about pointer
expressions and
pointer arithmetic
Lecture 12 Pointers(Operations on T-1 AV-1 Implementation of Learn about various Live demonstration
Pointers) R-3 addition and subtraction operations on using compiler.
on pointer variable. pointers.
Week 5 Lecture 13 Dynamic Memory T-1 DK-1 Methods used to allocate Learn the difference Demonstration
Management(Dynamic dynamic memory between static and using white board.
Memory Management allocation dynamic memory
functions) allocation
Lecture 14 Dynamic Memory T-1 AV-1 Implementation of Learn the difference Live demonstration
Management(malloc()) Dynamic memory in allocation of using compiler.
allocation functions memory using malloc
such as malloc(), calloc () and calloc()
()

Dynamic Memory T-1 AV-1 Implementation of Learn the difference Live demonstration
Management(calloc()) Dynamic memory in allocation of using compiler.
allocation functions memory using malloc
such as malloc(), calloc () and calloc()
()

Lecture 15 Dynamic Memory T-1 DK-1 Implementation of Learn how dynamic Live demonstration
Management(realloc() and R-2 Dynamic memory memory is on compiler
free()) allocation functions reallocated and free.
realloc and free
Week 6 Lecture 16 Dynamic Memory T-1 RW-1 Pointer as a base address Learn to Live demonstration An example of
Management(Pointers and of an array, getting input work with addresses on compiler students
arrays) and displaying output in of the variables standing for a
an array using pointers. morning prayer
Pointers passed as an in a school with
argument to function a line monitor
pointing to
various students
in the line can
be used as an
example
Lecture 17 Dynamic Memory T-1 SW-1 Pointer as a base address To acquaint the Demonstration
Management(Pointers and R-1 of an array, getting input student about passing using white board.
functions) and displaying output in Pointers as a function
an array using pointers. parameters
Pointers passed as an
argument to function

Lecture 18 Test 1

An instruction plan is a tentative plan only and a teacher may make some changes in his/her teaching plan. The students are advised to use syllabus for preparation of all examinations. The students are expected to keep themselves
updated on the contemporary issues related to the course. Upto 20% of the questions in any examination/Academic tasks can be asked from such issues even if not explicitly mentioned in the instruction plan.
Week 7 Lecture 19 Dynamic Memory T-1 AV-1 Collection of similar Learn the relation of Discussion and List of
Management(Array of R-2 pointer variables, array with the demonstration references
Pointers) operations possible on addresses of the
such variables variables
Dynamic Memory T-1 AV-1 Collection of similar Learn the relation of Discussion and List of
Management(Pointers and R-2 pointer variables, array with the demonstration references
strings) operations possible on addresses of the
such variables variables

SPILL OVER
Week 7 Lecture 20 Spill Over
Lecture 21 Spill Over

MID-TERM
Week 8 Lecture 22 Structures and Unions T-1 RW-1 Introduction to Learn Discussion using An example of
(Structure declaration) structures including the about the importance audio video student where
need of structures, of structures and how name, cgpa and
declaration and to work with them roll number are
initialization of different data
structures types but related
to a student can
be taken as an
example of a
structure
Structures and Unions T-1 RW-1 Introduction to Learn Discussion using An example of
(definition and initialization) structures including the about the importance audio video student where
need of structures, of structures and how name, cgpa and
declaration and to work with them roll number are
initialization of different data
structures types but related
to a student can
be taken as an
example of a
structure
Lecture 23 Structures and Unions R-1 RW-2 Passing a structure Learn Live demonstration
(accessing structures in variable to functions, about passing on compiler
functions) passing individual structure variables to
members of a structure functions as well as
to functions passing individual
structure members to
functions

An instruction plan is a tentative plan only and a teacher may make some changes in his/her teaching plan. The students are advised to use syllabus for preparation of all examinations. The students are expected to keep themselves
updated on the contemporary issues related to the course. Upto 20% of the questions in any examination/Academic tasks can be asked from such issues even if not explicitly mentioned in the instruction plan.
Week 8 Lecture 24 Structures and Unions T-1 RW-3 Structure and pointer, To acquaint the Live
(Structures and Pointers) R-3 Accessing a structure student about use of Demonstration
member with a pointer, structures with using compiler
Having pointer variables pointers
in a structure, A few
examples based on
accessing the members
using pointers

Structures and Unions(array T-1 RW-3 Structure and pointer, To acquaint the Live
of structures) R-3 Accessing a structure student about use of Demonstration
member with a pointer, structures with using compiler
Having pointer variables pointers
in a structure, A few
examples based on
accessing the members
using pointers

Week 9 Lecture 25 Structures and Unions T-1 DK-1 Structure with in Learn to use different Demonstration
(nested structures) structure accessibility, a data types in a single using compiler
few examples of block
structure within
structure
Lecture 26 Structures and Unions(Self- T-1 DK-1 Structure and pointer, To acquaint the Live demonstration
referential structures) Accessing a structure student about use of on compiler
member with a pointer, structures with
Having pointer variables pointers
in a structure
Lecture 27 Structures and Unions R-1 AV-1 Introduction to Learn the difference Live demonstration
(Unions) unions, difference from between structure and on compiler
structures, accessing union.
union members
Week 10 Lecture 28 File Structures(Categories of T-1 RW-1 Description of file Students will learn to Peer to Peer A real life file
files) pointer, categories of use files discussion folder which is
files, text and binary used to store A4
files size sheets can
be used as an
example
File Structures(Opening and T-1 RW-1 Description of file Students will learn to Peer to Peer A real life file
closing files) pointer, categories of use files discussion folder which is
files, text and binary used to store A4
files size sheets can
be used as an
example
Lecture 29 File Structures(file opening T-1 RW-1 Implementation of Learn the different Live demonstration
modes) R-2 read,write and append operations on files. using compiler
operations.
Lecture 30 Test 2

An instruction plan is a tentative plan only and a teacher may make some changes in his/her teaching plan. The students are advised to use syllabus for preparation of all examinations. The students are expected to keep themselves
updated on the contemporary issues related to the course. Upto 20% of the questions in any examination/Academic tasks can be asked from such issues even if not explicitly mentioned in the instruction plan.
Week 11 Lecture 31 File Structures(Text and T-1 RW-1 Description of file Students will learn to Peer to Peer A real life file
binary files) pointer, categories of use files discussion folder which is
files, text and binary used to store A4
files size sheets can
be used as an
example
Lecture 32 File Structures(Reading and T-1 VL-1 Various programs To acquaint the Live demonstration
writing in files) R-2 involving reading from student about the file on compiler
and writing to files with reading and writing
the help of fgetc, fputc, operations
fgetw, fputw, fgets,
fputs functions.
Lecture 33 File Structures(Appending in T-1 DK-1 Adding data to existing Learn the different To acquaint the
files) file between write and student about
append modes changing the
existing
data in files
Week 12 Lecture 34 File Structures(Additional T-1 RW-1 Creating header files in Students will be able Demonstration and
Features of C) R-2 C. Few programs must to create their own programming
be implemented as header files practice
examples
File Structures(Creating T-1 RW-1 Creating header files in Students will be able Demonstration and
Header files) R-2 C. Few programs must to create their own programming
be implemented as header files practice
examples
Lecture 35 File Structures(Preprocessor T-1 RW-1 Using macros in C Learn to create Demonstration and
Directives and Macros.) programs, Students macros using C programming
should be aware of practice
preprocessor directives
such as include, define
Lecture 36 Graphics(The header file T-1 SW-1 Implementation of Learn the use of Demonstration and drawing of
graphics.h) graphics.h to draw graphics.h in c programming Olympic symbol
various shapes program. practice using c
programming.
Week 13 Lecture 37 Graphics(use of Initgraph T-1 VL-1 Initialization of Learn the path where Demonstration and
and Detectgraph) R-2 DK-1 graphics system by graphic drivers are programming
loading a graphics driver stored. practice
Lecture 38 Test 3
Lecture 39 Graphics(Draw a Line) R-2 RW-2 Implementation of in- Learn the different Demonstration and
built functions used for methods of drawing programming
drawing line and circle. basic shapes. practice
Graphics(draw a Circle) R-2 RW-2 Implementation of in- Learn the different Demonstration and
built functions used for methods of drawing programming
drawing line and circle. basic shapes. practice

An instruction plan is a tentative plan only and a teacher may make some changes in his/her teaching plan. The students are advised to use syllabus for preparation of all examinations. The students are expected to keep themselves
updated on the contemporary issues related to the course. Upto 20% of the questions in any examination/Academic tasks can be asked from such issues even if not explicitly mentioned in the instruction plan.
Week 14 Lecture 40 Graphics(Draw an Ellipse T-1 DK-1 Understand and Learn the difference Demonstration
using various built-in implement various in methods used to using white board.
graphics functions) methods used to draw draw circle and
ellipse. ellipse.

SPILL OVER
Week 14 Lecture 41 Spill Over
Lecture 42 Spill Over
Week 15 Lecture 43 Spill Over
Lecture 44 Spill Over
Lecture 45 Spill Over

Scheme for CA:

CA Category of this Course Code is:A0203 (2 best out of 3)

Component Weightage
Test 50
Test 50
Test 50

Details of Academic Task(s)

Academic Task Objective Detail of Academic Task Nature of Academic Academic Task Marks Allottment /
Task Mode submission
(group/individuals) Week
Test 1 To evaluate the Storage Classes : Storage class specifiers, Scope of a Individual Offline 30 5 / 6
writing skill of variable, Auto, Static, Extern,Register, Static variables and
students on the functions, Const Qualifier
basis of class Pointers : Pointer data type, Pointer declaration, Initialization,,
learning Accessing values using pointers, Pointer expressions and
Arithmetic, Operations on Pointers.
Test 2 To ensure Dynamic Memory Management : Dynamic Memory Individual Offline 30 9 / 10
understanding of Management functions, malloc(), calloc(), realloc() and free(),
the concepts and Pointers and arrays, Pointers and functions, Array ofPointers,
check the Pointers and strings,Structures and Unions : Structure
student's progress declaration, definition and initialization,accessing structures in
and his functions, Structures and Pointers, array of structures, nested
performance on structures, Self-referential structures, Unions
individual basis

An instruction plan is a tentative plan only and a teacher may make some changes in his/her teaching plan. The students are advised to use syllabus for preparation of all examinations. The students are expected to keep themselves
updated on the contemporary issues related to the course. Upto 20% of the questions in any examination/Academic tasks can be asked from such issues even if not explicitly mentioned in the instruction plan.
Test 3 To evaluate the File Structures : Categories of files, Opening and closing files, Individual Offline 30 12 / 13
writing skill of file opening modes,Text and binary files, Reading and writing
students on the in files, Appending in files, Additional Features of C, Creating
basis of class Header files, Preprocessor Directives and Macros.Graphics :
learning The header file graphics.h, use of Initgraph and Detectgraph,
Draw a Line

An instruction plan is a tentative plan only and a teacher may make some changes in his/her teaching plan. The students are advised to use syllabus for preparation of all examinations. The students are expected to keep themselves
updated on the contemporary issues related to the course. Upto 20% of the questions in any examination/Academic tasks can be asked from such issues even if not explicitly mentioned in the instruction plan.

Vous aimerez peut-être aussi