Programming and Problem Solving through Python : Introduction to Python

<p style="letter-spacing: 0.14px;">What will be the output of the following Python code</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">def func(a, b=5, c=10): print('a is', a, 'and b is', b, 'and c is', c) func(13, 17) func(a=2, c=4) func(5,7,9)</pre><p style="letter-spacing: 0.14px;">(A) a is 13 and b is 15 and c is 10</p><p style="letter-spacing: 0.14px;">&nbsp; &nbsp; &nbsp;a is 2 and b is 5 and c is 4</p><p style="letter-spacing: 0.14px;">&nbsp; &nbsp; &nbsp;a is 5 and b is 7 and c is 9</p><p style="letter-spacing: 0.14px;">(B) a is 13 and b is 17 and cis 10</p><p style="letter-spacing: 0.14px;">&nbsp; &nbsp; &nbsp;a is 2 and b is 4 and c is 4</p><p style="letter-spacing: 0.14px;">&nbsp; &nbsp; &nbsp;a is 5 and b is 9 and c is 7</p><p style="letter-spacing: 0.14px;">(C) a is 13 and b is 17 and c is 10</p><p style="letter-spacing: 0.14px;">&nbsp; &nbsp; &nbsp; a is 2 and b is 5 and cis 4</p><p style="letter-spacing: 0.14px;">&nbsp; &nbsp; &nbsp; a is 5 and b is 7 and c is 9</p><p style="letter-spacing: 0.14px;">(D) None of the above</p> , <p></p><p>What will be the output of the following Python code</p> <pre><span style="font-size: 12.6px;">def func(a, b=5, c=10): print('a is', a, 'and b is', b, 'and c is', c) func(13, 17) func(a=2, c=4) func(5,7,9)</span></pre> <p><span style="font-size: 14px;">(A) a is 13 and b is 15 and c is 10</span></p><p><span style="font-size: 14px;">&nbsp; &nbsp; &nbsp;a is 2 and b is 5 and c is 4</span></p><p><span style="font-size: 14px;">&nbsp; &nbsp; &nbsp;a is 5 and b is 7 and c is 9</span></p><p><span style="font-size: 14px;">(B) a is 13 and b is 17 and cis 10</span></p><p><span style="font-size: 14px;">&nbsp; &nbsp; &nbsp;a is 2 and b is 4 and c is 4</span></p><p><span style="font-size: 14px;">&nbsp; &nbsp; &nbsp;a is 5 and b is 9 and c is 7</span></p><p><span style="font-size: 14px;">(C) a is 13 and b is 17 and c is 10</span></p><p><span style="font-size: 14px;">&nbsp; &nbsp; &nbsp; a is 2 and b is 5 and cis 4</span></p><p><span style="font-size: 14px;">&nbsp; &nbsp; &nbsp; a is 5 and b is 7 and c is 9</span></p><p><span style="font-size: 14px;">(D) None of the above</span></p>

<p></p><p>What will be the output of the following Python code</p> <pre><span style="font-size: 12.6px;">def func(a, b=5, c=10): print('a is', a, 'and b is', b, 'and c is', c) func(13, 17) func(a=2, c=4) func(5,7,9)</span></pre> <p><span style="font-size: 14px;">(A) a is 13 and b is 15 and c is 10</span></p><p><span style="font-size: 14px;">&nbsp; &nbsp; &nbsp;a is 2 and b is 5 and c is 4</span></p><p><span style="font-size: 14px;">&nbsp; &nbsp; &nbsp;a is 5 and b is 7 and c is 9</span></p><p><span style="font-size: 14px;">(B) a is 13 and b is 17 and cis 10</span></p><p><span style="font-size: 14px;">&nbsp; &nbsp; &nbsp;a is 2 and b is 4 and c is 4</span></p><p><span style="font-size: 14px;">&nbsp; &nbsp; &nbsp;a is 5 and b is 9 and c is 7</span></p><p><span style="font-size: 14px;">(C) a is 13 and b is 17 and c is 10</span></p><p><span style="font-size: 14px;">&nbsp; &nbsp; &nbsp; a is 2 and b is 5 and cis 4</span></p><p><span style="font-size: 14px;">&nbsp; &nbsp; &nbsp; a is 5 and b is 7 and c is 9</span></p><p><span style="font-size: 14px;">(D) None of the above</span></p>




Solution
C. option C



CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Exam Quiz Website development Company in Allahabad