New ! Computer Science MCQ Practise Tests



Function Model Question Paper

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 01:30:00 Hrs
Total Marks : 50
    7 x 1 = 7
  1. The small sections of code that are used to perform a particular task is called

    (a)

    Subroutines

    (b)

    Files

    (c)

    Pseudo code

    (d)

    Modules

  2. Which of the following are mandatory to write the type annotations in the function definition?

    (a)

    { }

    (b)

    ( )

    (c)

    [ ]

    (d)

    < >

  3. Which of the following carries out the instructions defined in the interface?

    (a)

    Operating System

    (b)

    Compiler

    (c)

    Implementation

    (d)

    Interpreter

  4. The functions which cause side effects to the arguments passed are called

    (a)

    Impure function

    (b)

    Partial Functions

    (c)

    Dynamic Functions

    (d)

    Pure functions

  5. Which of the following contains a set a code that works an many kinds of input and produces a concrete output?

    (a)

    Function

    (b)

    Algorithm

    (c)

    Arguments

    (d)

    Language

  6. The function definition is introduced by the keyword

    (a)

    def

    (b)

    rec

    (c)

    let

    (d)

    infer

  7. Which of the following is an example of impure function?

    (a)

    Strlent( )

    (b)

    randomt( )

    (c)

    sqrfi( )

    (d)

    puref( )

  8. 8 x 2 = 16
  9. What is a subroutine?

  10. Define Function with respect to Programming language.

  11. Differentiate interface and implementation.

  12. 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

  13. Differentiate parameters and arguments.

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

  15. What is recursive function?

  16. Give an example of impure function.

  17. 4 x 3 = 12
  18. Mention the characteristics of Interface.

  19. Differentiate pure and impure function.

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

  21. Write a short note an syntax for function types.

  22. 3 x 5 = 15
  23. What are called Parameters and write a note on
    (i) Parameter without Type
    (ii) Parameter with Type

  24. Explain with example Pure and impure functions.

  25. Explain with an example interface and implementation.

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

Reviews & Comments about 12th Standard Computer Science - Function Model Question Paper

Write your Comment