Shivaji University 2006 B.E Mechanical Engineering S.E.(Mechanical)(Part-I) - Question Paper
Sunday, 19 May 2013 08:30Web
S.E.(Mechanical)(Part-I)Examination 2006
Computer Programming C,C++
Time:2:30 p.m. to 4.30 p.m.
Total marks: 50
SECTION-I
1.a) discuss integer arithmetic , real arithmetic and mixed-mode arithmetic with suitable example.[Marks 5]
b) discuss format of simple C program.[Marks 4]
c)Which of the subsequent variables are valid in C ? discuss.[Marks 4]
i)auto
ii)roll#
iii)5root
iv)Student,rec
2.a) discuss entry control and exit control loop structures in decision making and looping.[Marks 6]
b)Write a C program to print the conversion table of Fahreheit-Celsius in the step of 25 from 0 to 2500CF,C=(F-32)/1.8.[Marks 6]
3.a)Write a C program using arrays to print 3X3 matrix.[Marks 6]
b)Explain the subsequent functions in graphics:[Marks 6]
i)putpixel(int x,int y,int color);
ii)setcolor(int color);
iii)initgraph(int driver,int mode,char path);
SECTION-II
4.a)Explain the use of multifunction program.[Marks 7]
b)Write the C program using printline() function to print following:[Marks 6]
-------------------------------------
This is a C programming
-------------------------------------
5.a)What is pointer in C language? elaborate the reasons for using pointers?Give suitaible examples.[Marks 6]
b)What will be output of the subsequent program?[Marks 6]
main()
{
float a=13.5;
float *b,*c;
b=&a;
c=b;
/*Let address of a is 65135*/
printf(“\n%u%u%u”,&a,b,c);
printf(“\n%f%f%f%f%f”,a,*(&a),*&a,*b,*c);
}
6.a)What is structure? How structure is initialized? [Marks 6]
b)Define a structure ‘student’ with members weight and height .Initilize them for three students. [Marks 6]
Earning: Approval pending. |