Академический Документы
Профессиональный Документы
Культура Документы
FC3401-PIC
Unit-1 (Program logic development)
2 Marks
1. Define algorithm.
2. State properties of algorithm.
3. State the advantages of using flowchart.
4. State flowchart.
5. Write the symbol for i) Initialization of variable. ii) Start/Stop.
6. Write any four advantages of algorithm.
4 Marks
1. Write the algorithm for determine whether the given number is even.
2. Explain how to write the algorithm with example.
3. Explain the guidelines for preparing flowchart.
4. Write any four symbol of flowchart with its description.
5. Write algorithm to find greatest number among two numbers.
6. Write algorithm to convert Fahrenheit to Celsius.
7. Write algorithm to swap two numbers.
8. Draw flowchart for the given algorithm A : First Side of Triangle B : Second Side of Triangle
C : Third Side of Triangle AREA : Area of Triangle PERIMETER : Perimeter of Triangle
Algorithm
Step-1 Start
Step-2 Input Sides of Triangle A,B,C
Step-3 S= (A + B + C)/ 2.0
Step-4 AREA = SQRT(S x (S-A) x (S-B) x(S-C))
Step-5 PERIMETER = S1 + S2 + S3
Step-6 Display AREA, PERIMETER
Step-7 Stop
2 Marks
2 Marks
2 Marks
4 Marks
1. Write a program to calculate the average of the array elements with size of array is 20.
2. Explain single dimensional array with example.
3. Explain two dimensional arrays with suitable example.
4. Explain string handling functions with syntax.
5. Explain arrays of structure with suitable example.
6. Write difference between structure and union.
7. Create structure “EMP” having data member name, salary. Accept data and display this
information for one employee.
8. Write a program to sort the list of 10 numbers in array in descending order.
9. Write a program to compare the two strings and display the result.
Unit-5 Functions
2 Marks
1. Define function.
2. State the types of functions.
3. State the elements of user defined function.
4. State formal and actual/informal parameter.
5. State prototyping.
6. Write the any four categories of user defined function.
7. Write the need of user defined functions.
8. State different string handling functions.
9. Write any four math functions.
10. Write syntax to declare a function.
11. State the difference between declaration and definition of function.
12. Write the syntax to define the function.
13. Define recursion.
14. Write syntax for nesting a function.
15. State the advantages of using functions.
16. Write difference between recursion and nesting of function.
4 Marks
Unit- 6 Functions
4 Mark