New ! Computer Science MCQ Practise Tests



Function - Two Marks Study Materials

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 01:00:00 Hrs
Total Marks : 24
    12 x 2 = 24
  1. What is a subroutine?

  2. Define Function with respect to Programming language.

  3. Write the inference you get from X : = (78).

  4. Differentiate interface and implementation.

  5. Which of the following is a normal function definition and which is recursive function definition
    i) let rec sum x y:
            return x + y
    ii) let disp:
           print ‘welcome’
    iii) let rec sum num:
             if (num!=0) then return num + sum (num-1)
             else
                     return num

  6. Differentiate parameters and arguments.

  7. Give an example of function definition parameter without type.

  8. Give an example of function definition parameter with type.

  9. What is recursive function?

  10. Give an example of pure function.

  11. Give an example of impure function.

  12. Construct on algorithm that arranges meetings between these two types so that they change their color to the third type. In the end, all should display the same color.

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

Reviews & Comments about 12th Computer Science Function - Two Marks Study Materials

Write your Comment