PPS_Assignment-2
PPS_Assignment-2
Q.1. Design block diagram of computer and explain functionalities of various components of
computer.
Q.2. Differentiate Application Software and System Software.
Q.3. Differentiate Compiler and Interpreter.
Q.4. Define Algorithm. Define Flowchart. Draw and explain various symbols used for preparing flow
chart.
Q.5. Write an algorithm and draw a flow chart to find maximum number for three given numbers.
Q.1. What is array? Demonstrate declaration and initialization of one dimensional array and two
dimensional array with suitable example.
Q.2. Write a program to multiply two matrices A and B of size 3 * 3. Store the answer in matrix C and
display it.
Q.3. What is String? List the various inbuilt string functions and explain all of them with example.
Q.4. Write a program to accept a string and count the number of vowels present in a string.
Q.5. What is pointer? Write a program to do swapping of two elements using pointers.
Q.6. Explain Pointer Arithmetic with proper example.
Q.7. What is structure? Explain with example how to declare a structure and how to initialize it.
Q.8. What is union? How it is different from union?
Q.9. Define a structure type struct personal that would contain person name, date of joining and salary
using this structure to read this information of 5 people and print the same on screen.
Q.10. Explain the following File Handling functions:
1. fseek( ) 2. ftell( ) 3. fread( ) 4. fwrite( ) 5. fscanf( ) 6. fprintf( ) 7.rewind( )
Q.11. Write a C program to copy content of one file to other with the help of file handling functions.
Q.12. What is dynamic memory allocation? Show the use of malloc() and calloc() function with their
syntax.