About Me

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

Friday 13 October 2017

USP Assignment-II (part-2): Happy Deepawali!

1. What is shell script? Explain in detail with example.

2. Write shell scripts for following.
To display "Hello World" message
To display today's date with appropriate message.
To read pattern to be search and file name to display the records from given file.
To perform arithmetical operations like addition, subtraction, multiplication, division and modulus operations by reading two values.

3. Write short note "command line arguments" used in Unix.
 

|| Happy Deepawali ||

PCD Assignment-2 (Part-II) on Functions

1. Discuss the three elements of user defined functions with syntax and example.

2. Explain actual and formal parameters with programming example.

3. Discuss the following with programming examples.
    1. Call by value
    2. Call by address (reference)

4. What is recursive function? write recursive function to find factorial of 'n'.

5. Discuss the storage classes used in C with examples.
   (automatic, global, static, register)

6. Write user defined function to swap the contents of two variables. (call by address)

7. What is structure? Discuss its declaration and initialization with syntax examples.

8. Write C program to read and display students information(roll no, name, total, avg) by using structure variable.

9. Write a c program to read and display 'n' students information(roll no, name, total, avg) using structure and arrays.



|| Happy Deepawali ||