How To Exam?

a knowledge trading engine...


Gujarat University 2007 B.C.A Computer Application Programming in ‘C’ Language -102 (New ) - Question Paper

Sunday, 12 May 2013 12:10Web

FBCA-02
April-2007

Seat No. :

Programming in ‘C’ Language
BCA-102 (New Course)



Time : three Hours] [Max. Marks : 70

Instructions : (1) Figures to the right indicate full marks of the ques..
(2) Make and state necessary assumptions.


1. (A) ans the subsequent : (any ten) (10)

(i) Give the full form of ASCII.


(ii) Convert (90)10 into hexadecimal number system. (iii) Give an example of entry-controlled loop.
(iv) List all logical operators. (v) What is an assembler ?
(vi) Write the syntax of switch statement. (vii) List 2 operating systems.
(viii) List any 2 input and output devices. (ix) Give an example of system software.
(x) Convert (1643)8 into binary number system.


(xi) List various forms of macro substitution.


(xii) What is the value of X, if (X = Y<<1) and Y = 10 ?




(B) Give 1 word for the subsequent : (4)

(i) The function to locate a sub-string in string.

(ii) A data kind allowing packaging of multiple data kinds.

(iii) A self contained block of code, which allows exchange of values. (iv) A derived data type, which is used to store address.



2. (A) Draw flowchart OR write algorithm for the subsequent : (any three) (12)

(i) Print all the numbers that are divisible by seven ranging from 100 and 200.

(ii) Generate the subsequent fibonacci series for n values. learn n from the user.

0, 1, 1, 2, 3, 5, 8, 13, 21...

(iii) For N values, print the subsequent series.

11 + 22 + 33 + 44 + 55 + 66 + ......

(iv) Read a number and check whether it is palindrome or not. (v) Read a number and obtain out whether it is prime or not.
(B) Attempt the subsequent : (any one) (2)

(i) Define an algorithm.

(ii) List all symbols used in a flowchart.




3. (A) Differentiate ranging from (any two) (8)

(a) Compiler and Translator

(b) Entry Controlled Loop and Exit Controlled Loop

(c) Array and Structure

(d) Scope and visibility of a variable

(e) Pass by value and Pass by reference



(B) Answer in short. (any three) (6)

(i) What is prototyping ?

(ii) What is explicit conversion ?

(iii) What is a sentinel-controlled loop ? (iv) What is initialization of a variable ?
(v) Which are the storage classes available in ‘C’ ?




4. (A) explain in brief. (any two) (08)

(i) What is recursion ? discuss with a suitable example.

(ii) Explain formal and true arguments with a suitable example. (iii) Explain structure and union with an example.
(iv) Draw and discuss singly linked list, circular linked list and doubly linked list.

(v) Explain fseek and ftell functions.


(B) Do as needed. (any two) (06)

(i) Find the output of the subsequent :

int sum(int,int);

void main()

{

int x = 5, y = 10, z = 15, w = 20;

printf(“%d”,sum(x,sum(y,sum(z,sum(w, 1)))));

}

int sum(int p, int q)

{

return(p + q);

}



(ii) Find the output in the subsequent :

void main()

{

int i;

char book_name[] = “GREAT BRITAIN”;

for (i = l; i < = 13; i++)

printf(“\n%-13.*s”,i,book_name);

}

(iii) Find the fault in the subsequent ‘C’ code

#DEFINE a = 10

void main()

{ int b = l;

while (b < 10)

{ printf(“%d,a)

b++;

}

5. (A) Write a program in ‘C’ for the subsequent : (any two) (10)

(i) Write a program to learn a string and obtain out whether it is palindrome or not.

(ii) Write a program to learn n numbers and sort the array.

(iii) Write a program to print the sum of the subsequent series :

1 + 1/4 + 1/9 + 1/16 + 1/25 ......

(iv) Write a program to create a structure called “DATA”, which has the subsequent details :
Department Name, Contact person, cell-number, land-number

Create an array of 10 such records and learn the data. Also, obtain the details of the department, which is entered through keyboard.



(B) Mention whether the subsequent statements are actual or false. Re-write the incorrect
statement. (04)

(i) A switch statement can always be changed by a series of if-else statement. (ii) The modulus operator % can only be used with integers.
(iii) ANSI C treats name and Name to be identical. (iv) The return kind of a function is int by default



( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Gujarat University 2007 B.C.A Computer Application Programming in ‘C’ Language -102 (New ) - Question Paper