New ! Computer Science MCQ Practise Tests



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

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

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

      Multiple Choice Questions


    15 x 1 = 15
  1. A Function which calls itself is called as

    (a)

    Built-in

    (b)

    Recursion

    (c)

    Lambda

    (d)

    return

  2. Read the following statement and choose the correct statement(s).
    (I) In Python, you don’t have to mention the specific data types while defining function.
    (II) Python keywords can be used as function name.

    (a)

    I is correct and II is wrong

    (b)

    Both are correct

    (c)

    I is wrong and II is correct

    (d)

    Both are wrong

  3. Which of the following keyword is used to define the function testpython(): ?

    (a)

    define

    (b)

    pass

    (c)

    def

    (d)

    while

  4. How many types of functions are there in python?

    (a)

    3

    (b)

    4

    (c)

    2

    (d)

    5

  5. Which of the following is not a type of function in python?

    (a)

    Control

    (b)

    Lambda

    (c)

    Recursion

    (d)

    Built in

  6. Which function can take any number of arguments and must return one value in the form of an expression?

    (a)

    user defined

    (b)

    recursive

    (c)

    lambda

    (d)

    default

  7. Which function is mostly used for creating small and one time anonymous function?

    (a)

    Synchronous

    (b)

    Lambda

    (c)

    User-defined

    (d)

    Built-in

  8. Which function is inverse of chr () function?

    (a)

    type ()

    (b)

    id ()

    (c)

    formula ()

    (d)

    ord ()

  9. While defining syntax the text which is given in _____ is optional.

    (a)

    ()

    (b)

    <>

    (c)

    []

    (d)

    {}

  10. The __ arguments are also local to function

    (a)

    default

    (b)

    keyword

    (c)

    format

    (d)

    variable-length

  11. When a variable is created inside the _____ the variable becomes local to it.

    (a)

    program

    (b)

    function

    (c)

    block

    (d)

    global

  12. A _____ variable only exists while the function is executing.

    (a)

    global

    (b)

    local

    (c)

    file

    (d)

    function

  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. _____ is applied in any recursive function is known as base condition.

    (a)

    Finite iteration

    (b)

    Default arguments

    (c)

    Keyword arguments

    (d)

    Infinite iteration

    1. 2 Marks


    10 x 2 = 20
  16. What are the main advantages of function?

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

  18. How the statements in a black are written in python?

  19. How the nested block are indented?

  20. Write the syntax for passing arguments to functions.

  21. What are arguments? What are the types?

  22. What are called tuples?

  23. What is anonymous function or lambda function?

  24. How the value returned from lambda function?

  25. Write the output for the following.
    (i) Print (ord ('a')
    (ii) Print (chr (65))
    (iii) Print (bin (15))
    (iv) Print (format (15,'b'))

    1. 3 Marks


    10 x 3 = 30
  26. Write the rules of local variable.

  27. What happens when we modify global variable inside the function?

  28. Differentiate ceil() and floor() function?

  29. What is composition in functions?

  30. How recursive function works?

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

  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. Write a note of return statement.

  35. Write a note on (i) floor (), (ii) ceil (), (iii) Sprt ().

    1. 5 Marks


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

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

  38. Write a Python code to find the L.C.M. of two numbers.

  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 With Answer key 2021

Write your Comment