New ! Computer Science MCQ Practise Tests



12th Standard Computer Science Python Functions English Medium Free Online Test One Mark Questions with Answer Key 2020 - 2021

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

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

    Answer all the questions

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

    (a)

    Built-in

    (b)

    Recursion

    (c)

    Lambda

    (d)

    return

  2. Which function is called anonymous un-named function?

    (a)

    Lambda

    (b)

    Recursion

    (c)

    Function

    (d)

    define

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

  4. Which of the following is used, if you don't need to type all the python code for the same task again and again:

    (a)

    Statement

    (b)

    Function

    (c)

    Scope

    (d)

    Control structures

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

    (a)

    function

    (b)

    tuples

    (c)

    dictionaries

    (d)

    control structures

  6. Non-keyword variable arguments are called

    (a)

    List

    (b)

    Tuples

    (c)

    Dictionaries

    (d)

    Arguments

  7. How many number of return statement allowed in a function definition?

    (a)

    only one

    (b)

    only 2

    (c)

    only 4

    (d)

    multiple

  8. Write the output for the following code:
    c=1
    def add():
    c=c+3
    print (c)
    add()

    (a)

    1

    (b)

    4

    (c)

    3

    (d)

    error

  9. print (ord('A') displays

    (a)

    65

    (b)

    A

    (c)

    a

    (d)

    97

  10. Print (chr(65)) displays

    (a)

    65

    (b)

    A

    (c)

    a

    (d)

    c65

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

Reviews & Comments about 12th Standard Computer Science Python Functions English Medium Free Online Test One Mark Questions with Answer Key 2020 - 2021

Write your Comment