New ! Computer Science MCQ Practise Tests

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

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

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

      Multiple Choice Questions

    27 x 1 = 27
  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 is a distinct syntactic block?

    (a)

    Subroutines

    (b)

    Function

    (c)

    Definition

    (d)

    Modules

  4. The values which are passed to a function definition are called

    (a)

    Arguments

    (b)

    Subroutines

    (c)

    Function

    (d)

    Definition

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

    (a)

    Curly braces

    (b)

    Parentheses

    (c)

    Square brackets

    (d)

    indentations

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

    (a)

    Operating System

    (b)

    Compiler

    (c)

    Interface

    (d)

    Interpreter

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

    (a)

    Operating System

    (b)

    Compiler

    (c)

    Implementation

    (d)

    Interpreter

  8. The functions which will give exact result when same arguments are passed are called

    (a)

    Impure functions

    (b)

    Partial Functions

    (c)

    Dynamic Functions

    (d)

    Pure functions

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

    (a)

    impure function

    (b)

    Partial Functions

    (c)

    Dynamic Functions

    (d)

    Pure functions

  10. Which of the following are expressed using statements of a programming language?

    (a)

    Functions

    (b)

    Algorithm

    (c)

    Interface

    (d)

    Implementation

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

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

  13. The recursive function is defined using the keyword

    (a)

    let

    (b)

    let rec

    (c)

    name

    (d)

    infer

  14. A function definition which call itself is called

    (a)

    user defined function

    (b)

    built-in function

    (c)

    derived function

    (d)

    recursive function

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

    (a)

    Implementation

    (b)

    parameter

    (c)

    Interface

    (d)

    Arugument

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

    (a)

    parameter

    (b)

    function

    (c)

    subroutines

    (d)

    object

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

    (a)

    Strlent( )

    (b)

    randomt( )

    (c)

    sqrfi( )

    (d)

    puref( )

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

    (a)

    pure

    (b)

    impure

    (c)

    parameterized

    (d)

    monochromatize

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

    (a)

    Pure

    (b)

    Parameterized

    (c)

    Impure

    (d)

    Monochromatize

  20. Subroutines are called as________

    (a)

    Algorithm

    (b)

    Interface

    (c)

    Parameters

    (d)

    Function

  21. _______are the variables in a function definition.

    (a)

    Arguments

    (b)

    Parameters

    (c)

    Identifiers

    (d)

    Operators

  22. Explicitly_________the types can help with debugging.

    (a)

    defining

    (b)

    annotating

    (c)

    informing

    (d)

    computing

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

  24. In object oriented programs__________ are the interface

    (a)

    Implementation

    (b)

    parameters

    (c)

    Interface

    (d)

    Arguments

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

    (a)

    Implementation

    (b)

    Interface

    (c)

    recursion

    (d)

    function

  26. Stolen is an example________function.

    (a)

    user defined

    (b)

    impure

    (c)

    pure

    (d)

    recursive

  27. Evaluation of__________ functions does not cause any side effects to its output?

    (a)

    Impure

    (b)

    pure

    (c)

    Recursive

    (d)

    built-in

    1. 2 Marks

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

  29. Define Function with respect to Programming language.

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

  31. Differentiate interface and implementation

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

  33. Differentiate parameters and arguments.

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

  35. Give an example of function definition parameter with type

  36. What is recursive function?

  37. Give an example of pure function

  38. Give an example of impure function.

  39. 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
  40. Mention the characteristics of Interface.

  41. Why strlen is called pure function?

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

  43. Differentiate pure and impure function.
     

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

  45. Explain the syntax of function definitions

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

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

    1. 5 Marks

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

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

  50. Explain with example Pure and impure functions.

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

Write your Comment