Sie sind auf Seite 1von 6

CO1

CO2
CO3
CO4
CO5
CO6

Describe different programming concepts like data types, variables, data structures,
operators, expressions, loops and functions.
Design and write the algorithms, flow charts for solving problems.
Design and build programs involving conditional statements, loops and functions.
Design and build programs using functions.
Explain with example the use of dynamic memory using pointers.
Explain the basic data structures like Arrays, structures, unions with sample use.

PROGRAMMING IN C
Course code: 16PIC13/16PIC23

Credits: 03+02=05

L: P: T: S: 3: 2: 0: 0

CIE Marks: 50+50

Exam Hours: 03

SEE Marks: 50+50

Course Outcomes: At the end of the course, student will be able to:

Mapping of Course outcomes to Program outcomes:

CO1
CO2
CO3
CO4
CO5
CO6

Modul
e

PO1

PO2

PO3

PO4

PO5

2
1
1
2
1
1

2
2
2
1
3
-

3
2
2
3
-

2
1
1
2
-

PO

PO

PO

PO

PO1

6
1
-

7
-

8
1
1
1
2
2

9
1
2
1
2
1
2

0
1

Contents of the Module

PO11 PO12
1
1
-

1
1
1
1

Hours

COs

Introduction to C Language: Introduction to C language, Algorithm &


Flowchart, Structure of C program, C Tokens and Data types.
Operators and Expression: Types Of Operators: Arithmetic Operator,
Logical Operator, Relational Operator, Conditional or Ternary Operator,
Bitwise Operator, Increment & Decrement Operator, Assignment

08

Operator, Unary Operator, Special Operator, Type casting and Type


1

CO1
CO2

conversion, Operator Precedence and Associativity, Evaluation of


Expression.
List of Experiments:
1. Design and develop a C program for the following:
a) To read a year as an input and find whether it is leap year or not.

03

(Also consider end of the centuries).


b) To find the largest of three numbers using Ternary Operator.
Formatted & Unformatted Input & Output statements: printf ( ),
scanf( ), getchar( ), gets( ), getch( ), putch( ), puts( ), putchar( ).
Branching and Looping: Two way selection: if, if-else, nested if-else,

08

switch statement, goto statement, Loops: for, while-do, do-while, break


and continue.
List of Experiments:
2. Design and develop a C program that accepts three coefficients (a, b,
and c) of a Quadratic equation (ax2 +bx+c=0) as input and compute
2

all possible roots and print the possible roots for a given set of

CO3

coefficients. Also print the message in case of Zero valued


coefficient/s.
3. Design and develop a C program to find the reverse of an integer
number NUM and check whether it is PALINDROME or NOT.
Implement a C program for the developed algorithm that takes an
integer number as input and output the reverse of the same with
suitable messages. Ex: Num: 1234, Reverse: 4321, Not a Palindrome.

06

Functions: Introduction to functions, function protype,Types of


Functions, Function Definition, Function Call, Function Declaration,
Categories of Functions, Actual & Formal parameters, call by value & call
by reference.

08

Recursion: Definition, general functioning of recursive functions,


3

programs using recursive functions: Fibonacci series, factorial of given

CO4

number.
List of Experiments:
4. Design and develop a C function isprime (num) that accepts an integer
argument and returns 1 if the argument is prime, 0 otherwise. Write a

03

C program that invokes this function to generate prime numbers


4

between the given ranges.


Arrays and Strings: Introduction, Declaration & Initialization of 1D

CO6

array, Reading and printing of arrays 1 D array ,Bubble sort, Linear &
Binary search, Reading and printing of 2D array, programs on Matrix
operations: addition, subtraction, multiplication, transpose.

08

Introduction to Strings: Declaration & Initialization of String Handling


functions: strlen( ), strcpy( ), strcat( ), strrev( ), strcmp( ), strncmp(),
strncpy(), strlwr( ) , strupr( ).
List of Experiments:
5. Design and develop a C program that reads N integer numbers and
arrange them in ascending order using Bubble Sort.
6. Design and develop a C program that reads N integer numbers and
search a key element using Binary searching Technique.
7. Design and develop a C program that reads two matrices A (m x n)
and B (p x q) and Compute product of matrices A and B. Read matrix
A and matrix B in row major order. Print both the input matrices and
resultant matrix appropriately.
8. Design and develop a C program to implement the following

12

operations without using library functions. Display the results after


every operation.
a. Read STRING s1 = Dayananda
b. Read STRING s2 = Sagar
c. Output the concatenated string (s1+s2) STIRNG s3 =
Dayananda Sagar
Structures: Introduction to Structures, declaration and Initialization of
structures, accessing members of structure, Array of structure, passing
structure to function.

08

Pointers: Introduction to Pointers, Declaration of pointers, Initialization


of pointer, pointer arithmetic, Pointer to an array, functions using pointers.
List of Experiments:
9. Design and develop a C program to create a structure called Employee
5

CO5

to maintain a record of details using an array of structures with four


fields (Emp_name, Emp_id, Emp_age and Emp_sal). Assume
appropriate data type for each field. Print the Employee details in
Tabular Format.
10. Write a C program using pointers to compute the sum, mean and
standard deviation of all elements stored in an array of n real numbers.

Self study component:


UNIT 1: Study of Escape sequences and Types of Constants.

06

UNIT 2: Study of exit function and explore the header files: math.h, stdio.h, conio.h, stdlib.h
UNIT 3: Demonstration of local & Global scope of variables.
UNIT 4: Implementation of string handling functions without using string library functions.
UNIT 5: Study of Unions, differences between structure & Unions. Passing structure to function
with using pointers.
Text Books:
1. Behrouz A. Forouzan, Richard F. Gilberg, Computer Science: A Structured
Programming Approach Using C, (3rd Edition).
2. Somashekara , Problem solving with C , PHI Learning, 2015.
Reference Books:
1. Brian W. Kernighan and Dennis M. Ritchie, The C Programming Language, 2nd
Edition, PHI, 2012.
2. Vikas Gupta, Computer Concepts and C Programming, Dreamtech Press 2013.
3. R. S.Bichkar, Programming with C, University Press, 2012.
4. V. Rajaraman, Computer Programming in C, PHI, 2013.
5. E .Balagurusamy, Programming in ANSI C . 4th Edition.
6. Jacqueline Jones & Keith Harrow, Problem Solving with C, 1st Edition, Pearson 2011.

Assessment Pattern:
CIE Continuous Internal Evaluation Theory (50 Marks)
Blooms Category
Marks (Out of 50)
Remember
Understand
Apply
Analyze
Evaluate
Create

Tests
30
10
10
10

Assignments
10

AAT1
05

05
05

01
02
02

AAT2
05
01
01
01
02

*AAT Alternate Assessment Tool

CIE Continuous Internal Evaluation Lab (50 Marks)


Blooms Category

Performance

Internal Test

Marks (Out of 50)


Remember
Understand
Apply
Analyze
Evaluate
Create

(Day To Day)
25
05
05
05
05
05

25
05
10
05
05

SEE Semester End Examination Theory (50 Marks)


Blooms Category
Remember
Understand
Apply
Analyze
Evaluate
Create

Marks
Theory(50)
10
20
10
10

SEE Semester End Examination Lab (50 Marks)


Blooms Category
Remember
Understand
Apply
Analyze
Evaluate
Create

Marks
Theory(50)
10
10
15
10
05

Das könnte Ihnen auch gefallen