New ! Computer Science MCQ Practise Tests



Function 3 Marks and 5 Marks Questions

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 01:00:00 Hrs
Total Marks : 38
    6 x 3 = 18
  1. Mention the characteristics of Interface.

  2. Why strlen is called pure function?

  3.  What is the side effect of impure function. Give example.

  4. Differentiate pure and impure function.

  5. Wha happens if you modify a variable outside the function? Give an example.

  6. Write an algorithm to check whether the entered number is even or odd.

  7. 4 x 5 = 20
  8. What are called Parameters and write a note on
    (i) Parameter without Type
    (ii) Parameter with Type

  9. Identify in the following program
    let rec gcd a b:=
               if b <> 0 then gcd b (a mod b)
               else return a:
    i) Name of the function
    ii) Identify the statement which tells it is a recursive function
    iii) Name of the argument variable
    iv) Statement which invoke the function recursively
    v) Statement which terminates the recursion

  10. Explain with example Pure and impure functions.

  11. Explain with an example interface and implementation.

*****************************************

Reviews & Comments about 12th Computer Science - Function 3 Marks and 5 Marks Questions

Write your Comment