Working With Functions MCQs with Answers for Class 12 CBSE Term I | MCQs solutions

Working With Functions MCQs with Answers for Class 12 CBSE Term I 2021 - 2021-2022 


Working With Functions MCQs with Answers for Class 12 CBSE computer science


Chapter Working With Functions 

MARKS 35
Note Click below Download link for  full MCQs with Answers for 35 marks 

1.Which keyword is use for function?

a) fun    b) define    c) def

2.What is the output of the below program?

def sayHello():

    print('Hello World!') 

sayHello() 

sayHello()

a)

Hello World!

Hello World!

b)

Hello World!

Hello World!

c)

Hello

Hello

3.Which are the advantages of functions in python?

a) Reducing duplication of code   b) Improving the clarity of the code c) All the above

4.What is the result of this code?

def print_double(x):

    print(2 ** x)

print_double(2)

(a) 8    (b) 6    (c) 4

5.Python names the top level segment (main program) as _________

a) __main__  b) execution  c) arguments  d) None 

6.Which of the following keywords marks the beginning of the function block?

(a) func   (b) define    (c) def

7.Which of the following items are present in the function header?

(a) function name only   (b) parameter list only   (c) return value

8.Which of the following refers to mathematical function?

a) sqrt    b) rhombus    c) add

9.What is the output of below program?

def cube(x):

return x * x * x 

x = cube(3) 

print( x)

a) 9    b) 3   c) 27

10.What is a variable defined outside a function referred to as?

a)A static variable   b)A global variable   c)A local variable

Aslo Check & Download 

Python Revision Tour | MCQs with Answers for Class 12 CBSE | Objective Type Questions | Multiple Choice Question -2021-2022

Python - Data Representation multiple choice questions for class 11 cbse Computer Science 083 New

Boolean logic MCQs with Answers for Class 11 CBSE | Fillups, Descriptive & Objective Type Questions | Multiple Choice Question -2021-2022

Computer Networks MCQs with Answers for Class 12 CBSE | Objective Type Questions | Multiple Choice Question -2021-2022

11.What is a variable defined inside a function referred to as?

a)A global variable   b)A volatile variable   c)A local variable

12.A variable created or defined within a function body is classified as:

(a) local   (b) global   (c) built-in

13.In Python, function can be return only one value.

a) True    b) False

14.The variable declared outside a function is called a global variable. 

a) True    b) False

15.Name the statement that sends back a value from a function.

(a) print    (b) input   (c) return

Click Download link for full MCQs with Answers for 35 marks

Post a Comment

If you any doubts, Please let me know

Previous Post Next Post