MSBTE 2nd Semester Programming in C Sample Question Paper

Course Name : Computer Engineering Group
Course Code : CO/CM/IF/CD
Semester : Second
Subject Title : Programming in ‘C’
Time : 1 Hour
Marks: 25

Instructions:
1. All Questions are compulsory.
2. Figures to the right indicate full marks.
3. Use of not-programmable calculator is permissible.
Q.1 Attempt Any THREE. ( 3 x 3 = 09)
a) Give the syntax of do-while statement.
b) What is constant? Give any 2 examples.
c) Enlist different format specifiers.
d) Find out errors in the following program component and justify the same:

float i;
int p = 0;
for (i=0; i = 10; i += 2)
{
p = i * 2 ;
printf(%d ”, i, p) ;
}

Q.2 Attempt Any TWO. (4 x 2 = 08)
a) Find out output of following program fragment.

main()
{
int x=5,a,b;
a=x++;
b=--x;
c = x++ * --b;
printf(“\n%d %d %d %d”, x ,a ,b, c);
}

b) What is a standard input/output header file used in ‘C’?
How header files are used in ‘C’ program?

Q.3 Attempt Any TWO. (4 x 2 = 08)
a) What do you mean by branching statement? Describe any one with example.
b) Write a ‘C’ program to generate following output, using ‘for’ loop.

* * * *
* * *
* *
*

c) Explain relational operators in ‘C’.
c) Write a ‘C’ program to accept any two integer numbers and display addition of it.

Sample Test Paper – II

Course Name : Computer Engineering Group
Course Code : CO/CM/IF/CD
Semester : Second
Subject Title : Programming in ‘C’
Time : 1 Hour Marks: 25

Instructions:
All Questions are compulsory.
Figures to the right indicate full marks.
Use of not-programmable calculator is permissible.
Q. 1 Attempt Any THREE (3 * 3 = 09)
a) What is local and global variable?
b) Write declaration for one dimensional integer array with 100 elements.
c) Give syntax for structure in ‘C’.
d) What would be the output of the following 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. (4 * 2 = 08)
a) Write a ‘C’ program to accept any 5 float numbers in array and display it.
b) Explain need of function in ‘C’ programming.
c) Write a ‘C’ program function to concatenate two strings, without using inbuilt
function.
Q.3 Attempt Any TWO. (4 * 2 = 08)
a) Write a ‘C’ program to calculate factorial of a number using recursion of function.
b) Explain with representation two-dimensional array.
c) What is use of return statement in function? What is function prototype

Download MSBTE 2nd Semester Papers

If you have questions, please ask below

10 Comments

  1. rasika sakriya says:

    please 100 marks ETX,ETG,PIC 2nd sem computer course sample theory question paper 2011 mail me

  2. Jyoti tattu says:

    very good

  3. LOhita prasad kanhar says:

    q

  4. pritam utkhede says:

    old papers 1st year

  5. Rupkala chavan says:

    I wan’t to 2nd sem sample question paper

  6. sonu panpatil says:

    new question paper add karo……. Good service

  7. priyanka patil says:

    plz send me 2010 question paper for 2nd sem. plz fast
    thank you.

  8. shaikh iqbal ahmad says:

    sir pls mail me the sample question papers of 4th sem for computer engg.

Leave a Reply

If you have any questions headover to our forums

You can use these XHTML tags: <a href="" title=""> <abbr title=""> <acronym title=""> <blockquote cite=""> <code> <em> <strong>