New ! Computer Science MCQ Practise Tests



Python Functions Model Questions

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 01:00:00 Hrs
Total Marks : 50
    10 x 1 = 10
  1. A named blocks of code that are designed to do one specific job is called as

    (a)

    Loop

    (b)

    Branching

    (c)

    Function

    (d)

    Block

  2. In which arguments the correct positional order is passed to a function?

    (a)

    Required

    (b)

    Keyword

    (c)

    Default

    (d)

    Variable-length

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

    (a)

    define

    (b)

    pass

    (c)

    def

    (d)

    while

  4. Which of the following avoids repetition and makes high degree of code reusing?

    (a)

    Loop

    (b)

    Branching

    (c)

    Functions

    (d)

    Dictionaries

  5. Which of the following provides better modularity for your python application

    (a)

    function

    (b)

    tuples

    (c)

    dictionaries

    (d)

    control structures

  6. What will be the output if the return has no argument?

    (a)

    No

    (b)

    Return

    (c)

    None

    (d)

    End

  7. Which of the following is used to define variable-length arguments?

    (a)

    *

    (b)

    $

    (c)

    #

    (d)

    //

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

    (a)

    Synchronous

    (b)

    Lambda

    (c)

    User-defined

    (d)

    Built-in

  9. How many types of scopes in Python?

    (a)

    3

    (b)

    4

    (c)

    2

    (d)

    many

  10. print (ord('A') displays

    (a)

    65

    (b)

    A

    (c)

    a

    (d)

    97

  11. 5 x 2 = 10
  12. What is function?

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

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

  15. How the nested block are indented?

  16. Write the output for the following program.

  17. 5 x 3 = 15
  18. What is composition in functions?

  19. How recursive function works?

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

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

  22. Write the advantages of user-defined functions.

  23. 3 x 5 = 15
  24. Explain recursive function with an example.

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

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

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

Reviews & Comments about 12th Computer Science Chapter 7 Python Functions Model Question Paper

Write your Comment