Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
24 views

Computer Programming

1. The document provides instructions and questions for a computer programming exam. It contains 12 questions split into two sections covering topics like algorithms, C programming basics, functions, arrays, pointers, structures, file handling and more. Students are expected to answer 6 questions out of the 12, with questions having between 1-7 marks each. 2. Questions cover topics like defining algorithms, linear search, bubble sort, input/output functions, operators, control structures, arrays, pointers, structures, file handling and more. Code snippets or small programs are often required as part of the answers. 3. Students are advised to show neat work with proper dimensions and assumptions, and to use blue or black ink for writing.

Uploaded by

ingolepratik099
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views

Computer Programming

1. The document provides instructions and questions for a computer programming exam. It contains 12 questions split into two sections covering topics like algorithms, C programming basics, functions, arrays, pointers, structures, file handling and more. Students are expected to answer 6 questions out of the 12, with questions having between 1-7 marks each. 2. Questions cover topics like defining algorithms, linear search, bubble sort, input/output functions, operators, control structures, arrays, pointers, structures, file handling and more. Code snippets or small programs are often required as part of the answers. 3. Students are advised to show neat work with proper dimensions and assumptions, and to use blue or black ink for writing.

Uploaded by

ingolepratik099
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

B.E. / B.Tech. / B.Text. First Semestcr (Chem.Eogg./' Poly (Plas.) / Chem.Tech.

)
(Common for All)
10088 : Computer Progromming : I B3 / I SCT4
P. Pages : 3 AT - 2052
Time : Three Hours ITTTIT; Max. Marks : 80

Notes L Due credit will be givcn to neatness and adequate dimensions.


2. Assurne suitable data wherever necessary.
3. lllust.ate your answer necessary with the help of oeat sketches
4. Use ofpen Blue/Black ink/refill only for writing book.

I a) Define algorithm with it's characreristics, draw flow-chan offinding the small€st number 1
amorg three numtrer.

b) Explair linear search algorithm for unsorled list with cismple. 1

oR.

2. a) Explain hubble son algorithm. 7

b) Explain itrput process & output cycle, 7

3. a) Explain the followioS terEs 6


i) pridt( )
ii) scan( )
iii) putcha( )

b) what is the output of following prograh ifuser input Values as 88881398, 7?? 1
#irclude <stdio.h>
void main ( )
t
inta,b,c;
scanl1"% ld% ldo/r 3d" , &a, &b, &c) :
printf('suo = %d", a+b+c);
)

OR

4. a) What is keyword in C ? Explain the followitg : ti


i) Break ii) void
iii) Continue iv) Double

b) Write a sho not. on'operator in C'. 5

5. a) Explain switch c6s€ stateErent with cxaDple. 1

b) Write I short note on 'iteialive stateEents in C'. 6

OR

AT - 2052 I P,T.O
6, a) Whar will be the pdnted by each oflhe following code : 6
i) void main ( )
{
flo4tx= 123.41
if(x > I o0)
printfl "ooe") ;
if(x > 100)
printf( 'two" );
if(x > 200)
printf C&ree') ;
)

ii) void main ( )


{
chatC='A':
svitch lC)
I
casex:printf("x");
case y: printf('y') ;
break :
default: prirrlf ("other") :
)
l
iii) Yoid main ( )
{
intx=2;
switch (x)
{
case I i printf ('N agpur")l
' bnat
case 2 : printf("Mumbai") ;
default : plintf ("other") ;
i
l
b) Diffcre idtc betwedn while ard do-while statetrent. 7

7. a) Writ€ a progran in C to rcad the matrix oforder nxn and obtain its tronspose. 7

_b) List ard explain different library firnction for string manipulation. 7

OR

8. a) Which are the differfit storage classes in C ? Explain with suitable examplo. 1

b) Write a program to find largesl and smollest nulaber in aray of ten ioteger nuDber. 1

9. B) What is pointer ? What kind of inforoation does the pointcr variable reprEsent ? ExplaiD
differ.dt uses of pointer.

AT - 2052 2
b) Explain pointer arithmetic with suitable examplc- 6

OR

10. a) Explain iadireorion & addrcss operator with suitable example. 6

b) Explain following with example. 4

i) Pointer to pointer

ii) Call by reference

c) whal is the value ofa & b after following statement are executed. 3
int 'Pl, *P2, a, b:
Pl &a;
=
P2=&b:
*Pl = l5:
*P2:35 ;
*P2 - (rPl) ++-_ .

I l. a) Write a prograrn to copy the contain ofone lile to another usinS fputc and [8etc. 7

b) What is union ? Differentiate union and structdre. 6

OR

12. a) Explain foltowing term rvith eiarnple. 6


i) turite n) fop"n
iii) fseek iv) tlcan

b) Define structure with example. 1

AT - 2052 .l

You might also like