About Me

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

Tuesday 18 April 2017

PCD Assignment-IV

1. What is one dimensional array? Explain its declaration and initialization with syntax and examples.
     (2+2+2=6 m)

2. What is two dimensional array? Explain its declaration and initialization with syntax and examples.
     (2+2+2=6 m)

3. List the advantages and disadvantages of working with arrays. (3+3=6m)
 
4. What is string? Explain its declaration and initialization with syntax and examples.
  (2+2+2=6 m)

5. Discuss the following "String Handling Functions" with syntax and examples (programming examples).
    strlen(), strcpy(), strncpy(), strcmp(), strncmp(), strcat(), strncat(), strupr(), strlwr(), strrev().
    Note: Explanation :1m, Syntax 1m, 2 simple examples and 1 programming example carry 3m.
    Each function carry= 5 m.

6. List the advantages and disadvantages of both linear and binary search techniques.

7. Solve questions from "Old VTU Question Papers" on "Arrays" and "Strings" topic.

8. Write the C programs for following.

C program to find 'sum' and average' of 'n' elements using 1D array.
C program to find largest and lowest of 'n' numbers using 1D array.
C program to sort 'n' elements using Bubble Sort technique.
C program to implement linear search technique.
C program to implement binary search technique.
C program to find the addition of two 2D arrays.
C program to find the product/multiplication of two 2D arrays.


NOTE:
Read, Understand and re-write the answers for the questions in assignment book in your own sentences.
Submit the assignment at the earliest.












 



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 ...