New ! Computer Science MCQ Practise Tests

12th Standard Computer Science English Medium Function Reduced Syllabus Important Questions With Answer Key 2021

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 01:00:00 Hrs
Total Marks : 95

      Multiple Choice Questions

    22 x 1 = 22
  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 is a unit of code that is often defined within a greater code structure?

    (a)

    Subroutines

    (b)

    Function

    (c)

    Files

    (d)

    Modules

  3. Which of the following defines what an object can do?

    (a)

    Operating System

    (b)

    Compiler

    (c)

    Interface

    (d)

    Interpreter

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

    (a)

    Operating System

    (b)

    Compiler

    (c)

    Implementation

    (d)

    Interpreter

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

    (a)

    impure function

    (b)

    Partial Functions

    (c)

    Dynamic Functions

    (d)

    Pure functions

  6. What must the used wheo a bulk of statements to be repeated for many number of times?

    (a)

    Algorithm

    (b)

    Program

    (c)

    Subroutines

    (d)

    Parameters

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

  8. The function definition is introduced by the keyword

    (a)

    def

    (b)

    rec

    (c)

    let

    (d)

    infer

  9. The recursive function is defined using the keyword

    (a)

    let

    (b)

    let rec

    (c)

    name

    (d)

    infer

  10. Which of the following is a description of all functions in object oriented programming language?

    (a)

    Implementation

    (b)

    parameter

    (c)

    Interface

    (d)

    Arugument

  11. Which of the following is an instance created from the class?

    (a)

    parameter

    (b)

    function

    (c)

    subroutines

    (d)

    object

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

    (a)

    Strlent( )

    (b)

    randomt( )

    (c)

    sqrfi( )

    (d)

    puref( )

  13. In which type of function the return type is solely depends on its argument passed?

    (a)

    pure

    (b)

    impure

    (c)

    parameterized

    (d)

    monochromatize

  14. In which type of function the return type does not solely depends on its argument passed?

    (a)

    Pure

    (b)

    Parameterized

    (c)

    Impure

    (d)

    Monochromatize

  15. Subroutines are called as________

    (a)

    Algorithm

    (b)

    Interface

    (c)

    Parameters

    (d)

    Function

  16. _______are the variables in a function definition.

    (a)

    Arguments

    (b)

    Parameters

    (c)

    Identifiers

    (d)

    Operators

  17. Explicitly_________the types can help with debugging.

    (a)

    defining

    (b)

    annotating

    (c)

    informing

    (d)

    computing

  18. All functions are________ definitions.

    (a)

    static

    (b)

    dynamic

    (c)

    algorithmic

    (d)

    static

  19. A_________ combines the external interface with an implementation of the interface

    (a)

    parameter without type

    (b)

    class declaration

    (c)

    function definition

    (d)

    parameter with type

  20. In object oriented programs__________ are the interface

    (a)

    Implementation

    (b)

    parameters

    (c)

    Interface

    (d)

    Arguments

  21. In object oriented programs, how the object is processed and executed is__________

    (a)

    Implementation

    (b)

    Interface

    (c)

    recursion

    (d)

    function

  22. Stolen is an example________function.

    (a)

    user defined

    (b)

    impure

    (c)

    pure

    (d)

    recursive

    1. 2 Marks

    12 x 2 = 24
  23. What is a subroutine?

  24. Define Function with respect to Programming language.

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

  26. Differentiate interface and implementation

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

  28. Differentiate parameters and arguments.

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

  30. Give an example of function definition parameter with type

  31. What is recursive function?

  32. Give an example of pure function

  33. Give an example of impure function.

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

    1. 3 Marks

    8 x 3 = 24
  35. Mention the characteristics of Interface.

  36. Why strlen is called pure function?

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

  38. Differentiate pure and impure function.
     

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

  40. Explain the syntax of function definitions

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

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

    1. 5 Marks

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

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

  45. Explain with example Pure and impure functions.

  46. Explain with an example interface and implementation.

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

TN 12th Standard Computer Science free Online practice tests

Reviews & Comments about 12th Standard Computer Science English Medium Function Reduced Syllabus Important Questions With Answer Key 2021

Write your Comment