PPS Assignments-1
PPS Assignments-1
ASSIGNMENTS
Assignment: 1
1. Draw block diagram of computer and describe functions of various computer components.
2. What is software? Explain various types of software.
3. Describe various types of computer languages.
4. What is a flow chart? Explain various symbols used in flow chart.
5. Draw a flowchart to find the maximum number from three numbers.
6. Draw a flowchart to find the factorial of a given number.
7. Write an algorithm to find whether a given number is odd or even?
8. Write an algorithm to reverse a given number.
Assignment: 2
Assignment: 3
1. What is a function? Explain the function definition, function declaration and function call
with relative example.
2. Explain call by value (pass by value) and call by reference (pass by reference) with examples
in brief.
3. What is a pointer? Explain how pointers are declared and initialized. State its advantages.
4. What is structure? Explain with example how to declare a structure and how to initialize it.
5. Explain nested structure and array of structure with example.
6. Differentiate Structure vs. Union.
7. What is dynamic memory allocation? Show the use of malloc() and calloc() function with
their syntax.
8. Describe file management? List the various file handling operations in c.