New ! Computer Science MCQ Practise Tests



Python Functions One Mark Questions

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 00:30:00 Hrs
Total Marks : 10
    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. 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

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

    (a)

    define

    (b)

    pass

    (c)

    def

    (d)

    while

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

    (a)

    Control

    (b)

    Lambda

    (c)

    Recursion

    (d)

    Built in

  7. Which of the following statement exits a function?

    (a)

    Exit

    (b)

    Def

    (c)

    Return

    (d)

    None of these

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

    (a)

    *

    (b)

    $

    (c)

    #

    (d)

    //

  9. Non-keyword variable arguments are called

    (a)

    List

    (b)

    Tuples

    (c)

    Dictionaries

    (d)

    Arguments

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

    (a)

    While

    (b)

    If

    (c)

    Print ()

    (d)

    Input()

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

Reviews & Comments about 12th Standard Computer Science - Python Functions One Mark Question and Answer

Write your Comment