Friday, December 18, 2015

‘C’ PROGRAMMING,University Of Pune Question Paper,2010 Question Paper,P. G. D. C. A. (Semester - I)

University Of Pune Question Paper
P. G. D. C. A. (Semester - I) Examination - 2010
‘C’ PROGRAMMING
(2008 Pattern)
Time : 3 Hours] [Max. Marks : 70
Instruction :
Assume appropriate header files are included.
Q.1) (A) What will be the output ? Give reasons : (Any Three) [12]
(a) void main( )
{
int x = 3, y = 4, z = 4;
printf(“ans = %d”, (z > = y > = x ? 100 : 200));
}
(b) void main( )
{
int a = 3, b = 4, c = 2;
a = b >> c;
b = a << c;
c = c << a >> b;
printf(“a = %d\t b = %d\tc = %d”, a,b,c);
}
[3886]-102 1 P.T.O.
(c) void main( )
{
int x[25];
x[0] = 100;
x[24] = 400;
printf(“\n%d\t%d”, *x,* (x + 24) + * (x + 0));
}
(d) void main( )
{
int i = 5, j = 10;
abc(i, j);
printf(“\n i = %d\t j = %d”, i, j);
}
void abc(int i, int j)
{
i = i + j;
j = i – j;
i = i – j;
return;
}
(B) (a) Explain functions used for Dynamic Memory
Allocation. [04]
(b) Enlist differences between Structure and a Union. [04]
[3886]-102 2 Contd.
[3886]-102/3
Q.2) Solve any five : [50]
(a) Write a program to calculate sum of digits of a number till it
reduces to a single digit number i.e. if the number is 987, output
987 24 6.
(b) Write a program to print the following pattern :
a bcde
a ceg
a bc
a c
a
(c) Write a program to accept a m × n matrix and find a largest
number in a particular row and smallest number in a particular
column.
(d) Write a recursive function to print sum of digits of a number.
(e) Write a ‘C’ program to copy one string into another string without
using standard function.
(f) Write a ‘C’ program to create student structure having fields
roll_no, stud name, mark1, mark2, mark3. Calculate total and
average of marks and arrange records in descending order of
marks.
(g) Write a ‘C’ program to append contents of one file at the end
of another file.
Share This
Previous Post
Next Post

B.E Civil Engineer Graduated from Government College of Engineering Tirunelveli in the year 2016. She has developed this website for the welfare of students community not only for students under Anna University Chennai, but for all universities located in India. That's why her website is named as www.IndianUniversityQuestionPapers.com . If you don't find any study materials that you are looking for, you may intimate her through contact page of this website to know her so that it will be useful for providing them as early as possible. You can also share your own study materials and it can be published in this website after verification and reviewing. Thank you!

0 comments:

Pen down your valuable important comments below