Computer Science - Class 12
Solutions to CBSE Sample Paper - Computer Science Class 12

ASSERTION AND REASONING based questions. Mark the correct choice as

(a) Both A and R are true and R is the correct explanation for A

(b) Both A and R are true and R is not the correct explanation for A

(c) A is True but R is False

(d) A is false but R is True

 

Assertion (A):- If the arguments in function call statement match the

number and order of arguments as defined in the function definition,

such arguments are called positional arguments.

Reasoning (R):- During a function call, the argument list first contains

default argument(s) followed by positional argument(s).

 

Answer:

If the arguments in a function call match the number and order of arguments as defined in the function definition, such arguments are called positional arguments.

During a function call, the argument list should first contain the positional argument(s) followed by default argument(s).

Thus,

  • Assertion is true.
  • Reasoning is false.

So, the correct answer is (c) A is True but R is False.

Go Ad-free
Davneet Singh's photo - Co-founder, Teachoo

Made by

Davneet Singh

Davneet Singh has done his B.Tech from Indian Institute of Technology, Kanpur. He has been teaching from the past 14 years. He provides courses for Maths, Science and Computer Science at Teachoo