How To Exam?

a knowledge trading engine...


Maharashtra State Board of Technical Education 2012-2nd Sem Diploma Computer Engineering Test – II for GroupSubject Programming in ‘C’ (12027) - Question Paper

Sunday, 05 May 2013 09:00Web

E – SCHEME
Sample Test Paper - II
Course Name : Computer Engineering Group
Course Code : CO/CM/IF/CD
Semester : Second
Subject Title : Programming in 'C'(12027)
Time : one Hour Marks: 25


Instructions:
All ques. are compulsory.
Figures to the right indicate full marks.
Use of not-programmable calculator is permissible.


Q. one Attempt Any 3 [Mark 09]
a) What is local and global variable?
b) Write declaration for 1 dimensional integer array with 100 elements.
c) provide syntax for structure in 'C'.
d) What would be the output of the subsequent program?
main ()
{
int i, *ptr;
i = 5;
ptr = &i;
printf("%d", *ptr);
*ptr++;
printf("%d", *ptr);
++*ptr;
printf("%d", *ptr);
*++ptr;
printf("%d", *ptr);
}



Q.2 Attempt Any TWO. [Mark 08]
a) Write a 'C' program to accept any five float numbers in array and display it.
b) discuss need of function in 'C' programming.
c) Write a 'C' program function to concatenate 2 strings, without using inbuilt
function.


Q.3 Attempt Any TWO. [Mark 08]
a) Write a 'C' program to compute factorial of a number using recursion of function.
b) discuss with representation two-dimensional array.
c) What is use of return statement in function? What is function prototype?




( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Maharashtra State Board of Technical Education 2012-2nd Sem Diploma Computer Engineering Test – II for GroupSubject Programming in ‘C’ (12027) - Question Paper