Cs 205 Prog in C Syl
Cs 205 Prog in C Syl
Cs 205 Prog in C Syl
CS-205
Course Title Programming in C Course Code
Semester II Course Group Core
Teaching Scheme in
4:1:0 Credits 3
Periods (L:T:P)
Total Contact
Methodology Lecture +Tutorial 75
Periods
CIE 60 Marks SEE 40 Marks
Prerequisites
Knowledge of basic mathematics and IT skills.
Course Outcome
Upon completion of the course the students shall be able to:
Course Outcome
CO1 Write Algorithms and draw flow charts for given problems
COURSE CONTENTS:
Arrays – definition, declaration and initialization of One Dimensional -Array -Accessing the
elements in the Array - ‘accessing array out of bounds’ problem - Reordering an array in ascending
order – average of elements in an array – largest element in an array - Declaration and initialization
of two Dimensional Arrays - sample programs on matrix addition and matrix multiplication,
transpose- Strings – Definition, Declaration and initialization of String variables - Reading of
strings from terminal - writing strings to screen - String handling functions with sample programs
Function – Definition - Need for user defined functions - Advantages of functions - elements of
function - Return values and their types - function prototype - function call - function definition –
Scope, visibility and lifetime of variables in functions- Local and External variables -Global
variable-Functions with no arguments and no return values - functions with arguments with no
return values - functions with arguments with return values - functions with no arguments with
return values - Recursion - sample programs on recursion - passing arrays to functions .
6. Structures and Unions and File Management
Duration: 14 Periods
Structures and Unions Structure- Definition - Creating a structure - Declaring structure variables -
Accessing the structure members - Concept of structure assignment - Find size of a structure -
Nested structure - Structure as function arguments - Array of structures - Structure containing arrays
- array of structures containing arrays - Union and illustrate usage of a union – difference between
Structures and Union.
Files management File – Definition - Declare file pointer to a file - file opening modes - Concept of
closing of a file - Input / Output operations on a file - Random access to files.
REFERENCE BOOKS
1. Let Us C -- Yeshwanth Kanetkar BPB Publications
2. Programming in ANSI C -- E. Balaguruswamy Tata McGrawHill
3. Programming with C -- Gottfried Schaum’outline
4. C The complete Reference -- Schildt Tata McGraw Hill
2.1 Describe character set, C Tokens-Keywords, Variables, Identifiers, Constants and Variables.
2.2 Define Data type. Classify data types and explain with examples
2.3 Explain declaration of a variable and assigning values to variables
2.4 Define operator.
2.5 Classify and Explain operators with examples
2.6 Describe precedence and associativity of operators
2.7 Define expression
2.8 Describe evaluation of Arithmetic, Relational and logical expressions
2.9 Illustrate type conversion techniques.
2.10 Define and List Pre-processor directives
2.11 Discuss #include and #define Pre-processor directives.
2.12 Define Header file and discuss stdio.h, conio.h, math.h, string.h Header files.
2.13 Illustrate getchar(),putchar(),scanf(),printf() with programs.
Files management
Student activity like mini-project, surveys, quizzes, etc. should be done in group of 5-10students.
1. Each group should do any one of the following type of activity or any other similar activity related to
the course with prior approval from the course coordinator and programme coordinator concerned.
2. Each group should conduct different activity and no repetition should occur.
3. Explore and analyse topics to improve the level of creativity and analytical skill by taking Quiz/
tests/ assignments. Documents have to be maintained as a record.
4. Create a power point presentation on the topic relevant to course or advanced topic as an extension
to the course to improve the communication skills. Documents have to be maintained as a record.
5. Visit different sites relevant to topics. Listen to the lectures and submit a handwritten report
6. Coding competitions
1. http://www.tutorialspoint.com/cprogramming/
2. http://www.indiabix.com/online-test/c-programming-test/
3. https://www.w3schools.in/c-tutorial/
4. https://nptel.ac.in/courses/106/104/106104128/
5. https://onlinecourses.nptel.ac.in/noc19_cs42/preview
Linked Teaching
Course Outcome CL
PO Hours
Total Sessions 75
MID SEM – I Exam
5(a) 7(a)
1 Unit-I 1, 2
5(b) 7(b)
6(a) 8(a)
2 Unit-II 3, 4
6(b) 8(b)
Total Questions 4 4 4
MID SEM – II Exam
5(a) 7(a)
1 Unit-I 1, 2
5(b) 7(b)
6(a) 8(a)
2 Unit-II 3, 4
6(b) 8(b)
Total Questions 4 4 4
Semester End Examination
1 Unit-I
1 9(a) 13(a)
2 Unit-II
3 Unit-III
2 10(a) 14(a)
4 Unit-IV
4 9(b) 13(b)
5 Unit-V 5,6 11(a) 15(a)
11(b) 15(b)
3
10(b) 14(b)
6 Unit-VI 7,8 11(a) 16(a)
11(b) 16(b)
Total Questions 8 8 8
PART-C MARKS: 2 X
5=10
10. b) Write any three differences between structure and union statements.
11. a) Explain elements of function in C.
(OR)
11. b) Write any three differences between local variable and global variable statements.
12. a)Explain various modes to open a file.
(OR)
12. b) Explain how to access structure members.
PART-C
NOTE: 1. Answer any one question from 13, 14, 15 and 16 MARKS: 4 X 5=20
2. Each question carries five marks.
13. a) Draw a flowchart to find biggest of three numbers.
(OR)
13. b)Write a C program to illustrate functions without arguments and without return values.
14. a) Write a C program to find the multiplication of two matrices.
(OR)
15. b) Write a C program to illustrate functions with arguments and with return values.
16. a) Write a C program to implement nested structures.
(OR)
16. b) Write a C program to implement array of structures.