About Me

My photo
Vijayapur, Karnataka, India
I am interested in Teaching.

Monday 26 March 2018

Assignment-II PCD for II Sem. 'A' division students. Even Sem 2017-18

1. Write explanation, syntax, flowchart and give 2 programming examples for each of the following.

while

do while

for

2. Write differences between while and do while loop.

3. Write differences between break and continue statements with programming examples.

4. What is one dimensional array?Discuss its declaration and initialization with syntax and examples.

5. What is two dimensional array?Discuss its declaration and initialization with syntax and examples.

6. What is string? Discuss declaration and initialization of string variables with examples.

7. Discuss string handling functions with syntax and examples.

8. Discuss the 3 elements of user defined functions with syntax and examples.

9. What are actual and formal parameters?Discuss with example.

10. Discuss different parameter passing mechanisms. (call by value and call by reference)

11. What is recursive function? Give programming example.

12. Discuss storage classes used in C. (auto,global,static,register)

13. Write programs for following.


To find sum and average of 1 to n numbers.

To find factorial of n.

To display first 'n' fibonacci numbers. i.e. 0  1  1  2  3  5  8  13 ...........

To check, whether the number is prime or not prime.

To find maximum and minimum of n numbers.

Bubble sort

Polynomial Equation

Linear Search

Binary Search

Addition of Matrices

Multiplication of Matrices

To find length of string without using built in function.

To copy one string to another string without using built in function.

To concatenate two strings into single string.

To reverse a string.

To check, whether the string is palindrome or not palindrome.









No comments:

GCD of two numbers and its application...

The greatest common divisor (gcd) of two numbers is the largest positive integer that divides both numbers without leaving a remainder. The ...