CBSE Class 12 Computer Science Functions Worksheet Set B

Access the latest CBSE Class 12 Computer Science Functions Worksheet Set B. We have provided free printable Class 12 Computer Science worksheets in PDF format, specifically designed for Functions. These practice sets are prepared by expert teachers following the 2025-26 syllabus and exam patterns issued by CBSE, NCERT, and KVS.

Functions Computer Science Practice Worksheet for Class 12

Students should use these Class 12 Computer Science chapter-wise worksheets for daily practice to improve their conceptual understanding. This detailed test papers include important questions and solutions for Functions, to help you prepare for school tests and final examination. Regular practice of these Class 12 Computer Science questions will help improve your problem-solving speed and exam accuracy for the 2026 session.

Download 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)

Functions CBSE Class 12 Computer Science Worksheet

Students can use the Functions practice sheet provided above to prepare for their upcoming school tests. This solved questions and answers follow the latest CBSE syllabus for Class 12 Computer Science. You can easily download the PDF format and solve these questions every day to improve your marks. Our expert teachers have made these from the most important topics that are always asked in your exams to help you get more marks in exams.

NCERT Based Questions and Solutions for Functions

Our expert team has used the official NCERT book for Class 12 Computer Science to create this practice material for students. After solving the questions our teachers have also suggested to study the NCERT solutions  which will help you to understand the best way to solve problems in Computer Science. You can get all this study material for free on studiestoday.com.

Extra Practice for Computer Science

To get the best results in Class 12, students should try the Computer Science MCQ Test for this chapter. We have also provided printable assignments for Class 12 Computer Science on our website. Regular practice will help you feel more confident and get higher marks in CBSE examinations.

Where can I download the latest PDF for CBSE Class 12 Computer Science Functions Worksheet Set B?

You can download the teacher-verified PDF for CBSE Class 12 Computer Science Functions Worksheet Set B from StudiesToday.com. These practice sheets for Class 12 Computer Science are designed as per the latest CBSE academic session.

Are these Computer Science Class 12 worksheets based on the 2026 competency-based pattern?

Yes, our CBSE Class 12 Computer Science Functions Worksheet Set B includes a variety of questions like Case-based studies, Assertion-Reasoning, and MCQs as per the 50% competency-based weightage in the latest curriculum for Class 12.

Do you provide solved answers for CBSE Class 12 Computer Science Functions Worksheet Set B?

Yes, we have provided detailed solutions for CBSE Class 12 Computer Science Functions Worksheet Set B to help Class 12 and follow the official CBSE marking scheme.

How does solving CBSE Class 12 Computer Science Functions Worksheet Set B help in exam preparation?

Daily practice with these Computer Science worksheets helps in identifying understanding gaps. It also improves question solving speed and ensures that Class 12 students get more marks in CBSE exams.

Is there any charge for the Class 12 Computer Science practice test papers?

All our Class 12 Computer Science practice test papers and worksheets are available for free download in mobile-friendly PDF format. You can access CBSE Class 12 Computer Science Functions Worksheet Set B without any registration.