New ! Computer Science MCQ Practise Tests



Python Functions 1 Mark Book Back Question Paper With Answer Key

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 00:10:00 Hrs
Total Marks : 10

    Multiple Choice Question

    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. A Function which calls itself is called as

    (a)

    Built-in

    (b)

    Recursion

    (c)

    Lambda

    (d)

    return

  3. Which of the following keyword is used to begin the function block?

    (a)

    define

    (b)

    for

    (c)

    finally

    (d)

    def

  4. Which function is called anonymous un-named function

    (a)

    Lambda

    (b)

    Recursion

    (c)

    Function

    (d)

    define

  5. Which of the following keyword is used to exit a function block?

    (a)

    define

    (b)

    return

    (c)

    finally

    (d)

    def

  6. While defining a function which of the following symbol is used.

    (a)

    ; (semicolon)

    (b)

    . (dot)

    (c)

    : (colon)

    (d)

    $ (dollar)

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

    (a)

    Required

    (b)

    Keyword

    (c)

    Default

    (d)

    Variable-length

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

  9. Pick the correct one to execute the given statement successfully.
    if ____ : print(x, " is a leap year")

    (a)

    x%2=0

    (b)

    x%4==0

    (c)

    x/4=0

    (d)

    x%4=0

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

    (a)

    define

    (b)

    pass

    (c)

    def

    (d)

    while

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

Reviews & Comments about 12th Standard Computer Science English Medium - Python Functions 1 Mark Book Back Question Paper and Answer Key 2022 - 2023

Write your Comment