New ! Computer Science MCQ Practise Tests



Python Functions Model Question Paper

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 01:00:00 Hrs
Total Marks : 40
    5 x 1 = 5
  1. Which of the following keyword is used to define the function testpython(): ?

    (a)

    define

    (b)

    pass

    (c)

    def

    (d)

    while

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

    (a)

    No

    (b)

    Return

    (c)

    None

    (d)

    End

  3. Non-keyword variable arguments are called

    (a)

    List

    (b)

    Tuples

    (c)

    Dictionaries

    (d)

    Arguments

  4. Which of the following statement causes your function to exit?

    (a)

    break

    (b)

    pass

    (c)

    print

    (d)

    return

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

    (a)

    keyword

    (b)

    variable

    (c)

    function

    (d)

    integer

  6. 5 x 2 = 10
  7. What is base condition in recursive function.

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

  9. Write the output of the following program.

  10. What are arguments? What are the types?

  11. Write a note on return statement syntax.

  12. 5 x 3 = 15
  13. Differentiate ceil() and floor() function?

  14. Write a Python code to check whether a given year is leap year or not.

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

  16. Write the advantages of user-defined functions.

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

  18. 2 x 5 = 10
  19. Explain different types arguments used in python with an example.

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

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

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

Write your Comment