Class 12 Computer Science Practice Set: Functions
Explore reliable practice materials for Functions tailored for Class 12 learners. Utilizing these Computer Science worksheets ensures thorough preparation and strengthens problem-solving speed for upcoming school assessments.
Download Functions Worksheet PDF
View or download the dedicated Functions practice resource below. Engaging with these objective and subjective questions daily ensures continuous academic progress and mastery of the 2026-27 curriculum.
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
Free study material for Computer Science
Download CBSE Practice Material: Class 12 Computer Science Functions
Functions Printable Worksheet for Class 12 Computer Science
Access structured practice worksheets for Functions designed in alignment with the latest CBSE curriculum for Class 12 Computer Science. These printable problem sets help students build accuracy and prepare effectively for school tests.
How to Use These Practice Sheets
Cross-reference your completed exercises with comprehensive NCERT solutions for Class 12 Computer Science to ensure absolute clarity across all sub-topics in this chapter.
Enhance Speed with Online Practice
Wrap up your chapter revision by testing your knowledge against standard question formats. Everything on our platform is provided free of charge.
FAQs
You can download the teacher-verified PDF for CBSE Class 12 Computer Science Functions Worksheet Set 02 from StudiesToday.com. These practice sheets for Class 12 Computer Science are designed as per the latest CBSE academic session.
Yes, our CBSE Class 12 Computer Science Functions Worksheet Set 02 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.
Yes, we have provided detailed solutions for CBSE Class 12 Computer Science Functions Worksheet Set 02 to help Class 12 and follow the official CBSE marking scheme.
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.
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 02 without any registration.