{"id":1587,"date":"2021-11-29T13:39:28","date_gmt":"2021-11-29T08:09:28","guid":{"rendered":"https:\/\/cbsepython.in\/?p=1587"},"modified":"2021-11-30T10:00:17","modified_gmt":"2021-11-30T04:30:17","slug":"mcq-on-working-with-functions-in-python-class-12","status":"publish","type":"post","link":"https:\/\/cbsepython.in\/mcq-on-working-with-functions-in-python-class-12\/","title":{"rendered":"50+ MCQ on Working with functions in python Class 12"},"content":{"rendered":"<h2><span style=\"color: #000000;\">50+ MCQ on Working with functions in python Class 12<\/span><\/h2>\n<h3><span style=\"color: #000000;\">Revision Tour of Topics covered in Class 11<\/span><\/h3>\n<p><span style=\"color: #000000;\"><strong>1. A function in python begins with which keyword?<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">a) void <\/span><\/p>\n<p><span style=\"color: #000000;\">b) return<\/span><\/p>\n<p><span style=\"color: #000000;\">c) int <\/span><\/p>\n<p><span style=\"color: #000000;\">d) Def<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39d81cd2045825094' value='69d90d39d81cd2045825094'><input type='hidden' id='bg-show-more-text-69d90d39d81cd2045825094' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39d81cd2045825094' value='Hide Answer'><button id='bg-showmore-action-69d90d39d81cd2045825094' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39d81cd2045825094' ><\/span><\/p>\n<p><strong><span style=\"color: #000000\">d) Def<\/span><\/strong><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000;\">2. Which of the following items are present in the function header?<\/span><\/strong><\/p>\n<p><span style=\"color: #000000;\">a) function name<\/span><\/p>\n<p><span style=\"color: #000000;\">b) parameter list<\/span><\/p>\n<p><span style=\"color: #000000;\">c) return value<\/span><\/p>\n<p><span style=\"color: #000000;\">d) Both a and b\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39d83d06029714719' value='69d90d39d83d06029714719'><input type='hidden' id='bg-show-more-text-69d90d39d83d06029714719' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39d83d06029714719' value='Hide Answer'><button id='bg-showmore-action-69d90d39d83d06029714719' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39d83d06029714719' ><\/span><\/p>\n<p><strong><span style=\"color: #000000\">d) Both a and b\u00a0<\/span><\/strong><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000;\">3. What is called when a function is defined inside a class?<\/span><\/strong><\/p>\n<p><span style=\"color: #000000;\">a) class<\/span><\/p>\n<p><span style=\"color: #000000;\">b) function<\/span><\/p>\n<p><span style=\"color: #000000;\">c) method<\/span><\/p>\n<p><span style=\"color: #000000;\">d) module<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39d84e21028388971' value='69d90d39d84e21028388971'><input type='hidden' id='bg-show-more-text-69d90d39d84e21028388971' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39d84e21028388971' value='Hide Answer'><button id='bg-showmore-action-69d90d39d84e21028388971' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39d84e21028388971' ><\/span><\/p>\n<p><strong><span style=\"color: #000000\">c) method<\/span><\/strong><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000;\">4. If return statement is not used inside the function, the function will return:<\/span><\/strong><\/p>\n<p><span style=\"color: #000000;\">a) None\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">b) 0<\/span><\/p>\n<p><span style=\"color: #000000;\">c) Null<\/span><\/p>\n<p><span style=\"color: #000000;\">d) Arbitary value<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39d85d73031711461' value='69d90d39d85d73031711461'><input type='hidden' id='bg-show-more-text-69d90d39d85d73031711461' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39d85d73031711461' value='Hide Answer'><button id='bg-showmore-action-69d90d39d85d73031711461' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39d85d73031711461' ><\/span><\/p>\n<p><strong><span style=\"color: #000000\">a) None\u00a0<\/span><\/strong><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000;\">5. What is a recursive function?<\/span><\/strong><\/p>\n<p><span style=\"color: #000000;\">a) A function that calls other function.<\/span><\/p>\n<p><span style=\"color: #000000;\">b) A function which calls itself.\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">c) Both a and b<\/span><\/p>\n<p><span style=\"color: #000000;\">d) None of the above<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39d86e38024226329' value='69d90d39d86e38024226329'><input type='hidden' id='bg-show-more-text-69d90d39d86e38024226329' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39d86e38024226329' value='Hide Answer'><button id='bg-showmore-action-69d90d39d86e38024226329' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39d86e38024226329' ><\/span><\/p>\n<p><strong><span style=\"color: #000000\">b) A function which calls itself.\u00a0<\/span><\/strong><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000;\">6. Which of the following is the use of id() function in python?<\/span><\/strong><\/p>\n<p><span style=\"color: #000000;\">a) Id() returns the size of object.<\/span><\/p>\n<p><span style=\"color: #000000;\">b) Id() returns the identity of the object.\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">c) Both A and B<\/span><\/p>\n<p><span style=\"color: #000000;\">d) None of the above<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39d87d20018498970' value='69d90d39d87d20018498970'><input type='hidden' id='bg-show-more-text-69d90d39d87d20018498970' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39d87d20018498970' value='Hide Answer'><button id='bg-showmore-action-69d90d39d87d20018498970' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39d87d20018498970' ><\/span><\/p>\n<p><strong><span style=\"color: #000000\">b) Id() returns the identity of the object.\u00a0<\/span><\/strong><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000;\">7. Which of the following function headers is correct?<\/span><\/strong><\/p>\n<p><span style=\"color: #000000;\">a) def fun(a = 2, b = 3, c)<\/span><\/p>\n<p><span style=\"color: #000000;\">b) def fun(a = 2, b, c = 3)<\/span><\/p>\n<p><span style=\"color: #000000;\">c) def fun(a, b = 2, c = 3)\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">d) def fun(a, b, c = 3, d)<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39d88da0040145838' value='69d90d39d88da0040145838'><input type='hidden' id='bg-show-more-text-69d90d39d88da0040145838' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39d88da0040145838' value='Hide Answer'><button id='bg-showmore-action-69d90d39d88da0040145838' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39d88da0040145838' ><\/span><\/p>\n<p><strong><span style=\"color: #000000\">c) def fun(a, b = 2, c = 3)\u00a0<\/span><\/strong><\/p>\n<p><span style=\"color: #000000\">Explanation: All required parameters must be placed before any default arguments. Simply because they are mandatory, whereas default arguments are not. Syntactically, it would be impossible for the interpreter to decide which values match which arguments if mixed modes were allowed. A SyntaxError is raised if the arguments are not given in the correct order. So, option C is correct.<\/span><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000;\">8. In which part of memory does the system stores the parameter and local variables of function call?<\/span><\/strong><\/p>\n<p><span style=\"color: #000000;\">a) heap<\/span><\/p>\n<p><span style=\"color: #000000;\">b) stack<\/span><\/p>\n<p><span style=\"color: #000000;\">c) Uninitialized data segment<\/span><\/p>\n<p><span style=\"color: #000000;\">d) None of the above<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39d8a123032382382' value='69d90d39d8a123032382382'><input type='hidden' id='bg-show-more-text-69d90d39d8a123032382382' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39d8a123032382382' value='Hide Answer'><button id='bg-showmore-action-69d90d39d8a123032382382' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39d8a123032382382' ><\/span><\/p>\n<p><strong><span style=\"color: #000000\">b) stack<\/span><\/strong><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000;\">9. How is a function declared in Python?<\/span><\/strong><\/p>\n<p><span style=\"color: #000000;\">a) def function function_name():<\/span><\/p>\n<p><span style=\"color: #000000;\">b) declare function function_name():<\/span><\/p>\n<p><span style=\"color: #000000;\">c) def function_name():<\/span><\/p>\n<p><span style=\"color: #000000;\">d) declare function_name():<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39d8b0d1053062471' value='69d90d39d8b0d1053062471'><input type='hidden' id='bg-show-more-text-69d90d39d8b0d1053062471' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39d8b0d1053062471' value='Hide Answer'><button id='bg-showmore-action-69d90d39d8b0d1053062471' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39d8b0d1053062471' ><\/span><\/p>\n<p><strong><span style=\"color: #000000\">c) def function_name():<\/span><\/strong><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000;\">10. Which one of the following is the correct way of calling a function?<\/span><\/strong><\/p>\n<p><span style=\"color: #000000;\">a) function_name()<\/span><\/p>\n<p><span style=\"color: #000000;\">b) call function_name()<\/span><\/p>\n<p><span style=\"color: #000000;\">c) ret function_name()<\/span><\/p>\n<p><span style=\"color: #000000;\">d) function function_name()<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39d8bf94094752108' value='69d90d39d8bf94094752108'><input type='hidden' id='bg-show-more-text-69d90d39d8bf94094752108' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39d8bf94094752108' value='Hide Answer'><button id='bg-showmore-action-69d90d39d8bf94094752108' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39d8bf94094752108' ><\/span><\/p>\n<p><strong><span style=\"color: #000000\">a) function_name()<\/span><\/strong><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000;\">11. You can also create your own functions, these functions are called?<\/span><\/strong><\/p>\n<p><span style=\"color: #000000;\">a) built-in functions<\/span><\/p>\n<p><span style=\"color: #000000;\">b) user-defined functions<\/span><\/p>\n<p><span style=\"color: #000000;\">c) py function<\/span><\/p>\n<p><span style=\"color: #000000;\">d) None of the above<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39d8d112050119744' value='69d90d39d8d112050119744'><input type='hidden' id='bg-show-more-text-69d90d39d8d112050119744' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39d8d112050119744' value='Hide Answer'><button id='bg-showmore-action-69d90d39d8d112050119744' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39d8d112050119744' ><\/span><\/p>\n<p><strong><span style=\"color: #000000\">b) user-defined functions<\/span><\/strong><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000;\">12. ___________ are the arguments passed to a function in correct positional order.<\/span><\/strong><\/p>\n<p><span style=\"color: #000000;\">a) Required arguments<\/span><\/p>\n<p><span style=\"color: #000000;\">b) Keyword arguments<\/span><\/p>\n<p><span style=\"color: #000000;\">c) Default arguments<\/span><\/p>\n<p><span style=\"color: #000000;\">d) Variable-length arguments<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39d8dfd6048908925' value='69d90d39d8dfd6048908925'><input type='hidden' id='bg-show-more-text-69d90d39d8dfd6048908925' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39d8dfd6048908925' value='Hide Answer'><button id='bg-showmore-action-69d90d39d8dfd6048908925' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39d8dfd6048908925' ><\/span><\/p>\n<p><strong><span style=\"color: #000000\">a) Required arguments<\/span><\/strong><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000;\">13. Which of the following will print the pi value defined in math module?<\/span><\/strong><\/p>\n<p><span style=\"color: #000000;\">a) print(pi)<\/span><\/p>\n<p><span style=\"color: #000000;\">b) print(math.pi)<\/span><\/p>\n<p><span style=\"color: #000000;\">c) from math import pi<\/span><br \/>\n<span style=\"color: #000000;\">print(pi)\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">d) from math import pi<\/span><br \/>\n<span style=\"color: #000000;\">print(math.pi)<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39d8ee43033924677' value='69d90d39d8ee43033924677'><input type='hidden' id='bg-show-more-text-69d90d39d8ee43033924677' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39d8ee43033924677' value='Hide Answer'><button id='bg-showmore-action-69d90d39d8ee43033924677' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39d8ee43033924677' ><\/span><\/p>\n<p><strong><span style=\"color: #000000\">c) from math import pi<\/span><\/strong><br \/>\n<strong><span style=\"color: #000000\">print(pi)\u00a0<\/span><\/strong><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000;\">14. What is a variable defined outside a function referred to as?<\/span><\/strong><\/p>\n<p><span style=\"color: #000000;\">a) local variable<\/span><\/p>\n<p><span style=\"color: #000000;\">b) global variable<\/span><\/p>\n<p><span style=\"color: #000000;\">c) static Variable<\/span><\/p>\n<p><span style=\"color: #000000;\">d) automatic variable<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39d90097057910580' value='69d90d39d90097057910580'><input type='hidden' id='bg-show-more-text-69d90d39d90097057910580' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39d90097057910580' value='Hide Answer'><button id='bg-showmore-action-69d90d39d90097057910580' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39d90097057910580' ><\/span><\/p>\n<p><strong><span style=\"color: #000000\">b) global variable<\/span><\/strong><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000;\">15. Which one of the following is incorrect?<\/span><\/strong><\/p>\n<p><span style=\"color: #000000;\">a) The variables used inside function are called local variables.<\/span><\/p>\n<p><span style=\"color: #000000;\">b) The local variables of a particular function can be used inside other functions, but these cannot be used in global space<\/span><\/p>\n<p><span style=\"color: #000000;\">c) The variables used outside function are called global variables<\/span><\/p>\n<p><span style=\"color: #000000;\">d) In order to change the value of global variable inside function, keyword global is used.<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39d90f77088539252' value='69d90d39d90f77088539252'><input type='hidden' id='bg-show-more-text-69d90d39d90f77088539252' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39d90f77088539252' value='Hide Answer'><button id='bg-showmore-action-69d90d39d90f77088539252' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39d90f77088539252' ><\/span><\/p>\n<p><strong><span style=\"color: #000000\">b) The local variables of a particular function can be used inside other functions, but these cannot be used in global space<\/span><\/strong><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>16. Name the statement that sends back a value from a function<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">a) print<\/span><\/p>\n<p><span style=\"color: #000000;\">b) input <\/span><\/p>\n<p><span style=\"color: #000000;\">c) return\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">d) None<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39d91dd2020542552' value='69d90d39d91dd2020542552'><input type='hidden' id='bg-show-more-text-69d90d39d91dd2020542552' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39d91dd2020542552' value='Hide Answer'><button id='bg-showmore-action-69d90d39d91dd2020542552' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39d91dd2020542552' ><\/span><\/p>\n<p><strong><span style=\"color: #000000\">c) return\u00a0<\/span><\/strong><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>17.What is the output of the program given below:<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">x=50<\/span><\/p>\n<p><span style=\"color: #000000;\">def func(x):<\/span><\/p>\n<p><span style=\"color: #000000;\">x=2<\/span><\/p>\n<p><span style=\"color: #000000;\">func(x)<\/span><\/p>\n<p><span style=\"color: #000000;\">print(\u2018x is now\u2019,x)<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\">a) x is now 50<\/span><\/p>\n<p><span style=\"color: #000000;\">b) x is now 2<\/span><\/p>\n<p><span style=\"color: #000000;\">c) x is now 100 <\/span><\/p>\n<p><span style=\"color: #000000;\">d) Error<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39d92c90049248449' value='69d90d39d92c90049248449'><input type='hidden' id='bg-show-more-text-69d90d39d92c90049248449' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39d92c90049248449' value='Hide Answer'><button id='bg-showmore-action-69d90d39d92c90049248449' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39d92c90049248449' ><\/span><\/p>\n<p><strong><span style=\"color: #000000\">a) x is now 50<\/span><\/strong><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>18. What is the output of the program given below:<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">import random<\/span><\/p>\n<p><span style=\"color: #000000;\">x = random.random()<\/span><\/p>\n<p><span style=\"color: #000000;\">y= random.randint(0,4)<\/span><\/p>\n<p><span style=\"color: #000000;\">print(int(x),\u201d:\u201d, y+int(x))<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\">a) 0: 0<\/span><\/p>\n<p><span style=\"color: #000000;\">b) 2 : 4<\/span><\/p>\n<p><span style=\"color: #000000;\">c) 1: 6 <\/span><\/p>\n<p><span style=\"color: #000000;\">d) 0 : 5<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39d93b69081622335' value='69d90d39d93b69081622335'><input type='hidden' id='bg-show-more-text-69d90d39d93b69081622335' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39d93b69081622335' value='Hide Answer'><button id='bg-showmore-action-69d90d39d93b69081622335' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39d93b69081622335' ><\/span><\/p>\n<p><strong><span style=\"color: #000000\">a) 0: 0<\/span><\/strong><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>19. What is the output of the program given below:<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">def cal(a,b,c):<\/span><\/p>\n<p><span style=\"color: #000000;\">return a*3,b*3,c*3<\/span><\/p>\n<p><span style=\"color: #000000;\">val=cal(10,12,14)<\/span><\/p>\n<p><span style=\"color: #000000;\">print(type(val))<\/span><\/p>\n<p><span style=\"color: #000000;\">print(val)<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\">a) [30, 24, 28]<\/span><\/p>\n<p><span style=\"color: #000000;\">b) [30,36,42]\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">c) [10, 20, 30] <\/span><\/p>\n<p><span style=\"color: #000000;\">d) [10,12,14]<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39d949f9008833362' value='69d90d39d949f9008833362'><input type='hidden' id='bg-show-more-text-69d90d39d949f9008833362' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39d949f9008833362' value='Hide Answer'><button id='bg-showmore-action-69d90d39d949f9008833362' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39d949f9008833362' ><\/span><\/p>\n<p><strong><span style=\"color: #000000\">b) [30,36,42]\u00a0<\/span><\/strong><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>20.What is the output of the expression: round(4.576)<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">a) 4.5 <\/span><\/p>\n<p><span style=\"color: #000000;\">b) 5<\/span><\/p>\n<p><span style=\"color: #000000;\">c) 4 <\/span><\/p>\n<p><span style=\"color: #000000;\">d) 4.6<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39d95969090951253' value='69d90d39d95969090951253'><input type='hidden' id='bg-show-more-text-69d90d39d95969090951253' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39d95969090951253' value='Hide Answer'><button id='bg-showmore-action-69d90d39d95969090951253' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39d95969090951253' ><\/span><\/p>\n<p><strong><span style=\"color: #000000\">b) 5<\/span><\/strong><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>21.What is the output of the function shown below?<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">import math<\/span><\/p>\n<p><span style=\"color: #000000;\">abs(math.sqrt(25))<\/span><\/p>\n<p><span style=\"color: #000000;\">a) Error <\/span><\/p>\n<p><span style=\"color: #000000;\">b) -5 <\/span><\/p>\n<p><span style=\"color: #000000;\">c) 5 <\/span><\/p>\n<p><span style=\"color: #000000;\">d) 5.0<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39d96804015420184' value='69d90d39d96804015420184'><input type='hidden' id='bg-show-more-text-69d90d39d96804015420184' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39d96804015420184' value='Hide Answer'><button id='bg-showmore-action-69d90d39d96804015420184' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39d96804015420184' ><\/span><\/p>\n<p><strong><span style=\"color: #000000\">d) 5.0<\/span><\/strong><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>22.What is the output of the functions shown below? &gt;&gt;&gt;min(max(False,-3,-4), 2,7)<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">a) 2 <\/span><\/p>\n<p><span style=\"color: #000000;\">b) False\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">c) -3 <\/span><\/p>\n<p><span style=\"color: #000000;\">d) -4<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39d976b9048977623' value='69d90d39d976b9048977623'><input type='hidden' id='bg-show-more-text-69d90d39d976b9048977623' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39d976b9048977623' value='Hide Answer'><button id='bg-showmore-action-69d90d39d976b9048977623' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39d976b9048977623' ><\/span><\/p>\n<p><strong><span style=\"color: #000000\">b) False\u00a0<\/span><\/strong><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>23.What are the outcomes of the function shown below?<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">&gt;&gt;&gt; x=3<\/span><\/p>\n<p><span style=\"color: #000000;\">&gt;&gt;&gt;eval(&#8216;x**2&#8217;)<\/span><\/p>\n<p><span style=\"color: #000000;\">a) Error <\/span><\/p>\n<p><span style=\"color: #000000;\">b) 1 <\/span><\/p>\n<p><span style=\"color: #000000;\">c) 9\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">d) 6<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39d98586007402647' value='69d90d39d98586007402647'><input type='hidden' id='bg-show-more-text-69d90d39d98586007402647' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39d98586007402647' value='Hide Answer'><button id='bg-showmore-action-69d90d39d98586007402647' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39d98586007402647' ><\/span><\/p>\n<p><strong><span style=\"color: #000000\">c) 9\u00a0<\/span><\/strong><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>24.Which of the following functions does not throw an error?<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">a) ord() <\/span><\/p>\n<p><span style=\"color: #000000;\">b) ord(\u2018 \u2018)<\/span><\/p>\n<p><span style=\"color: #000000;\">c) ord(\u201d)\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">d) ord(\u201c\u201d)<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39d99600035619229' value='69d90d39d99600035619229'><input type='hidden' id='bg-show-more-text-69d90d39d99600035619229' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39d99600035619229' value='Hide Answer'><button id='bg-showmore-action-69d90d39d99600035619229' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39d99600035619229' ><\/span><\/p>\n<p><strong><span style=\"color: #000000\">b) ord(\u2018 \u2018)<\/span><\/strong><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>25.What is the output of below program?<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">def say(message, times = 1):<\/span><\/p>\n<p><span style=\"color: #000000;\">print(message * times , end =\u2019 \u2018)<\/span><\/p>\n<p><span style=\"color: #000000;\">say(\u2018Hello and\u2019)<\/span><\/p>\n<p><span style=\"color: #000000;\">say(&#8216;World&#8217;, 5)<\/span><\/p>\n<p><span style=\"color: #000000;\">a) Hello and WorldWorldWorldWorldWorld<\/span><\/p>\n<p><span style=\"color: #000000;\">b) Hello and World 5<\/span><\/p>\n<p><span style=\"color: #000000;\">c) Hello and World,World,World,World,World<\/span><\/p>\n<p><span style=\"color: #000000;\">d) Hello and HelloHelloHelloHelloHello<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39d9a4e8013899477' value='69d90d39d9a4e8013899477'><input type='hidden' id='bg-show-more-text-69d90d39d9a4e8013899477' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39d9a4e8013899477' value='Hide Answer'><button id='bg-showmore-action-69d90d39d9a4e8013899477' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39d9a4e8013899477' ><\/span><\/p>\n<p><strong><span style=\"color: #000000\">a) Hello and WorldWorldWorldWorldWorld<\/span><\/strong><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>26.What is a variable defined inside a function referred to as?<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">a) A global variable <\/span><\/p>\n<p><span style=\"color: #000000;\">b) A volatile variable<\/span><\/p>\n<p><span style=\"color: #000000;\">c) A local variable\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">d) An automatic variable<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39d9b3b8050590273' value='69d90d39d9b3b8050590273'><input type='hidden' id='bg-show-more-text-69d90d39d9b3b8050590273' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39d9b3b8050590273' value='Hide Answer'><button id='bg-showmore-action-69d90d39d9b3b8050590273' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39d9b3b8050590273' ><\/span><\/p>\n<p><span style=\"color: #000000\"><strong>c) A local variable\u00a0<\/strong><\/span><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>27.How many keyword arguments can be passed to a function in a single function call?<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">a) zero<\/span><\/p>\n<p><span style=\"color: #000000;\">b) one <\/span><\/p>\n<p><span style=\"color: #000000;\">c) zero or more\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">d) one or more<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39d9c4d6013048928' value='69d90d39d9c4d6013048928'><input type='hidden' id='bg-show-more-text-69d90d39d9c4d6013048928' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39d9c4d6013048928' value='Hide Answer'><button id='bg-showmore-action-69d90d39d9c4d6013048928' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39d9c4d6013048928' ><\/span><\/p>\n<p><span style=\"color: #000000\"><strong>c) zero or more\u00a0<\/strong><\/span><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>28. How are required arguments specified in the function heading?<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">a) identifier followed by an equal to sign and the default value<\/span><\/p>\n<p><span style=\"color: #000000;\">b) identifier followed by the default value within backticks (\u201c)<\/span><\/p>\n<p><span style=\"color: #000000;\">c) identifier followed by the default value within square brackets ([ ])<\/span><\/p>\n<p><span style=\"color: #000000;\">d) identifier<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39d9d314086203638' value='69d90d39d9d314086203638'><input type='hidden' id='bg-show-more-text-69d90d39d9d314086203638' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39d9d314086203638' value='Hide Answer'><button id='bg-showmore-action-69d90d39d9d314086203638' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39d9d314086203638' ><\/span><\/p>\n<p><span style=\"color: #000000\"><strong>a) identifier followed by an equal to sign and the default value<\/strong><\/span><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>29. What is returned by<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">&gt;&gt;&gt; math.ceil(3.4)?<\/span><\/p>\n<p><span style=\"color: #000000;\">a) 3 <\/span><\/p>\n<p><span style=\"color: #000000;\">b) 4\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">c) 4.0 <\/span><\/p>\n<p><span style=\"color: #000000;\">d) 3.0<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39d9e0a1031552253' value='69d90d39d9e0a1031552253'><input type='hidden' id='bg-show-more-text-69d90d39d9e0a1031552253' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39d9e0a1031552253' value='Hide Answer'><button id='bg-showmore-action-69d90d39d9e0a1031552253' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39d9e0a1031552253' ><\/span><\/p>\n<p><span style=\"color: #000000\"><strong>b) 4\u00a0<\/strong><\/span><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>30. What is the value returned by<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">&gt;&gt;&gt; math.floor(3.4)<\/span><\/p>\n<p><span style=\"color: #000000;\">a) 3<\/span><\/p>\n<p><span style=\"color: #000000;\">b) 4 <\/span><\/p>\n<p><span style=\"color: #000000;\">c) 4.0\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">d) 3.0<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39d9edf2000208555' value='69d90d39d9edf2000208555'><input type='hidden' id='bg-show-more-text-69d90d39d9edf2000208555' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39d9edf2000208555' value='Hide Answer'><button id='bg-showmore-action-69d90d39d9edf2000208555' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39d9edf2000208555' ><\/span><\/p>\n<p><span style=\"color: #000000\"><strong>a) 3<\/strong><\/span><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>31.What is returned by<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">&gt;&gt;&gt; math.ceil(-3.4)?<\/span><\/p>\n<p><span style=\"color: #000000;\">a) 3 <\/span><\/p>\n<p><span style=\"color: #000000;\">b) 4 <\/span><\/p>\n<p><span style=\"color: #000000;\">c) 4.0\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">d) -3<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39d9fad4070251831' value='69d90d39d9fad4070251831'><input type='hidden' id='bg-show-more-text-69d90d39d9fad4070251831' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39d9fad4070251831' value='Hide Answer'><button id='bg-showmore-action-69d90d39d9fad4070251831' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39d9fad4070251831' ><\/span><\/p>\n<p><span style=\"color: #000000\"><strong>d) -3<\/strong><\/span><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>32.What is the value returned by<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">&gt;&gt;&gt; math.floor(-3.4)<\/span><\/p>\n<p><span style=\"color: #000000;\">a) 3 <\/span><\/p>\n<p><span style=\"color: #000000;\">b) -4\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">c) 4.0 <\/span><\/p>\n<p><span style=\"color: #000000;\">d) 3.0<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39da0783031870448' value='69d90d39da0783031870448'><input type='hidden' id='bg-show-more-text-69d90d39da0783031870448' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39da0783031870448' value='Hide Answer'><button id='bg-showmore-action-69d90d39da0783031870448' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39da0783031870448' ><\/span><\/p>\n<p><span style=\"color: #000000\"><strong>b) -4\u00a0<\/strong><\/span><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>33.What is displayed on executing print(math.fabs(-3.4))?<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">a) -3.4 <\/span><\/p>\n<p><span style=\"color: #000000;\">b) 3.4<\/span><\/p>\n<p><span style=\"color: #000000;\">c) 3\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">d) -3<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39da1475077079672' value='69d90d39da1475077079672'><input type='hidden' id='bg-show-more-text-69d90d39da1475077079672' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39da1475077079672' value='Hide Answer'><button id='bg-showmore-action-69d90d39da1475077079672' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39da1475077079672' ><\/span><\/p>\n<p><span style=\"color: #000000\"><strong>b) 3.4<\/strong><\/span><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>34.What is output of print(math.pow(3, 2))?<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">a) 9 <\/span><\/p>\n<p><span style=\"color: #000000;\">b) 9.0\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">c) None<\/span><\/p>\n<p><span style=\"color: #000000;\">d) None of these<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39da2128098219528' value='69d90d39da2128098219528'><input type='hidden' id='bg-show-more-text-69d90d39da2128098219528' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39da2128098219528' value='Hide Answer'><button id='bg-showmore-action-69d90d39da2128098219528' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39da2128098219528' ><\/span><\/p>\n<p><span style=\"color: #000000\"><strong>b) 9.0\u00a0<\/strong><\/span><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>35.What is the value of x if x = math.sqrt(4)?<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">a) 2 <\/span><\/p>\n<p><span style=\"color: #000000;\">b) 2.0\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">c) (2, -2) <\/span><\/p>\n<p><span style=\"color: #000000;\">d) (2.0, -2.0)<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39da2e72009232403' value='69d90d39da2e72009232403'><input type='hidden' id='bg-show-more-text-69d90d39da2e72009232403' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39da2e72009232403' value='Hide Answer'><button id='bg-showmore-action-69d90d39da2e72009232403' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39da2e72009232403' ><\/span><\/p>\n<p><span style=\"color: #000000\"><strong>b) 2.0\u00a0<\/strong><\/span><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>36.To include the use of functions which are present in the random library, we must use the option:<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">a) import random<\/span><\/p>\n<p><span style=\"color: #000000;\">b) random.h<\/span><\/p>\n<p><span style=\"color: #000000;\">c) import.random <\/span><\/p>\n<p><span style=\"color: #000000;\">d) random.random<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39da3b86061162426' value='69d90d39da3b86061162426'><input type='hidden' id='bg-show-more-text-69d90d39da3b86061162426' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39da3b86061162426' value='Hide Answer'><button id='bg-showmore-action-69d90d39da3b86061162426' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39da3b86061162426' ><\/span><\/p>\n<p><span style=\"color: #000000\"><strong>a) import random<\/strong><\/span><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>37.What is the output of the code shown below?<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">import random<\/span><\/p>\n<p><span style=\"color: #000000;\">random.choice(2,3,4)<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\">a) An integer other than 2, 3 and 4 <\/span><\/p>\n<p><span style=\"color: #000000;\">b) Either 2, 3 or 4<\/span><\/p>\n<p><span style=\"color: #000000;\">c) Error <\/span><\/p>\n<p><span style=\"color: #000000;\">d) 3 only<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39da4861016247581' value='69d90d39da4861016247581'><input type='hidden' id='bg-show-more-text-69d90d39da4861016247581' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39da4861016247581' value='Hide Answer'><button id='bg-showmore-action-69d90d39da4861016247581' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39da4861016247581' ><\/span><\/p>\n<p><span style=\"color: #000000\"><strong>b) Either 2, 3 or 4<\/strong><\/span><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>38. What is the output of the function shown below (random module has already been imported)?<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">&gt;&gt;&gt;random.choice(&#8216;sun&#8217;)<\/span><\/p>\n<p><span style=\"color: #000000;\">a) sun <\/span><\/p>\n<p><span style=\"color: #000000;\">b) u <\/span><\/p>\n<p><span style=\"color: #000000;\">c) either s, u or n\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">d) Error<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39da5538097573814' value='69d90d39da5538097573814'><input type='hidden' id='bg-show-more-text-69d90d39da5538097573814' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39da5538097573814' value='Hide Answer'><button id='bg-showmore-action-69d90d39da5538097573814' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39da5538097573814' ><\/span><\/p>\n<p><span style=\"color: #000000\"><strong>c) either s, u or n\u00a0<\/strong><\/span><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>39.What is the output of the function shown below if the random module has already been imported?<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">&gt;&gt;&gt;import random<\/span><\/p>\n<p><span style=\"color: #000000;\">&gt;&gt;&gt;random.randint(3.5,7)<\/span><\/p>\n<p><span style=\"color: #000000;\">a) Error<\/span><\/p>\n<p><span style=\"color: #000000;\">b) Any integer between 3.5 and 7, including 7<\/span><\/p>\n<p><span style=\"color: #000000;\">c) Any integer between 3.5 and 7, excluding 7<\/span><\/p>\n<p><span style=\"color: #000000;\">d) The integer closest to the mean of 3.5 and 7<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39da61b0085469130' value='69d90d39da61b0085469130'><input type='hidden' id='bg-show-more-text-69d90d39da61b0085469130' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39da61b0085469130' value='Hide Answer'><button id='bg-showmore-action-69d90d39da61b0085469130' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39da61b0085469130' ><\/span><\/p>\n<p><span style=\"color: #000000\"><strong>b) Any integer between 3.5 and 7, including 7<\/strong><\/span><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>40.Which type of elements are accepted by random.shuffle()?<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">a) strings <\/span><\/p>\n<p><span style=\"color: #000000;\">b) lists\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">c) tuples <\/span><\/p>\n<p><span style=\"color: #000000;\">d) integers<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39da7144060855365' value='69d90d39da7144060855365'><input type='hidden' id='bg-show-more-text-69d90d39da7144060855365' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39da7144060855365' value='Hide Answer'><button id='bg-showmore-action-69d90d39da7144060855365' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39da7144060855365' ><\/span><\/p>\n<p><span style=\"color: #000000\"><strong>b) lists\u00a0<\/strong><\/span><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>41.Which of the following statements are True out of the given below:<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">1) More than one value(s) can be returned by a function<\/span><\/p>\n<p><span style=\"color: #000000;\">2) The variable declared inside a function is a Global variable.<\/span><\/p>\n<p><span style=\"color: #000000;\">3) Once the function is defined , it may be called only once<\/span><\/p>\n<p><span style=\"color: #000000;\">4) A function is used by invoking it<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\">a) 1 &amp; 2 <\/span><\/p>\n<p><span style=\"color: #000000;\">b) 1 &amp; 4\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">c) 2 &amp; 3 <\/span><\/p>\n<p><span style=\"color: #000000;\">d) 2 &amp; 4<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39da8203007193412' value='69d90d39da8203007193412'><input type='hidden' id='bg-show-more-text-69d90d39da8203007193412' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39da8203007193412' value='Hide Answer'><button id='bg-showmore-action-69d90d39da8203007193412' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39da8203007193412' ><\/span><\/p>\n<p><span style=\"color: #000000\"><strong>b) 1 &amp; 4\u00a0<\/strong><\/span><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>42.What will be the output of the following code:<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">A=1<\/span><\/p>\n<p><span style=\"color: #000000;\">def f ():<\/span><\/p>\n<p><span style=\"color: #000000;\">A=10<\/span><\/p>\n<p><span style=\"color: #000000;\">print(A)<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\">a) 1<\/span><\/p>\n<p><span style=\"color: #000000;\">b) 10 <\/span><\/p>\n<p><span style=\"color: #000000;\">c) Error <\/span><\/p>\n<p><span style=\"color: #000000;\">d) None<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39da91d9072040975' value='69d90d39da91d9072040975'><input type='hidden' id='bg-show-more-text-69d90d39da91d9072040975' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39da91d9072040975' value='Hide Answer'><button id='bg-showmore-action-69d90d39da91d9072040975' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39da91d9072040975' ><\/span><\/p>\n<p><span style=\"color: #000000\"><strong>a) 1<\/strong><\/span><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>43.&gt;&gt;&gt;def Interest(p,c,t=2,r=0.09):<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">return p*t*r<\/span><\/p>\n<p><span style=\"color: #000000;\">Considering the above defined function which of following function call are legal.<\/span><\/p>\n<p><span style=\"color: #000000;\">1) Interest(p=1000,c=5)<\/span><\/p>\n<p><span style=\"color: #000000;\">2) Interest(r=0.05,5000,3)<\/span><\/p>\n<p><span style=\"color: #000000;\">3) Interest(500,t=2,r=0.05)<\/span><\/p>\n<p><span style=\"color: #000000;\">4) Interest(c=4,r=0.12,p=5000)<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\">a) 1 , 2 and 4 <\/span><\/p>\n<p><span style=\"color: #000000;\">b) 2 &amp; 3 <\/span><\/p>\n<p><span style=\"color: #000000;\">c) 1 &amp;4\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">d) 3 &amp; 4<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39da9c26075756496' value='69d90d39da9c26075756496'><input type='hidden' id='bg-show-more-text-69d90d39da9c26075756496' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39da9c26075756496' value='Hide Answer'><button id='bg-showmore-action-69d90d39da9c26075756496' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39da9c26075756496' ><\/span><\/p>\n<p><span style=\"color: #000000\"><strong>c) 1 &amp;4\u00a0<\/strong><\/span><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>44. The function can be called in the program by writing function name followed by ____<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">a) [ ]<\/span><\/p>\n<p><span style=\"color: #000000;\">b) { }<\/span><\/p>\n<p><span style=\"color: #000000;\">c) ( )<\/span><\/p>\n<p><span style=\"color: #000000;\">d) None of the above<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39daa5a7056680597' value='69d90d39daa5a7056680597'><input type='hidden' id='bg-show-more-text-69d90d39daa5a7056680597' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39daa5a7056680597' value='Hide Answer'><button id='bg-showmore-action-69d90d39daa5a7056680597' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39daa5a7056680597' ><\/span><\/p>\n<p><span style=\"color: #000000\"><strong>c) ( )<\/strong><\/span><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>45. The built-in function sin() belongs to which module:<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">a) random <\/span><\/p>\n<p><span style=\"color: #000000;\">b) pandas <\/span><\/p>\n<p><span style=\"color: #000000;\">c) math\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">d) numpy<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39dab909062400912' value='69d90d39dab909062400912'><input type='hidden' id='bg-show-more-text-69d90d39dab909062400912' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39dab909062400912' value='Hide Answer'><button id='bg-showmore-action-69d90d39dab909062400912' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39dab909062400912' ><\/span><\/p>\n<p><span style=\"color: #000000\"><strong>c) math\u00a0<\/strong><\/span><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>46. \u2026\u2026\u2026\u2026..function returns the smallest integer greater than the given floating point number.<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">a) floor() <\/span><\/p>\n<p><span style=\"color: #000000;\">b) ceil()<\/span><\/p>\n<p><span style=\"color: #000000;\">c) sqrt() <\/span><\/p>\n<p><span style=\"color: #000000;\">d) CEIL()<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39dadad0011052319' value='69d90d39dadad0011052319'><input type='hidden' id='bg-show-more-text-69d90d39dadad0011052319' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39dadad0011052319' value='Hide Answer'><button id='bg-showmore-action-69d90d39dadad0011052319' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39dadad0011052319' ><\/span><\/p>\n<p><span style=\"color: #000000\"><strong>b) ceil()<\/strong><\/span><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>47. .\u2026\u2026\u2026\u2026function will return the largest integer less than the given floating point number.<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">a) floor()<\/span><\/p>\n<p><span style=\"color: #000000;\">b) ceil() <\/span><\/p>\n<p><span style=\"color: #000000;\">c) sqrt() <\/span><\/p>\n<p><span style=\"color: #000000;\">d) CEIL()<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39daef91091156405' value='69d90d39daef91091156405'><input type='hidden' id='bg-show-more-text-69d90d39daef91091156405' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39daef91091156405' value='Hide Answer'><button id='bg-showmore-action-69d90d39daef91091156405' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39daef91091156405' ><\/span><\/p>\n<p><span style=\"color: #000000\"><strong>a) floor()<\/strong><\/span><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>48. .\u2026\u2026\u2026..function returns the length of the object being passed.<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">a) Length()<\/span><\/p>\n<p><span style=\"color: #000000;\">b) Len()<\/span><\/p>\n<p><span style=\"color: #000000;\">c) len()<\/span><\/p>\n<p><span style=\"color: #000000;\">d) count()<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39db0760011011947' value='69d90d39db0760011011947'><input type='hidden' id='bg-show-more-text-69d90d39db0760011011947' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39db0760011011947' value='Hide Answer'><button id='bg-showmore-action-69d90d39db0760011011947' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39db0760011011947' ><\/span><\/p>\n<p><span style=\"color: #000000\"><strong>c) len()<\/strong><\/span><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>49. .\u2026\u2026\u2026..function returns the absolute value.<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">a) Abs( ) <\/span><\/p>\n<p><span style=\"color: #000000;\">b) abs( )\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">c) absolute( ) <\/span><\/p>\n<p><span style=\"color: #000000;\">d) None of these<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39db2205036424219' value='69d90d39db2205036424219'><input type='hidden' id='bg-show-more-text-69d90d39db2205036424219' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39db2205036424219' value='Hide Answer'><button id='bg-showmore-action-69d90d39db2205036424219' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39db2205036424219' ><\/span><\/p>\n<p><span style=\"color: #000000\"><strong>b) abs( )\u00a0<\/strong><\/span><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>50. The range(x) function will generate the series of numbers from :<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">a) Min to max <\/span><\/p>\n<p><span style=\"color: #000000;\">b) o to x-1<\/span><\/p>\n<p><span style=\"color: #000000;\">c) o to x <\/span><\/p>\n<p><span style=\"color: #000000;\">d) x<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39db3843049239205' value='69d90d39db3843049239205'><input type='hidden' id='bg-show-more-text-69d90d39db3843049239205' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39db3843049239205' value='Hide Answer'><button id='bg-showmore-action-69d90d39db3843049239205' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39db3843049239205' ><\/span><\/p>\n<p><span style=\"color: #000000\"><strong>b) o to x-1<\/strong><\/span><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>51. .\u2026\u2026\u2026.. function can identify the whitespace in a given string.<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">a) Space( )<\/span><\/p>\n<p><span style=\"color: #000000;\">b) isspace( )\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">c) Isspace( ) <\/span><\/p>\n<p><span style=\"color: #000000;\">d) is_space( )<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39db5591081230898' value='69d90d39db5591081230898'><input type='hidden' id='bg-show-more-text-69d90d39db5591081230898' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39db5591081230898' value='Hide Answer'><button id='bg-showmore-action-69d90d39db5591081230898' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39db5591081230898' ><\/span><\/p>\n<p><span style=\"color: #000000\"><strong>b) isspace( )\u00a0<\/strong><\/span><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>52. Consider the statement given below and answer the question:<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">&gt;&gt;&gt;S=\u2019My name is Ravindra\u2019<\/span><\/p>\n<p><span style=\"color: #000000;\">Which statement will print \u201cTrue\u201d out of the given :<\/span><\/p>\n<p><span style=\"color: #000000;\">a) print(S.isspace( ))<\/span><\/p>\n<p><span style=\"color: #000000;\">b) print (s.isspace( ))<\/span><\/p>\n<p><span style=\"color: #000000;\">c) print(S[2].isspace)<\/span><\/p>\n<p><span style=\"color: #000000;\">d) print(S[2].isspace( ))\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39db6966088679435' value='69d90d39db6966088679435'><input type='hidden' id='bg-show-more-text-69d90d39db6966088679435' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39db6966088679435' value='Hide Answer'><button id='bg-showmore-action-69d90d39db6966088679435' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39db6966088679435' ><\/span><\/p>\n<p><span style=\"color: #000000\"><strong>d) print(S[2].isspace( ))\u00a0<\/strong><\/span><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>53. A variable declared outside all the functions in a python program, then mention the statements which are True in the context of the variable.<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">1) This variable will have global scope.<\/span><\/p>\n<p><span style=\"color: #000000;\">2) This variable will not be accessible from anywhere in the prog.<\/span><\/p>\n<p><span style=\"color: #000000;\">3) This variable will have a large lifetime than local variable.<\/span><\/p>\n<p><span style=\"color: #000000;\">4) This variable will be referred as Local variable.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\">a) Only 1&amp;2 <\/span><\/p>\n<p><span style=\"color: #000000;\">b) Only 1 <\/span><\/p>\n<p><span style=\"color: #000000;\">c) Only 1&amp;3<\/span><\/p>\n<p><span style=\"color: #000000;\">d) Only 3<\/span><\/p>\n<p><span style=\"color: #000000;\"><input type='hidden' bg_collapse_expand='69d90d39db8196075605975' value='69d90d39db8196075605975'><input type='hidden' id='bg-show-more-text-69d90d39db8196075605975' value='Show Answer'><input type='hidden' id='bg-show-less-text-69d90d39db8196075605975' value='Hide Answer'><button id='bg-showmore-action-69d90d39db8196075605975' class='bg-showmore-plg-button bg-orange-button bg-arrow '   style=\" color:#4a4949;\">Show Answer<\/button><div id='bg-showmore-hidden-69d90d39db8196075605975' ><\/span><\/p>\n<p><span style=\"color: #000000\"><strong>c) Only 1&amp;3<\/strong><\/span><\/p>\n<p><span style=\"color: #000000\"><\/div><\/span><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>50+ MCQ on Working with functions in python Class 12 Revision Tour of Topics covered in Class 11 1. A function in python begins with which keyword? a) void b) return c) int d) Def &nbsp; 2. Which of the following items are present in the function header? a) function name b) parameter list c) [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,20],"tags":[],"class_list":["post-1587","post","type-post","status-publish","format-standard","hentry","category-cbse-sample-papers-class-12","category-cbse-computer-science-with-python-class-12"],"_links":{"self":[{"href":"https:\/\/cbsepython.in\/wp-json\/wp\/v2\/posts\/1587","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cbsepython.in\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cbsepython.in\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cbsepython.in\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/cbsepython.in\/wp-json\/wp\/v2\/comments?post=1587"}],"version-history":[{"count":0,"href":"https:\/\/cbsepython.in\/wp-json\/wp\/v2\/posts\/1587\/revisions"}],"wp:attachment":[{"href":"https:\/\/cbsepython.in\/wp-json\/wp\/v2\/media?parent=1587"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cbsepython.in\/wp-json\/wp\/v2\/categories?post=1587"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cbsepython.in\/wp-json\/wp\/v2\/tags?post=1587"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}