How To Exam?

a knowledge trading engine...


Hemchandracharya North Gujarat University 2002 B.Sc Computer Science 103 Computer Fundamentals %26 Programming in C - Question Paper

Tuesday, 22 January 2013 11:05Web

First Year m. sc. (CA & IT) exam
March/April – 2002
Computer Fandamental & prog. In ‘C’ : Paper - 103
Time : three Hours] [Total Marks : 70

1 (a) do as directed : (any two) 2
(i) (ABC.EF)16 = (?)8
(ii) (235)8 = (?)16
(iii) (1101.01)2 = (?)8

(b) do as directed : (any three) 6
(i) (128.075)10 = (?)2
(ii) (110110.101101)2 = (?)10
(iii) (1010110.1010)2 = (?)10
(iv) (235.125)10 = (?)2

(c) Attempt any 2 : 6
(i) discuss cache memory.
(ii) discuss any 1 optical storage device in brief.
(iii) discuss any 1 input device in briefly.

2 (a) ans the subsequent ques. : (any two) 8
(i) discuss switch statement with example.
(ii) Listout ‘C’ operators. discuss any two
(iii) discuss with example getchar ( ) and
putchar ( ) library function.

(b) ans the subsequent question:(any three) 6
(i) provide differences ranging from ‘break’ and ‘Continue’.
(ii) provide differences ranging from local variable and global variable.
(iii) discuss keyword ‘extern’ with example.
(iv) What is recursion ? discuss in brief ?

three (a) Attempt any 2 : 14
(i) write a program to calaculate the value of sum for the
subsequent series:
1 + 3/2! + 5/4! + 7/6!+ 9/8! +………….
(ii) write a program to display subsequent output on the screen:
1
2 three 2
3 four five four 3
4 five six seven six five 4
5 six seven eight nine eight seven six 5
(iii) write a program to copy 1 string into a different using UDF
mystring copy ().
(b) provide output for in a provided code : (any three) 9
(i) int a=2,b=4,c=6;
float x.y;
x=a + b/c – b*c + b;
printf(“\n x=%f”,x);
y = + + a * – – b/c + + ;
printf(“\n y=%f”,y);
printf(“\n a= %d \t b= %d\t c=%d”,a,b,c);
(ii)
int k=0,m=0;
for (k =1; k <= 5;)
{
for (m=1; 1; m++)
{
printf(“%d\t”,m);
if (m = = 3) break;
}
printf(“\n”);
k++;
}
(iii)
main ( )
{
void fun (int *a, int *b);
int x,y;
x=5;y=2;
fun (&x,&y);
printf(“\nx=%d\t y=%d”,x,y);
}
void fun(int *a, int *b)
{
*a = *a**a;
*b = *b + *b;
}
(iv)
main()
{
int a = 35, b;
b = fun(a);
printf(“\n b = %d”,b);
}
fun (int a)
{
if (a > 0) return (1);
else
return (0);
}
4 (a) ans the subsequent ques. : (any two) 5

i. what is EOF indicate ? What is feefo() function do ?
ii. Explain fseek() function.
iii. Explain in brief ‘call by reference’.
(b) Attempt any 2 : 14
(i) presume ‘student.txt’ file is already created which contain
info about learner Roll No., Name, Telephone and Year. write 1 program to append 1 record in to this file
And display all records from file.

(ii) Create 1 integer value contained file. From this file create
a different 2 file. 1 for odd and 2nd for even nos. Print
the outcome of both the file.

(iii) describe a structure called ‘donor’ that will define subsequent
info :
Name, Address, Age, Blood kind (type 1, 2, 3, or 4)
Write a program to learn info about blood donors and display a list of blood donors whose Age is beneath 25
and blood kind is 2.



( 1 Vote )

Add comment


Security code
Refresh

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