New ! Computer Science MCQ Practise Tests



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

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 01:00:00 Hrs
Total Marks : 100

      Multiple Choice Questions


    15 x 1 = 15
  1. Functions that calls itself are known as

    (a)

    User defined

    (b)

    Recursive

    (c)

    Built-in

    (d)

    Lambda

  2. Which of the following statement exits a function?

    (a)

    Exit

    (b)

    Def

    (c)

    Return

    (d)

    None of these

  3. In Python, statement in a block are written with

    (a)

    Function

    (b)

    Identification

    (c)

    Recursion

    (d)

    Parameters

  4. Which of the following functions is an example that supports variable-length arguments?

    (a)

    While

    (b)

    If

    (c)

    Print ()

    (d)

    Input()

  5. A with local scope can be accessed only within the block

    (a)

    keyword

    (b)

    variable

    (c)

    function

    (d)

    integer

  6. By default python stops calling recursive function after

    (a)

    2000

    (b)

    5000

    (c)

    1000

    (d)

    100

  7. Python _____ should not be used as function name.

    (a)

    Identifiers

    (b)

    Operators

    (c)

    Variables

    (d)

    Keywords

  8. ____ of variable refers to the part of the program, where it is accessible.

    (a)

    return

    (b)

    scope

    (c)

    definition

    (d)

    argument

  9. The __ arguments are also local to function

    (a)

    default

    (b)

    keyword

    (c)

    format

    (d)

    variable-length

  10. In _____ arguments, one can put arguments in improper order.

    (a)

    Default

    (b)

    Keyword

    (c)

    Required

    (d)

    Variable length arguments

  11. The ____ keyword used to read and write a global variable inside a function.

    (a)

    global

    (b)

    local

    (c)

    return

    (d)

    def

  12. The __ function is inverse of ord () function.

    (a)

    id ()

    (b)

    bin ()

    (c)

    chr ()

    (d)

    none of these

  13. ____ works like loop.

    (a)

    Function

    (b)

    Recursion

    (c)

    Composition

    (d)

    Specification

  14. You can convert any loop to ______

    (a)

    Recursion

    (b)

    Composition

    (c)

    Function

    (d)

    Branching

  15. ______ function returns the largest integer less than or equal to x.

    (a)

    cell ()

    (b)

    floor ()

    (c)

    pow ()

    (d)

    round ()

    1. 2 Marks


    10 x 2 = 20
  16. What is function?

  17. What are the main advantages of function?

  18. Define global scope.

  19. What is base condition in recursive function.

  20. How to set the limit for recursive function? Give an example.

  21. Write the output of the following program.

  22. Write the syntax of variable - length arguments.

  23. What are called tuples?

  24. What is anonymous function or lambda function?

  25. How the value returned from lambda function?

    1. 3 Marks


    10 x 3 = 30
  26. What happens when we modify global variable inside the function?

  27. What is composition in functions?

  28. How recursive function works?

  29. What are the points to be noted while defining a function?

  30. When do you call the function to perform a specify task?

  31. Write the advantages of user-defined functions.

  32. How will you invoke the function after, the parameters are recognized by their parameter names? Explain with an example.

  33. How python takes a default value in the function call? Explain with an example.

  34. What is the use of global keyword? Explain with an example?

  35. Write a note on (i) min (), (ii) max (), (iii) sum ().

    1. 5 Marks


    7 x 5 = 35
  36. Explain the different types of function with an example.

  37. Explain the scope of variables with an example.

  38. Explain the following built-in functions.
    (a) id ()
    (b) chr ()
    (c) round ()
    (d) type ()
    (e) pow ()

  39. Explain recursive function with an example.

  40. Explain different types arguments used in python with an example.

  41. Write a python program to find HCF of two numbers using recursion.

  42. Write a python program to find Fibonacci series of n terms using recursion.

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

Reviews & Comments about 12th Standard Computer Science English Medium Python Functions Reduced Syllabus Important Questions 2021

Write your Comment