Question 1 / 3 · latest firstNext ›
✓ Board-verified
Computer Science · 2026 · 1 mark
CBSE 2026 · Central · Set 4 · Q9
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=' ')
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='*')Official answer
(C)
$\displaystyle 3$-None
Marking-scheme solution
(C)
$\displaystyle 3$–None
More from Functions
- What is the difference between default parameters and positional parameters in Python? Also give an example of a function header which uses both.2026
- The function given below is written to accept a string s as a parameter and return the number of vowels appearing in the string. The code has certain…2026
CBSE Class 12 Computer Science past-paper question from the 2026 board exam, with the answer as CBSE’s own marking scheme gives it. Where our answers come from.