MGKVP BCA 2019 PPA
Mahatma
Gandhi Kashi Vidyapeeth
BCA(1st
semester)
Programming
Principles & Algorithm
2019
MM:75 Timing:3Hrs
Attempt any five questions Each ques carry 15 marks.
Attempt any five questions Each ques carry 15 marks.
(a) Name the primitive data types in
C language with examples.
(b) Why is C known as ‘middle level
language’?
(c) Explain the utility of header
files in C language.
Q 2- 5+5+5 marks
(a) Explain the different iterative
control structures in C language with illustrative examples.
(b) Discuss: If, If-Else, Nested If
Else, Switch, Give example of each.
(c) Writer a short note on
Preprocessor Directive.
Q 3- 5+5+5 marks
(a) What is understood by Recursion?
Which data structure is used for its implementation?
(b) Write a recursive program for computation
of the GCD of two integers. (M,N).
(c) Write a C program for computing
the sum of the series up to t terms:
1 + n + n2 + n3
+ ---- n(t-1)
Where n,t are to be input at run
time.
Q 4- 5+5+5 marks
Write short notes on:
(i) Big oh Notation
(ii) Algorithm and characteristics
(iii) Functions and their types.
Q 5- 6+6+3 marks
(a) Writer a C program to print all the
odd numbers between 701 to 800.
(b) Write a C program to print out
all factors of a given integer N, where N is provided at runtime.
(c) What is a palindrome? Give few
examples.
Q 6- 5+5+5
(a) Pseudo code
(b) Perfect Number Computation
(c) Problem solving techniques.
Q 7- 8+7 marks
(a) C has a rich set of operators.
Justify this statement by describing the different types of operators available
in C language.
(b) Write a C program to accept two
integers and to compute their bitwise ‘AND’ value as printed output.
Q 8- 7+8
(a) Justify the use of functions as
building blocks in a modular program. What is Top down Approach?
(b) What is the difference between
(i) While and Do while
(ii) Break and Continue
(iii) Perfect Number and Prime
Number
(iv) Factorial and cube root of a number.
Comments
Post a Comment