DSEC/ AIDS,CSE/I/II
LABORATORY COURSE PLAN
COURSE– INFORMATION:
LAB COURSE TITLE PROGRAMMING IN C LABORATORY
LAB COURSE CODE U23CSP21
LECTURE TUTORIAL PRACTICAL CREDIT
LAB COURSE
STRUCTURE
0 0 4 2
ACADEMIC
REGULATION BRANCH YEAR& SEC SEMESTER
YEAR
CSE,AIDS I& B,A II 2024-2025
COURSE INCHARGE Ms.A.KALPANA
SYLLABUS
COURSE OBJECTIVE:
The student should be made to:
The main learning objective of this course is to prepare the students for:
1. To familiarise with C programming constructs.
2. To develop programs in C using basic constructs.
3. To develop programs in C using arrays.
4. To develop applications in C using strings, pointers, functions.
5. To develop applications in C using structures.
6. To develop applications in C using file processing
LIST OF EXPERIMENTS
1. I/O statements, operators, expressions
2. Decision-making constructs: if-else, goto, switch-case, break-continue
3. Loops: for, while, do-while
4. Arrays: 1D and 2D, Multi-dimensional arrays, traversal
5. Strings: operations
6. Functions: call, return, passing parameters by (value, reference), passing arrays to function.
7. Recursion.
8. Pointers: Pointers to functions, Arrays, Strings, Pointers to Pointers, Array of Pointers.
9. Structures: Nested Structures, Pointers to Structures, Arrays of Structures and Unions.
10. Files: reading and writing, File pointers, file operations, random access, processor
directives.
TOTAL: 60 PERIODS
EXP. NAME OF THE EXPERIMENTS NO. OF CUMULATIVE
U23CSP21 - PROGRAMMING IN C LABORATORY
DSEC/ AIDS,CSE/I/II
NO. PERIODS PERIODS
CYCLE I
1 I/O statements, operators, expressions 4 4
Decision-making constructs: if-else, goto, switch-case,
2 8 12
break-continue
3 Loops: for, while, do-while 8 20
Arrays: 1D and 2D, Multi-dimensional arrays, traversal
4 8 28
Strings: operations
CYCLE II
Functions: call, return, passing parameters by (value,
6 reference), passing arrays to function. 8 36
Recursion.
Pointers: Pointers to functions, Arrays, Strings, Pointers
7 8 44
to Pointers, Array of Pointers.
Structures: Nested Structures, Pointers to Structures,
8 Arrays of Structures and Unions. 8 52
Files: reading and writing, File pointers, file operations,
9 8 60
random access, processor directives.
SOFTWARE: Dev C / Eclipse CDT / Code Blocks / CodeLite / equivalent open source IDE
HARDWARE: Standalone desktops – 60 Nos.
COURSE OUTCOME
At the end of the course, the student should be able to:
CO1 : Demonstrate knowledge on C programming constructs.
CO2 : Develop programs in C using basic constructs
CO3 : Construct programs in C using arrays.
CO4 : Develop applications in C using strings, pointers, functions
CO5: Build applications in C using structures.
CO6: Develop applications in C using file processing
CO-PO mapping:
CO PO1 PO 2 PO 3 PO 4 PO 5 PO 6 PO 7 PO 8 PO9 PO10 PO11 PO12
CO1 2 1 1 1 - - - - - - - -
CO2 2 1 1 1 2 - - - - - - -
CO3 3 2 2 1 3 - - - - - - -
CO4 3 2 2 1 3 - - - - - - -
CO5 2 2 1 1 2 - - - - - - -
CO6 2 2 1 1 2 - - - - - - -
MODEL LAB DETAILS
MODE OF
BATCH REGISTER NO. LAB DATE TIMING
CONDUCT
I OFFLINE
U23CSP21 - PROGRAMMING IN C LABORATORY
DSEC/ AIDS,CSE/I/II
LIST OF QUESTIONS
1. Write a C program to take input of name, rollno and marks obtained by a student in 4 subjects of
100 marks each and display the name, rollno with percentage score secured.
2. Write a C program to input two numbers and display the maximum number.
3. Write a C program to find whether a character is consonant or vowel using switch statement.
4. Write a C program to print positive integers from 1 to 10.
5. Write a C program to check whether a number is Palindrome or not.
6. Write a C program to generate Fibonacci series.
7. Write a C program to insert 5 elements into an array and print the elements of the array.
8. Write a C Program to reverse the array elements in C Programming
9. Write a C program to concatenate two strings
10. Write a C program to compare two strings without using string library functions.
11. Write a C program to generate Fibonacci series using recursive function
12. Write a C program to find power of any number using recursion.
13. Write a C program to add, subtract, multiply and divide two integers using user defined type
function
VIVA QUESTIONS
1) What do you mean by Hardware and Software?
2) Mention the main components of a computer and their functions.
3) What is Operating System (OS)?
4) What is Algorithms?
5) What is Flowchart?
6) Name the four basic data types in “C” language?
7) Describe at least five different format specifiers?
8) Define and explain scanf () function?
9) Define and explain printf () function?
10) What are the maximum and minimum possible ranges of values for long and short type?
11) What is preprocessor?
12) What exactly is a ‘variable scope’, ‘local variables’ and ‘global variables’?
13) What are signed values?
14) Define reserved words.
15) What is the purpose of type declaration in C?
Prepared By Verified By
KALPANA A, AP/MCA HOD/MCA
Approved By
Principal
U23CSP21 - PROGRAMMING IN C LABORATORY