CBSE Class 12 Computer Science Functions Worksheet Set B

Read and download free pdf of CBSE Class 12 Computer Science Functions Worksheet Set B. Download printable Computer Science Class 12 Worksheets in pdf format, CBSE Class 12 Computer Science Functions Worksheet has been prepared as per the latest syllabus and exam pattern issued by CBSE, NCERT and KVS. Also download free pdf Computer Science Class 12 Assignments and practice them daily to get better marks in tests and exams for Class 12. Free chapter wise worksheets with answers have been designed by Class 12 teachers as per latest examination pattern

Functions Computer Science Worksheet for Class 12

Class 12 Computer Science students should refer to the following printable worksheet in Pdf in Class 12. This test paper with questions and solutions for Class 12 Computer Science will be very useful for tests and exams and help you to score better marks

Class 12 Computer Science Functions Worksheet Pdf

Multiple Choice Questions

Question. Which of the following is a valid function name?
A. Start_game()
B. start game()
C. start-game()
D. All of the above
Answer. A

Question. If the return statement is not used in the function then which type of value will be returned by the function?
A.int
B. str
C. float
D. None
Answer. D

Question. Richa is working with a program where she gave some values to the function. She doesn’t know the term to relate these values. Help her by selecting the correct option.
A. function value
B. arguments or parameters
C. return values
D. function call
Answer. B

Question. What is the minimum and maximum value of c in the following code snippet? import random a=random.randint(3,5) b = random.randint(2,3) c = a + b print(C.
A. 3 , 5
B. 5, 8
C. 2, 3
D. 3, 3
Answer. B

Question. In python function, the function calling another function is known as and the function being called is known ______________________________
A. main, keyword
B. caller, called
C. called, caller
D. executer, execute
Answer. B

Question. What will be the output of the following code? print(“100+200”)
A. 300
B. 100200
C. 100+200
D. 200
Answer. C

Question. pow( ) function belongs to which library ?
A. math
B. string
C. random
D. maths
Answer. A

Question. What data type is the object below? L = (1, 23, ‘hello’,1) A. list
B. dictionary
C. array
D. tuple
Answer. D

Question. What is returned by int(math.pow(3, 2))?
A. 6
B. 9
C. error, third argument required
D. error, too many arguments
Answer. B

Question. Which of the following is not a type conversion functions?
A. int()
B. str()
C. input()
D. float()
Answer. C

Question. Write the output of the following: print(float())
Answer. 0.0

Question. Identify the module to which the following function load () belong to?
A. math
B. random
C. pickle
D. sys
Answer. C

Question. How many argument(s) a function can receive
A. Only one
B. 0 or many
C. Only more than one
D. At least one
Answer. B

Question. Give the output
def fun():
global a
a=10
print(A.
a=5
fun()
print(A.
A. 10
    10
B. 5
    10
C. 5
    5
D. 10
     5
Answer. A

Question. Value returning functions should be generally called from inside of an expression
A. True
B. False
Answer. A

Question. The variable declared inside the function is called a variable
A. global
B. local
C. external
D. none of the above
Answer. B

Question. These are predefined functions that are always available for use. For using them we don’t need to import any module
A. built in function
B. pre-defined function
C. user defined function
D. none of the above
Answer. A

Question. The of a variable is the area of the program where it may be referenced
A. external
B. global
C. scope
D. local
Answer. C

Question. If you want to communicate between functions i.e. calling and called statement, then you should use
A. values
B. return
C. arguments
D. none of the above
Answer. C

Question. Which of the following function header is correct?
A. def mul(a=2, b=5,C.
B. def mul(a=2, b, c=5)
C. def mul(a, b=2, c=5)
D. def mul(a=2, b, c=5)
Answer. C

Question. Find the flow of execution of the following code:
1. def calculate (a, B.:
2. res=a**b 3. return res
4.
5. def study(A.:
6. ans=calculate(a,B.
7. return ans
8.
9. n=2
10. a=study(n)
11. print(A.
A. 1 > 5 > 9 > 10 >6 > 2 > 3 > 7 > 11
B. 5 > 9 > 10 > 6 > 2 > 3 > 7 > 11
C. 9 > 10 > 5 > 1 > 6 > 2 > 3 > 7 > 11
D. None of the above
Answer. A

Question. Python resolves the scope of a name using the LEGB rule
A. True
B. False
Answer. A

Question. A void function internally returns legal empty value
A. None
B. Close()
C. Return
D. all
Answer. A

Question. When you use multiple type argument in function, then default argument take place
A. at beginning
B. at end
C. anywhere
D. none of the above
Answer. B

Question. A can be skipped in the function call statements
A. named parameter
B. default parameter
C. keyword parameters
D. all of the above
Answer. B

Question. What is the output of the following code? def cube(x): return x * x * x x = cube(3) print( x) A. 9
B. 3
C. 27
D. 30
Answer. C

Question. Which of the following items are present in the function header?
A. function name
B. parameter list
C. return value
D. Both A and B
Answer. D

Question. Choose correct answer def fun1(num): return num+5 print(fun1(5)) print(num)
A. Print value 10
B. Print value 5
C. Name Error
D. 25
Answer. C

Question. Predict the output of the following code
def func1(list1):
for x in list1:
print(x.lower(),end="#")
func1(["New","Dehli"])
A. [New,Dehli]
B. new#dehli#
C. newdehli#
D. New#Dehli#
Answer. B

Question. What will be the output of the following python code?
def mul (num1, num2):
x = num1 * num2 x = mul(20,30)
A. 600
B. None
C. No Output
D. 0
Answer. C

Question. Which of the following function header is Correct:
A. def fun(x=1,y)
B. def fun(x=1,y,z=2)
C. def fun(x=1,y=1,z=2)
D. def fun(x=1,y=1,z=2,w)
Answer. C

Question. What is the output of the program given below? x = 50 def func (x) :
x = 2
func (x)
print ('x is now', x)

A. x is now 50
B. x is now 2
C. x is now 100
D. Error
Answer. A

Question. Choose the correct output from the options given below. print(‘Welcome!’)
print(‘Iam’,__name__) #
is double underscore
A. Welcome!
B. Error Iam __main__
C. Welcome!
D. None of these Iam __name__
Answer. A

Question. Predict the output of the following code fragment
def update(x=10):
x+=15 print("x=",x)
x=20 update()
update()
print("x=",x)
A. x=20
    x=25
B. x=25
    x=25 
C. x=20
    x=25
D. x=25 
    x=20
Answer. D

 FUNCTIONS
 
1. W hat is a function? How is it useful?
 
2. W hat is an argument? Give an example?
 
3. F ind the error:
def minus(total, decrement)
output=total-decrement
return output
 
4. F rom the program code given below identify the parts mentioned below:
def processnumber(x):
x=72
return x+3
y=54
res=processnumber(y)
Identify these parts: function header, function call, arguments, parameters,function body, main program
 
5. W rite a function called calculate_area() that takes base and height as input arguments and return area of triangle as an output.(AREA=1/2*base*height)
Practice Worksheets Class 12 Computer Science
CBSE Class 12 Computer Science All Chapters Worksheet
CBSE Class 12 Computer Science Arrays Worksheet
CBSE Class 12 Computer Science Binary Files Worksheet
CBSE Class 12 Computer Science Boolean Algebra Worksheet
CBSE Class 12 Computer Science C++ Worksheet Set A
CBSE Class 12 Computer Science C++ Worksheet Set B
CBSE Class 12 Computer Science Classes And Objects Worksheet
CBSE Class 12 Computer Science Communication Technology Worksheet
CBSE Class 12 Computer Science Computer Networks Worksheet Set A
CBSE Class 12 Computer Science Computer Networks Worksheet Set B
CBSE Class 12 Computer Science Computer Networks Worksheet Set C
CBSE Class 12 Computer Science Constructor And Destructor Worksheet Set A
CBSE Class 12 Computer Science Constructor And Destructor Worksheet Set A
CBSE Class 12 Computer Science Constructor And Destructor Worksheet Set B
CBSE Class 12 Computer Science Data Base Concept Worksheet
CBSE Class 12 Computer Science Data File Handling Worksheet
CBSE Class 12 Computer Science Data Management Worksheet Set A
CBSE Class 12 Computer Science Data Management Worksheet Set B
CBSE Class 12 Computer Science Data Management Worksheet Set C
CBSE Class 12 Computer Science Data Management Worksheet Set D
CBSE Class 12 Computer Science Data Management Worksheet Set E
CBSE Class 12 Computer Science File Handling Worksheet Set A
CBSE Class 12 Computer Science File Handling Worksheet Set B
CBSE Class 12 Computer Science File Handling Worksheet Set C
CBSE Class 12 Computer Science Function In Python Program Worksheet
CBSE Class 12 Computer Science Functions Worksheet Set A
CBSE Class 12 Computer Science Functions Worksheet Set B
CBSE Class 12 Computer Science Header Files Worksheet
CBSE Class 12 Computer Science Implementation of Queue Worksheet Set A
CBSE Class 12 Computer Science Implementation of Queue Worksheet Set B
CBSE Class 12 Computer Science Implementation of Stack Worksheet
CBSE Class 12 Computer Science Inheritance Worksheet Set A
CBSE Class 12 Computer Science Inheritance Worksheet Set B
CBSE Class 12 Computer Science Pointers Worksheet
CBSE Class 12 Computer Science Programming and Computational Thinking Worksheet Set A
CBSE Class 12 Computer Science Programming and Computational Thinking Worksheet Set B
CBSE Class 12 Computer Science Programming and Computational Thinking Worksheet Set C
CBSE Class 12 Computer Science Programming and Computational Thinking Worksheet Set D
CBSE Class 12 Computer Science Programming and Computational Thinking Worksheet Set E
CBSE Class 12 Computer Science Programming and Computational Thinking Worksheet Set F
CBSE Class 12 Computer Science Python Worksheet
CBSE Class 12 Computer Science Recursion Worksheet
CBSE Class 12 Computer Science Revision Worksheet
CBSE Class 12 Computer Science Society Law and Ethics Worksheet Set A
CBSE Class 12 Computer Science Society Law and Ethics Worksheet Set B
CBSE Class 12 Computer Science Society Law and Ethics Worksheet Set C
CBSE Class 12 Computer Science Society Law and Ethics Worksheet Set D
CBSE Class 12 Computer Science Society Law and Ethics Worksheet Set E
CBSE Class 12 Computer Science Sql Worksheet Set A
CBSE Class 12 Computer Science Sql Worksheet Set B
CBSE Class 12 Computer Science Using Python Libraries Worksheet
CBSE Class 12 Computer Science Worksheet Set A Solved
CBSE Class 12 Computer Science Worksheet Set B Solved
CBSE Class 12 Computer Science Worksheet Set C Solved
CBSE Class 12 Computer Science Worksheet Set D Solved
CBSE Class 12 Computer Science Worksheet Set E Solved
CBSE Class 12 Computer Science Worksheet Set F Solved

Functions CBSE Class 12 Computer Science Worksheet

The above practice worksheet for Functions has been designed as per the current syllabus for Class 12 Computer Science released by CBSE. Students studying in Class 12 can easily download in Pdf format and practice the questions and answers given in the above practice worksheet for Class 12 Computer Science on a daily basis. All the latest practice worksheets with solutions have been developed for Computer Science by referring to the most important and regularly asked topics that the students should learn and practice to get better scores in their examinations. Studiestoday is the best portal for Printable Worksheets for Class 12 Computer Science students to get all the latest study material free of cost. Teachers of studiestoday have referred to the NCERT book for Class 12 Computer Science to develop the Computer Science Class 12 worksheet. After solving the questions given in the practice sheet which have been developed as per the latest course books also refer to the NCERT solutions for Class 12 Computer Science designed by our teachers. After solving these you should also refer to Class 12 Computer Science MCQ Test for the same chapter. We have also provided a lot of other Worksheets for Class 12 Computer Science which you can use to further make yourself better in Computer Science.

Where can I download latest CBSE Practice worksheets for Class 12 Computer Science Functions

You can download the CBSE Practice worksheets for Class 12 Computer Science Functions for the latest session from StudiesToday.com

Are the Class 12 Computer Science Functions Practice worksheets available for the latest session

Yes, the Practice worksheets issued for Functions Class 12 Computer Science have been made available here for the latest academic session

Is there any charge for the Practice worksheets for Class 12 Computer Science Functions

There is no charge for the Practice worksheets for Class 12 CBSE Computer Science Functions you can download everything free

How can I improve my scores by solving questions given in Practice worksheets in Functions Class 12 Computer Science

Regular revision of practice worksheets given on studiestoday for Class 12 subject Computer Science Functions can help you to score better marks in exams

Are there any websites that offer free Practice test papers for Class 12 Computer Science Functions

Yes, studiestoday.com provides all the latest Class 12 Computer Science Functions test practice sheets with answers based on the latest books for the current academic session