7.C Programming Lab
7.C Programming Lab
Programme Outcomes
Course
1 2 3 4 5 6 7 8 9 10
C- Programming Lab 3 3 3 3 3 -- -- -- -- 3
Course Contents
4 Functions
∑ Concept, pros and cons, classification, creation and application of
functions
∑ Parameter passing: Pass by value and address methods 05
∑ Library and user-defined functions
∑ Recursive and non-recursive functions
∑ Data visibility and longevity
5 User-defined data-type
∑ Definition, declaration, initialization of members and variables of
structures and unions 06
∑ Distinction between structures and unions
∑ Accessing of members of structures and unions
6 Macros
Definition, classification and application of macros in program
03
development
Practice Exercises
1. Write algorithm, flow-chart and program for the following problems (Assume
relevant data if necessary and right units. Search and use library functions wherever
possible).
1. Display your country name and beep at the end.
2. Display the following text:
C was developed by “Dennis M Ritchie” in 1972
3. Compute the area and circumference of a circle given the radius
4. Compute simple interest given the interest rate, principal and duration
Sl. Duration
No.
Graded Exercises (Hr.)
Given the resistance and standard tolerance, generate the color bands of
1 3
the resistor
2 Given the total marks, generate the result-class of a student 3
1. I.A. test shall be conducted as per SEE scheme of valuation. However obtained marks shall be reduced to 10
marks. Average marks of two tests shall be rounded off to the next higher digit.
2. Rubrics to be devised appropriately by the concerned faculty to assess Student activities.
*Students should do activity as per the list of suggested activities/ similar activities with prior approval of the teacher.
Activity process must be initiated well in advance so that it can be completed well before the end of the term.
@
Record Writing: Average of marks allotted for each experiment; fractional part of average shall be rounded-off to
next higher integer.
(ii) Model of rubrics for assessing student activity (for every student)
Scale
Marks
Dimension 1 2 3 4 5
(Example)
Unsatisfactory Developing Satisfactory Good Exemplary
Collects Collects Collects a
1. Research Does not Collects more
very limited basic great deals of
and collect information,
information, information, information, 3
gathering information most refer to
some relate most refer to all refer to the
information relate to topic the topic
to topic the topic topic
Does not
Performs all
2. Full-fills perform any Performs Performs Performs
duties of
team roles duties assigned very little nearly all almost all 2
assigned team
and duties to the team duties duties duties
roles
role
Usually
Rarely does Always does Always does
does the
3. Shares Always relies the assigned the assigned the assigned
assigned
work on others to do work, often work, rarely work, without 5
work, rarely
equality the work needs needs needing
needs
reminding reminding. reminding
reminding
Usually does
Is always most of the Listens, but Listens and
4. Listen to Listens and
talking, never talking, sometimes talks a little
other team talks a fare 3
allows anyone rarely allows talk too more than
mates amount
to else to speak others to much, needed.
speak
Total marks ceil(13/4)= 4
(iii) CIE/IA Tests (10 Marks)
Two tests shall be conducted in accordance with SEE pattern and the marks shall be scaled down to 10.
Average of two tests, rounding-off any fractional part thereof to next higher integer, shall be
considered for CIE/IA.
1. Write a C program that computes resistance of any resistor given its colour codes Red-
Yellow-Blue and tolerance code Gold.
2. Write a C program to generate result-class of a set of students given their individual total
marks
Sl No Reg. No. Name of the student Marks obtained out of 600 Result
1 ABC 456 ?
2 ABD 232 ?
3 XYZ 345 ?
4 MNO 577 ?
5 PXY 365 ?
End