How To Exam?

a knowledge trading engine...


University of Pune 2011-1st Sem Master of Computer Management (M.C.M) ; : MCM( ) - ; Title of the : ‘C’ Programming (New 2008 Pattern) - Question Paper

Wednesday, 24 April 2013 07:30Web

M. C. M. ( Semester - I ) exam - 2011

'C' PROGRAMMING (New 2008 Pattern)

Time : three Hours
Max. Marks : 70


Total No. of Questions : 7] [Total No. of Printed Pages : 3

 

[3977]-101

 

M. C. M. ( Semester - I ) Examination - 2011

C PROGRAMMING

(New 2008 Pattern)

 

Time : 3 Hours] [Max. Marks : 70

 

Instructions :

(1) Q. No. 1 is compulsory.

(2) Solve any five from the remaining.

(3) Figures to the right indicate full marks.

 

Q.1) (A) Trace output and justify answer. Assume suitable header files are included : [12]

(a) main( )

{

int x, y, z,

x = y = z = 1;

clrscr( );

z = ++ x && ++ y || ++ z;

printf(%d %d %d, x,y,z);

}

 

(b) main( )

int a = 3, b = 4, c = 2;

printf(\n);

a = b > c + 1;

b = a < c;

printf(%d %d %d, a,b,c);

 

(c) main( )

{ int x;

for(x = 0; x <=5; x++)

{ switch(x)

{

case 2 : printf(A);

continue;

case 3 : break;

case 4 :

case 5 : printf(BB);

break;

default : printf(C);

}

}

}

 

 

(d) main( )

{ int r, *p, N[] = {1, 3, 2, 8, 3, 7, 4, 6, 5};

p = N;

for(r = 7; r > = 2; r -= 2)

printf(%d, p[r]);

}

 

(B) Explain the following : [08]

(a) String functions

(b) Pointers

 

Q.2) Write a function which accepts 10 integers and returns highest number. [10]

 

Q.3) Write a function which accepts a string and converts alternate characters in upper case and lower case. [10]

 

Q.4) Write a program to accept two 3 3 matrices and print addition of them. [10]

 

Q.5) Accept information of 50 items in an array of structure with fields item no, name and stock. Print name of the items having stock > 1000. [10]

 

Q.6) Write a program to copy contents of aaa.txt to xyz.txt. [10]

 

Q.7) Print the following pattern : [10]

1

1 2

1 2 3

1 2 3 4

 

 

 

_______________

 

[3977]-101/3


( 1 Vote )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER University of Pune 2011-1st Sem Master of Computer Management (M.C.M) ; : MCM( ) - ; Title of the : ‘C’ Programming (New 2008 Pattern) - Question Paper