How To Exam?

a knowledge trading engine...


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

Tuesday, 22 January 2013 11:00Web

B-12703 Seat No.
First Year M.Sc. (CA & IT) exam
May/June-2001
Computer Fundamental &
Prog. In ‘C’ : Paper - 103

Time : three Hours ] [Total Marks : 35
Instruction : (i) All ques. are compulsory.
Figures to the right shows marks of the corresponding questions.
1. A. Write short notes on any two. 7
(a) Types of ROM.
(b) Types of Printers. discuss about Dot-Matrix Printer.
(c) Classification of Computer according to size and work.
(d) History of Computer Languages.

B Do as directed. 3
(a) Any 3
(1) (1FF.F)16 = (?)8
(2) (1011011.1)2 = (?)16
(3) (770.71)8 = (?)16
(4) (11.1)2 = (?)8

(b) Any Two 4
(1) (111.01)2 – (111.10)2 using 1’s complement.
(2) (255.875)10 = (?)16
(3) (001F)16 = (?)10
(4) (100.10)2 / (10.01)2

2 A Write Short not on any three. 12
(1) Nested if statement with needed example.
(2) Write a short not on basic structure of ‘C’ program.
(3) What is recursion Function? discuss it and write a recursion function. For compute factorial of provided positive integer.
(4) Explain provided function for file in ‘C’ with 1 example.
(1) fopen (2) fprintf
(3) fscanf (4) fgets
(5) Explain pre tested and post tested loop.

B. give the output for provided code. (any four) 12
1.
stuct learner
{
int A;
char Name[40];
float Percentage;
}stud;
printf(“ learner %d “,sizeof(stud));
printf(“ learner Name %d “,sizeof(stud.name));
2.
int A, *B,C;
A=50;
B=&A;
C=(*B)++;
printf(“ value of A is -> %d\n”,A);
printf(“ value of B is -> %d\t”,B);
printf(“ value of C is ->%d\n”,C);

3
int I=0,J=0;
for(I=1;I<=20;I++)
{
I++;
printf(“ Value of I is %d “,I);
if(I>=10)
break;
else
continue on
}
4
void main()
{
int I , Ans=0 , J=1;
I=5;
J=10;
Multiply (I,J);
printf(“ value of I %d \n “ I);
printf(“ value of j %d \n “J);
printf(“ ans is %d \n “, Ans);
}
void Multiply(int I, int j)
{
int Ans;
ans = i*j;
}

Int I,J;
Flaot Ans;
I=14;
J=7;
Ans = (J / I ) / ((I++) + ( j -));
printf(“ value of I %d \n “ I);
printf(“ value of j %d \n “J);
printf(“ ans is %d \n “, Ans);

3. A. Write a ‘C’ Program. (Any Two) (14)
(1) display this type of output on screen using for loop.
*
* *
* *
* *
* * * * * * * * *
(2) Write a ‘C’ program to display all prime numbers ranging from 30 and 310 every in
new line.
(3) Write a ‘C’ program to convert provided decimal to binary no.
(4) Write a ‘C’ program to obtain the sum of that numbers which are divisible by N
ranging from 100 and 400. (Here no n is accept from user.)

B. Write a ‘C’ program code for provided issue. (Any One)(04)
(1) Write a function for reverse the provided string. (Do not use
Library function.)
(2) write a code for accept and display five member info
Member No , Member Name , Balance.
Note : Member Name may contain space character. E.g.
Vipul Patel.

C. write a ‘C’ program (Any one) (08)
(1) Accept six words and organize it in dictionary order.
(2) Create 1 integer value contained file. From this file
Create a different 2 files 1 for odd and 2nd for
Even nos. Print the outcome of both files.
4. Do as directed. (03)
A. (Any three)
(1) write a general syntax for conditional operator.
(2) printf(“ Testing Value is %f\%”,3.67); output is .
(3) A function must return a value. (True or False) justify your
Answer.
(4) printf(“ Testing Value is %d”,sizeof((double)3.67));
output is .
B. Define givens terms. (any three) (03)
(1) Compiler
(2) Interpreter
(3) Variable
(4)Constants




( 0 Votes )

Add comment


Security code
Refresh

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