Page 96 - Modular_V2.0_C++_Flikpbook
P. 96

3.  Which of the following is like a placeholder?

                           a.  Variable                                 b.  Parameter
                           c.  Function                                 d.  Block
                       4.  ……………………. a function means giving a body of the function.
                           a.  Defining                                 b.  Declaring

                           c.  Prototyping                              d.  Calling
                       5.  Which of the following is called an actual argument?

                           a.  Parameters passed at the time of calling a function
                           b.  Parameters passed at the time of declaring a function
                           c.  Both a and b
                           d.  None of these

                       6.  There are two methods to call a function: call by value and ……………………..
                           a.  Call by reference                        b.  Call by parameter
                           c.  Call by argument                         d.  Call by variable

                  B.   Write ‘T’ for true and ‘F’ for false.
                       1.  A function allows you to reuse the code many times.                            ……………………

                       2.  The functions written in the header files are called library functions.        ……………………
                       3.  Call by value is a technique of passing the values of variables instead of
                           actual variables to a function while calling it.                               ……………………

                       4.  Local variables can be accessed outside the function in which they are declared.  ……………………
                       5.  Global variables can be declared inside a function.                            ……………………

                  C.   Fill in the blanks using the words given below:


                                           reference, scope resolution, definition, functions, arguments


                       1.  The (::) is known as …………………… operator.
                       2.  In call by …………………… technique, reference or memory address of variables are passed to a
                           function.

                       3.  In call by value, changes made to the parameters inside the function have no effect on the
                           …………………….
                       4.  The …………………… of a function contains the functionality of the function within curly braces.
                       5.  …………………… simplify the code by breaking it into smaller units.

                  D.   Short answer type questions.
                       1.  What is a function?

                       2.  What is a function prototype?
                       3.  What is the use of void in a function definition?




                   94
                          Touchpad MODULAR (Ver. 2.0)
   91   92   93   94   95   96   97   98   99   100   101