New ! Computer Science MCQ Practise Tests



12th Standard Computer Science Python Functions English Medium Free Online Test One Mark Questions 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 named blocks of code that are designed to do one specific job is called as

    (a)

    Loop

    (b)

    Branching

    (c)

    Function

    (d)

    Block

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

    (a)

    define

    (b)

    for

    (c)

    finally

    (d)

    def

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

    (a)

    ; (semicolon)

    (b)

    . (dot)

    (c)

    : (colon)

    (d)

    $ (dollar)

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

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

    (a)

    define

    (b)

    pass

    (c)

    def

    (d)

    while

  6. Python _____ should not be used as function name.

    (a)

    Identifiers

    (b)

    Operators

    (c)

    Variables

    (d)

    Keywords

  7. A block within a block is called _____ block.

    (a)

    Nested

    (b)

    Compressed

    (c)

    Control

    (d)

    Called

  8. ____ of variable refers to the part of the program, where it is accessible.

    (a)

    return

    (b)

    scope

    (c)

    definition

    (d)

    argument

  9. When a variable is created inside the _____ the variable becomes local to it.

    (a)

    program

    (b)

    function

    (c)

    block

    (d)

    global

  10. _____ is applied in any recursive function is known as base condition.

    (a)

    Finite iteration

    (b)

    Default arguments

    (c)

    Keyword arguments

    (d)

    Infinite iteration

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

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

Write your Comment