How To Exam?

a knowledge trading engine...


Saurastra University 2006 B.C.A Computer Application Programming In C. - Question Paper

Wednesday, 17 April 2013 01:20Web

SP-1857] one [Contd..
*SP-1857*
SP-1857 Seat No.__________
B. C. A. (Sem. II) exam
April / May – 2006
Programming In C.
Time : three Hours] [Total Marks : 100
1 (i) Fill in the Blanks 10
(a) 1st Bit of Integer is called_________________.
(b) Long int occupies _____________bytes.
(c) float *p; Here P occupies __________bytes.
(d) pointer to structure occupies___________bytes.
(e) int a [20], *p; p=a; Here p occupies _________bytes.
(f) _______function is the 1st executable function.
(g) ________modifier modifications the range and not size
of the data item.
(h) Range of char data kind is from_______to_________.
(ii) Differentiate subsequent : 10
(a) Initialization Vs. Assignment.
(b) & Vs. &&
(c) < Vs. <<
(d) ‘A’ Vs. “A”
(e) | Vs. ||.
2 Write short notes : (any four) 20
(a) Data kinds
(b) If Condition
(c) Looping Structures
(d) C Program Structure
(e) Dynamic Memory Allocation
(f) Macro in C.
3 Write programs : (any two) 20
(a) Write a program to Create A Binary file to add record
containing.
NAME, GENDER, PAN (Permanent Account Number),
INCOME. PAN field is Alpha Numeric.
(b) Write a program, which scans CITYNAME,
POPULATION and AREA of 10 cities from user, sorts
them in alphabetic order and prints them on screen.
(c) Write a program to multiply matrix a[3] [4] and
b[4] [2] into c[ ] [ ] and print all matrix.
4 Attempt any 2 : 20
(a) What is User describe Function? explain kinds of UDF
in detail and its power to modular approach.
(b) What is pointer? discuss the concept of pointer with
example.
(c) Write a detailed note on FILE HANDLING IN C.
(d) discuss double dimension array with example.
5 Write output of subsequent :
(i) #include
void main ( )
{
int a, b, c;
a=b=c=60;
a + = 5;
b + = 6
c + = 7;
printf(“\n %c %c %c %d %d %d”, —a, ++c, b– –, c++,
a++, – –c);
}
(ii) #include
void main ( )
{
char a [ ] = “GoodMorning”;
char *p = a + 4;
while (*p)
printf (“%c”, *p++);
}
SP-1857] two [Contd..
(iii) #include
void main ( )
{
int A [ ] = {0,1,2,3,4,5};
int I = 5;
for ( ; I > = 0; I– –)
printf (“%c”, A [I] + 65);
}
(iv) #include
union Test
{
char s [2];
int a;
float f;
};
void main ( )
{
union Test t;
printf (“ %d”, sizeof (t) );
}
______________
SP-1857] three [ 200 ]


( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Saurastra University 2006 B.C.A Computer Application Programming In C. - Question Paper