Question collections of FUNCTION Procedure

1.      Write a function procedure to print the distance travelled by a car. The program should ask initial velocity, final velocity and time taken by the car and the program should pass them as parameter list when a function procedure is called.
2.      Write a function program to check whether an input number is “positive” or “negative” or zero. The program should ask a number from user in main module and pass it as parameter list when a function program is called.
3.      Write a function program to decide whether an input number is even or odd. The program should ask a number from user in main module and pass it as parameter list.
4.      Write a function procedure to print square of first 10 natural numbers.
5.      Write a function procedure to display the sum of digits in an input number. The program should ask a number from user in main module and pass it as parameter list when a function is called.
6.      Write a function procedure to display sum of even digits in an input number. The program should ask a number from user in main module and pass it as parameter when function is called.
7.      Write a function procedure to display the total number of digits in an input number. The program should ask a number from user in main module and pass it as parameter list when a function is called.
8.      Write a function procedure to display the product of digits in an input number. The program should ask a number from user in main module and pass it as parameter list.
9.      Write a function procedure to return the sum of ASCII value of each character of a word. The program should ask a string from user in main module and pass it as parameter list when function is called.
10.  Write a function procedure to check whether an input string is palindrome or not. The program should ask a string from user in main module and pass it as parameter list when a function is called.
11.  Write a function procedure to print an input word into alternate capital, For example if input word is “SCIENCE” , the output should be “ScIeNcE”. The program should pass a string as parameter list when function is called.
12.  Write a function procedure to print an input name of a person in abbreviate form. For example, if you input a name “”Sachine Kumar Malla”, the output given by the function should be SKM.
13.  Write a function procedure to return the value of total number of consonants in a sentence. The program should ask a sentence from user in main module and pass it as parameter list when a function is called.
14.  Write a function procedure to check whether an input number is palindrome or not. The program should ask a number from user in main module and pass it as parameter list when function is called without using string function like LEN and MID$.
15.  Write a program to input the currency and exchange rate then convert into US$ and display the result using FUNCTION-END FUNCTION.
16.  Write a program to declare user-defined function using FUNCTION-END FUNCTION to calculate area and volume of a room. The program should ask input the value of length, breadth and height of the room and calculate area and volume of room by calling the defined function.
17.  Write a program using FUNCTION-END FUNCTION statement to input and store 10 different numbers in an array then find the greatest number by calling the defined function.
18.  Write a User Defined Function to input a word and count the number of vowels.
19.  Write a User Defined Function to number and check if it is Prime or Composite.
20.  Write a User Defined Function to input sentence and count the number of words in it.
21.  Write a User Defined Function to input a number and check if it is multiple of 15 or not.
22.  Write a User Defined Function to input number in decimal and find its binary equivalent.
23.  Write a User Defined Function to input a number in decimal and find its hexadecimal equivalent.
24.  Write a program to convert the temperature given in centigrade to Fahrenheit using FUNCTION-END FUNCTION statement.
25.  Write a program to declare user-defined function program using FUNCTION-END FUNCTION statement. The program should input three different strings as parameter lists and should print the longest strings by calling the defined function.

26.  Write a program to declare a user-defined function program to reverse the given string using FUNCTION-END FUNCTION statement. The program should input string in the main program and reverse the same string using the defined function. 

Comments