Professional Documents
Culture Documents
S.No Questions On Functions & Strings: Program Using Functions
S.No Questions On Functions & Strings: Program Using Functions
C) Box A contains a Red color ball and Box B contains a Green color ball. Suggest a way
to exchange the balls in Box A and Box B using function (Call by reference).
a) VIT University Academic Section is maintaining students details with full name (First
name and Last name separated by space) in the database. Due to inconvenience in printing
the names, they have decided to display it in short, as follows:
Full form : First Name Last Name
Arunkumar Tiwari
Short Form : Arunkumar T
Write a program to implement the above.
b) Principal of a school has been decided to divide the students into two houses (teams)
namely Fire and Water based on their name. If the total count of their name is odd then
they will be in the Fire house, else Water house. The total count is calculated by adding
ASCII value of individual alphabet in their name. Help the Principal to complete the task.