CBSE 2026 · Central · Set 4 · Q9 · 1 mark
What will be the output of the following code ?
def f1(a,b=1):
print(a+b,end='-')
c=f1(1,2)
print(c,sep='*')
def f1(a,b=1):
print(a+b,end='-')
c=f1(1,2)
print(c,sep='*')Official answer
From CBSE’s own marking scheme for this paper.
(C)
$\displaystyle 3$-None
Marking-scheme solution
(C)
$\displaystyle 3$–None
FunctionsDefault ParametersApplymcq
More from Functions
CBSE Class 12 Computer Science past-paper question from the 2026board exam, with the answer as CBSE’s own marking scheme gives it. Where our answers come from.