CLASS - VIII
CHAPTER - 6 ( FUNCTIONS IN DEPTH )
Worksheets
Standard Questions
1. What are functions in programming?
ANSWER: A function is a block of code made up of
a set of steps that results in a single
specific action. The programmer will give
this action a simple name. Giving a
simple name to a function, increases the
chances that the set of steps can easily
talked about and reused again and again
in the program.
2. What are the benefits of using functions?
ANSWER: Increases readability makes code organized and easy to understand.
Reduces code length: redundant code is removed and replaced by functions.
Reusability: Code reusability increases.
3. Is it possible to return a value from function?
ANSWER: Yes it is possible to return a value from function.
4. What are function parameters?
ANSWER: Function parameters are variables
which are taken as inputs to the function to do a task when the function
is called. An argument is the value
passed to a function which is received by
the function as parameter.