How To Exam?

a knowledge trading engine...


Karnataka State Women University 2007 B.C.A Computer Application ADVANCED PROGRAMMING IN C AND DATA STRUCTURE - Question Paper

Thursday, 24 January 2013 01:15Web

PART-A
NOTE:Answer any 10 ques.
1. a) How does an append mode differ from a write mode?
b) What is the common use of rewind?
c) provided the subsequent declarations
int x=10,y=10;
int *p1=&x, *p2=&y;
What is the value of the subsequent expression
(*p1)++;
d) State whether the subsequent statement is actual or false
An integer can be added to a pointer.
e) The selection operator ->requires the use of a _______________ to access the members of a structure.
f) provided the declaration
struct abc, a, b, c;
Which of the subsequent statements are legal?
scanf("%d,&a);
printf("%d",b);
a=b;
g) What do you mean by command line arguments?
h) List any four functions for I/O operations in a file.
i) Create a structure to represent date
j) What is meant by call by reference?
k) What is a pointer variable? How it is initialized?
l)What is the significance of EOF?

PART B

NOTE: ans 2 ques. from every unit

UNIT 1
2. a) What is meant by the subsequent terms? E xplain.
i) Nested structures
ii) Array of structures
b) List any 5 benefits of using pointes. (5+5)

3. a) How is a structure described and declared. discuss with syntax and example.
b) discuss the various arithmetic operations that can be performed on
pointer variables with examples. (6+4)

4. a) Differentiate ranging from arrays and structures.
b) discuss the meaning and purpose of the subsequent
i) struct keyword
ii)size of operator
c) With the help of an example, discuss how a variable can be accessed
through its pointer. (3+4+3)
UNIT 2
5. a) What is dynamic memory allocation? discuss how a block of memory
can be allocated using malloc.
b) Distinguish ranging from the subsequent functions.
i) getc and getchar
ii) fprintf and fscanf
c) discuss 2 library functions that can help us detect I/O errors in file. (3+4+3)

6. a) elaborate the various steps involved in defining and opening a file?
b) Write a user described function using pointers to concatenate 2 strings (4+6)

7. a) Write a program that reads a file containing integers and appends at its end
the sum of all the integers.
b) Differentiate ranging from malloc and calloc. (6+4)

UNIT 3
8. a) How do you represent a 2 dimensional array in memory?
b) What is a sparce matrix? With the help of an example discuss the representation
of sparce matrix as an array.
(4+6)
9. a) What is a stack? discuss the algorithms to implement the 2 basic
operations on stack.
b) What is a queue? discuss the algorithms to implement the basic operations on queue.

10. a) What is a data structure? discuss the various kinds. List out the steps to sort
the subsequent data using selection sort
one three six five four (4+6)








( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Karnataka State Women University 2007 B.C.A Computer Application ADVANCED PROGRAMMING IN C AND DATA STRUCTURE - Question Paper