How To Exam?

a knowledge trading engine...


Post Graduate Diploma-Post Graduate Diploma Business Management 4th Sem ‘C’ PROGRAMMING(University of Pune, Pune-2013)

Tuesday, 04 November 2014 06:59Nitha

                                 P.G.D.B.M. (Semester – IV) Examination 2013
                                                       ‘C’ PROGRAMMING
                                         403 : Specialization – II (C) (Computer)
                                                       (New) (2008 Pattern)

Time : 3 Hours                                                                               Max. Marks : 70

Instructions :

1) Question No. 1 is compulsory.

2) Solve any five out of the remaining questions.

 

1. A) Trace output and justify answer : 5
1) void main ( )
{
int i = 6720, j = 4;
while ((i % j) = = 0)
{
i = i / j;
j = j + 1;
}
printf (“%d”, j);
}
2) void main ( )
{
int i ;
switch (i)
{
case ‘h’ :
case ‘g’ : printf (“K”);
break;
default : printf (“bad”);
}
}
Seat
No.
P.T.O.[4387] – 409 
B) Write a program to display the sum of digits of any given number. 5
C) Write short note (any two) : 10
1) Operators in ‘C’.
2) Structures in ‘C’.
3) Storage classes.

 

2. Write a program to print the following pattern : 10
A
a b
AB C
ab cd
AB CD E

 

3. Write a program to accept a string from the user and display the length of the string (Do not use built-in function). 10

 

4. Write a program to accept a 4 × 4 matrix and display the sum of each row. 10

 

5. Write a program to accept 10 numbers in an array and display the array in descending order. 10

 

6. Consider the structure 10

struct emp {

char name [30] ;
int age ;
int sal;
}

Write a program to accept 10 records and sort them by age and display.

 

7. Write a program to copy the contents of file 1 to file 2 skipping all blank spaces from file 1. 1


( 0 Votes )

Add comment


Security code
Refresh

Earning:  ₹ 7.05/-
You are here: PAPER Post Graduate Diploma-Post Graduate Diploma Business Management 4th Sem ‘C’ PROGRAMMING(University of Pune, Pune-2013)