How To Exam?

a knowledge trading engine...


Hemchandracharya North Gujarat University 2004 B.Sc Computer Science 103 Computer Fundamentals & Programming in C - Question Paper

Tuesday, 22 January 2013 10:50Web

F. Y. M. Sc. (CA & IT) exam
August - 2004
103 – Computer Fundamental &
Programming in C
Time : three Hours] [Total Marks : 35

1 Do as directed : (any two) 5
(a) Write short-note on algorithm and write an algorithm of
Finding sum first hundred natural nos.

(b) Draw flow-chart :
1. Finding area of circle and display it. (Accept the radius)
2. Finding the length of accepted string and display it.
(without using strlen( ))

(c) Write short-note on characteristics of higher level languages.

2 Do as directed : (any four) 8
(a) what will be the last value as a, b and c?
int a=2, b=3, c=4;
c + = + + a * b + + + a + + / b - + + c * b+ +;

(b) Write output for subsequent :
main( )
{
int a=100, b=200, c=300;

while (a = = 100)
{
if ( c>=b )
b += a;
a += b;
}
printf(“a=%d\n”, a);
printf(“b=%d\n”, b);

}

(c) what will be output after executing subsequent part :
main ( )
{
int i = 100, sumx = 100;
for ( ; i<=200 ; i+<2)
{
Sumx = sumx + i;

printf(“ sumx=%d\n”, sumx);
printf(“i=%d”, i );
}
}

(d) What will be the output ?
main( )
{
int a=10, b=20;
clrscr( );
printf(“a=%d\n b=%d\n”, a, b);
sweep (a, b);
printf(“a=%d\n b=%d\n”, a, b);
}
sweep (int a, int b)
{
int t;
t=a;
a=b;
b=t;
return;
}
(e) Find and display output
main( )
{
float a=3.230719;
printf(“\n %6.2 f”, a);
printf(“\n %5.4 f”, a);
printf(“\n %2.1 f”, a);
printf(“\n %0.0 f”, a);
}

3 (a) Write a ‘C’ program for finding sum as those nos ranging from n1 5
and n2 which can be divisible by n3 with reminder zero. Accept n1,n2 and n3 from terminal.
OR
(a) Write ‘C’ program for finding the sum of subsequent : 5
2
1+ 3
accept n from terminal.

(b) Write a ‘C’ prog. Which will write the 1st 25 fibonacci
nos. into? 1 file. Display these nos on terminal.
OR
(b) (1) Write a ‘C’ prog. which display the accepted string 5

in reverse order without using any build-in library
string functions.
(2) Write a ‘C’ prog. for sweeping 2 nos. without 5
using 3rd variable.
(c) Write a ‘C’ prog. for addition of 3*3 matrix. Display 2
Ans matrix.

4 (a) Write short notes on any 3 : 6
1. Circle( ), Ellipse( ), getx( ), gety( ).
2. Switch statement
3. Basic structure of ‘C’ lang.
4. Advantages of pointer.

(b) State actual or false with cause. 1
In the ‘C’ prog. language every line of statement must be
ended by semicolon.

(c) What will be the value of b? 1



( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Hemchandracharya North Gujarat University 2004 B.Sc Computer Science 103 Computer Fundamentals & Programming in C - Question Paper