Test Index
CBSE Class 12 Computer Science 2025 Paper Set 4
© examsnet.com
Question : 5 of 37
Marks:
+1,
-0
Identify the invalid Python statement out of the following options :
Solution:
Concept:In a function call, positional arguments must come before keyword arguments such as
sep= and end=.Explanation:(A) valid: prints A 10*(B) invalid: the positional argument 10 comes after the keyword argument sep="*":SyntaxError: positional argument follows keyword argument(C) valid: prints
A*10(D) valid: string repetition, prints AAAAAAAAAAAnswer:Option B (print("A",sep="*",10))© examsnet.com
Go to Question: