You are on page 1of 2

Syllabus for PT 2

Unit 3: Functions

● Introduction to functions

● Function prototype, Function definition, accessing a function and parameter passing.

● Recursion.

Unit 4: Strings

● Definition and initialization of String

● String functions

Unit 5: Structure and Union

● Concept of Structure and Union

● Declaration and Initialization of structure and union

● Nested structures

● Array of Structures

● Passing structure to functions

Some important Questions

1) Write a program to print the merit list of student details along with grade pass/fail which
has provision of 5 marks grace if student fails using Structures
2) Write a program to create student marksheet for PCM marks using Structure within
Structure, also use Sort function to sort the marks in an ascending order
3) Explain following functions with proper example.
a) strcmp( ) b) strcat() c)gets() d) strcpy e)strrev()
4) Compare and contrast Structure and Union with examples
5) Explain precompiled directives in C
6) Explain different storage classes in C
7) Write a program to implement Union
8) Write a program for interchanging the values of two variables using functions
9) Explain with example Call by value and Call by reference with respect to Functions
10) Write a program to calculate factorial of a number using Function
11) Write a program to using functions to evaluate following expression
[T]=([A] + [B])T

12) Write a program to sort the names of students in alphabetical order

13) Write a program to check whether the given string is palindrome or not

---------------------------------------------------------------------------------------------------------------------

Functions 4 Strings 3 2 General


Structure 4
3 Program 1 Theory 3 program 1 Theory 2 program 1 Theory

You might also like