How To Exam?

a knowledge trading engine...


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

Sunday, 05 May 2013 09:05Web

E - SCHEME
Sample Test Paper – I
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:
1. All ques. are compulsory.
2. Figures to the right indicate full marks.
3. Use of not-programmable calculator is permissible.


Q.1 Attempt Any THREE. [Mark 09]
a) provide the syntax of do-while statement.
b) What is constant? provide any two examples.
c) Enlist various format specifiers.
d) obtain out errors in the subsequent program component and justify the same:
float i;
int p = 0;
for (i=0; i = 10; i += 2)
{
p = i * two ;
printf(" %d ", i, p) ;
}


Q.2 Attempt Any TWO. [Mark 08]
a) obtain out output of subsequent 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?
c) Write a 'C' program to accept any 2 integer numbers and display addition of it.



Q.3 Attempt Any TWO. [Mark 08]
a) What do you mean by branching statement? define any 1 with example.
b) Write a 'C' program to generate subsequent output, using 'for' loop.
* * * *
* * *
* *
*
c) discuss relational operators in 'C'.




( 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 – I for GroupSubject Programming in ‘C’ (12027) - Question Paper