University Of Pune Question Paper
B. C. A. ( Semester - I ) Examination - 2013
PRINCIPLES OF PROGRAMMING AND ALGORITHM
(New 2008 Pattern)
Time : 3 Hours] [Max. Marks : 80
Instructions :
(1) All questions are compulsory.
(2) Neat diagram must be drawn wherever necessary.
(3) Use ANSI C Method.
Q.1) Answer the following : (All) [2x8=16]
(a) What is Variable ?
(b) Define Algorithm. List its characteristics.
(c) Define Time Complexity.
(d) What is difference between ‘a’ and “a” ?
(e) What is Interpreter ?
(f) Define Recursion.
(g) What is #include ?
(h) Write syntax and usage of Ternary Operator.
Q.2) Answer the following : (Any Four) [4x4=16]
(a) Explain difference between Do-while and while loop with
example.
(b) Explain Logical and Arithmetic Operators.
(c) Explain following functions with example :
(i) getchar( )
(ii) putchar( )
Seat
No.
(d) Write a ‘C’ program to find the sum of the first n numbers.
(e) Write a ‘C’ program to accept number and find out whether it
is even or odd.
Q.3) Answer the following : (Any Four) [4x4=16]
(a) What is Operator ? Explain Associativity of Operator.
(b) Distinguish between If-else Structure and Switch Statement.
(c) What is Extern Storage Class ? Explain with example.
(d) Write a ‘C’ program to accept number and display its digits in
words.
(e) Write a ‘C’ program to check whether the given number is perfect
or not.
Q.4) Answer the following : (Any Four) [4x4=16]
(a) Distinguish between Call By Value and Call By Reference.
(b) What is Structure of ‘C’ program ?
(c) What are the different types of ‘C’ Statements ?
(d) Trace the following output and explain :
main( )
{
int x, y, z;
x = y = z = 1;
z = ++x | | ++ y && ++z;
printf(“x = %d y = %d z = %d\n”, x, y, z);
}
[4373]-103 2 Contd.
(e) Trace the following output and explain :
main( )
{
int i;
for (i = 2; i<=10 ; i++)
{
switch(i)
}
Case 2 : printf(“O”);
continue;
Case 3 : break;
Case 4 :
Case 5 : printf(“D”);
break;
default : printf(“!”)
}
}
}
Q.5) Answer the following : (Any Four) [4x4=16]
(a) What is an Escape Sequences ? List and explain them.
(b) Explain working of Break and Continue Statement.
(c) What is difference between Actual Parameter and Formal
Parameter ?
(d) Write an algorithm to check number is armstrong or not.
(e) Draw a flowchart to check number is positive or negative.
B. C. A. ( Semester - I ) Examination - 2013
PRINCIPLES OF PROGRAMMING AND ALGORITHM
(New 2008 Pattern)
Time : 3 Hours] [Max. Marks : 80
Instructions :
(1) All questions are compulsory.
(2) Neat diagram must be drawn wherever necessary.
(3) Use ANSI C Method.
Q.1) Answer the following : (All) [2x8=16]
(a) What is Variable ?
(b) Define Algorithm. List its characteristics.
(c) Define Time Complexity.
(d) What is difference between ‘a’ and “a” ?
(e) What is Interpreter ?
(f) Define Recursion.
(g) What is #include ?
(h) Write syntax and usage of Ternary Operator.
Q.2) Answer the following : (Any Four) [4x4=16]
(a) Explain difference between Do-while and while loop with
example.
(b) Explain Logical and Arithmetic Operators.
(c) Explain following functions with example :
(i) getchar( )
(ii) putchar( )
Seat
No.
(d) Write a ‘C’ program to find the sum of the first n numbers.
(e) Write a ‘C’ program to accept number and find out whether it
is even or odd.
Q.3) Answer the following : (Any Four) [4x4=16]
(a) What is Operator ? Explain Associativity of Operator.
(b) Distinguish between If-else Structure and Switch Statement.
(c) What is Extern Storage Class ? Explain with example.
(d) Write a ‘C’ program to accept number and display its digits in
words.
(e) Write a ‘C’ program to check whether the given number is perfect
or not.
Q.4) Answer the following : (Any Four) [4x4=16]
(a) Distinguish between Call By Value and Call By Reference.
(b) What is Structure of ‘C’ program ?
(c) What are the different types of ‘C’ Statements ?
(d) Trace the following output and explain :
main( )
{
int x, y, z;
x = y = z = 1;
z = ++x | | ++ y && ++z;
printf(“x = %d y = %d z = %d\n”, x, y, z);
}
[4373]-103 2 Contd.
(e) Trace the following output and explain :
main( )
{
int i;
for (i = 2; i<=10 ; i++)
{
switch(i)
}
Case 2 : printf(“O”);
continue;
Case 3 : break;
Case 4 :
Case 5 : printf(“D”);
break;
default : printf(“!”)
}
}
}
Q.5) Answer the following : (Any Four) [4x4=16]
(a) What is an Escape Sequences ? List and explain them.
(b) Explain working of Break and Continue Statement.
(c) What is difference between Actual Parameter and Formal
Parameter ?
(d) Write an algorithm to check number is armstrong or not.
(e) Draw a flowchart to check number is positive or negative.
0 comments:
Pen down your valuable important comments below