{"id":3378,"date":"2022-09-11T20:21:28","date_gmt":"2022-09-11T14:51:28","guid":{"rendered":"https:\/\/cbsepython.in\/?p=3378"},"modified":"2022-09-11T20:21:28","modified_gmt":"2022-09-11T14:51:28","slug":"data-handling-worksheet-class-11-computer-science","status":"publish","type":"post","link":"https:\/\/cbsepython.in\/data-handling-worksheet-class-11-computer-science\/","title":{"rendered":"Data Handling Worksheet Class 11 Computer Science"},"content":{"rendered":"<h2><span style=\"color: #000000;\"><strong>Data Handling Worksheet Class 11 Computer Science<\/strong><\/span><\/h2>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000;\">Q.1: Which Python built-in function returns the unique number assigned to an object?<\/span><\/strong><\/p>\n<p><span style=\"color: #000000;\">a) Identity()<\/span><\/p>\n<p><span style=\"color: #000000;\">b) Id()<\/span><\/p>\n<p><span style=\"color: #000000;\">c) Refnum()<\/span><\/p>\n<p><span style=\"color: #000000;\">d) Ref()<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000;\">Q.2: The operator used to check if both the operands reference the same object memory, is the &#8230;&#8230;&#8230;. operator.<\/span><\/strong><\/p>\n<p><span style=\"color: #000000;\">a) In<\/span><\/p>\n<p><span style=\"color: #000000;\">b) Id<\/span><\/p>\n<p><span style=\"color: #000000;\">c) Is<\/span><\/p>\n<p><span style=\"color: #000000;\">d) ==<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000;\">Q.3: Python operator always yields the result of &#8230;&#8230;&#8230;. datatype.<\/span><\/strong><\/p>\n<p><span style=\"color: #000000;\">a) Integer<\/span><\/p>\n<p><span style=\"color: #000000;\">b) Floating type<\/span><\/p>\n<p><span style=\"color: #000000;\">c) Complex<\/span><\/p>\n<p><span style=\"color: #000000;\">d) All of these<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000;\">Q.4: What is the value of the expression 100 \/\/ 25 ?<\/span><\/strong><\/p>\n<p><span style=\"color: #000000;\">a) 4<\/span><\/p>\n<p><span style=\"color: #000000;\">b) 0<\/span><\/p>\n<p><span style=\"color: #000000;\">c) 5<\/span><\/p>\n<p><span style=\"color: #000000;\">d) None of these<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000;\">Q.5: In the Python statement x = a + 5 &#8211; b : a and b are<\/span><\/strong><\/p>\n<p><span style=\"color: #000000;\">a) Operands<\/span><\/p>\n<p><span style=\"color: #000000;\">b) Expression<\/span><\/p>\n<p><span style=\"color: #000000;\">c) Operator<\/span><\/p>\n<p><span style=\"color: #000000;\">d) Equation<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000;\">Q.6: Which of the following operators has the lowest precedence ?<\/span><\/strong><\/p>\n<p><span style=\"color: #000000;\">a) Not<\/span><\/p>\n<p><span style=\"color: #000000;\">b) %<\/span><\/p>\n<p><span style=\"color: #000000;\">c) And<\/span><\/p>\n<p><span style=\"color: #000000;\">d) +<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000;\">Q.7: Which of the following is not an immutable type in Python ?<\/span><\/strong><\/p>\n<p><span style=\"color: #000000;\">a) String<\/span><\/p>\n<p><span style=\"color: #000000;\">b) Tuples<\/span><\/p>\n<p><span style=\"color: #000000;\">c) Set<\/span><\/p>\n<p><span style=\"color: #000000;\">d) List<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000;\">Q.8: Which of the following is the truncation division operator in Python?<\/span><\/strong><\/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) %<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000;\">Q.9:What\u00a0 is the value of the expression 10+ 3**3*2?<\/span><\/strong><\/p>\n<p><span style=\"color: #000000;\">a) 28<\/span><\/p>\n<p><span style=\"color: #000000;\">b) 739<\/span><\/p>\n<p><span style=\"color: #000000;\">c) 829<\/span><\/p>\n<p><span style=\"color: #000000;\">d) 64<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000;\">Q.10: In\u00a0 Python , a variable must be declared\u00a0 before it is assigned a value .<\/span><\/strong><\/p>\n<p><span style=\"color: #000000;\">a) True<\/span><\/p>\n<p><span style=\"color: #000000;\">b) False<\/span><\/p>\n<p><span style=\"color: #000000;\">c) Only in function<\/span><\/p>\n<p><span style=\"color: #000000;\">d) Only in modules<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000;\">Q.11: The explicit conversion of an operand to a specific type is called \u2026\u2026\u2026\u2026\u2026 .<\/span><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000;\">Q.12:Identifiers , literals,strings,list , tuples, sets are all \u2026\u2026\u2026\u2026\u2026. .<\/span><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000;\">Q.13: Write the output of the following :<\/span><\/strong><\/p>\n<p><span style=\"color: #000000;\">a =5<\/span><\/p>\n<p><span style=\"color: #000000;\">b=-3<\/span><\/p>\n<p><span style=\"color: #000000;\">c=25<\/span><\/p>\n<p><span style=\"color: #000000;\">d=-10<\/span><\/p>\n<p><span style=\"color: #000000;\">a+b+c &gt; a+c-b*d<\/span><\/p>\n<p><span style=\"color: #000000;\">str(a+b+c &gt; a+c-b*d) ==str(true)<\/span><\/p>\n<p><span style=\"color: #000000;\">len(str(a+b+c &gt; a+c-b*d)) == len(str(true))<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000;\">Q.14: What is the output of the following :<\/span><\/strong><\/p>\n<p><span style=\"color: #000000;\">a = 3+ 5\/8<\/span><\/p>\n<p><span style=\"color: #000000;\">b =3\u00a0 + float(5)\/8<\/span><\/p>\n<p><span style=\"color: #000000;\">c = 3 + 5\/8.0<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000;\">Q.15: What do you understand by term \u2018immutable\u2019?<\/span><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000;\">Q.16: Why is Boolean considered a subtype of integer ?<\/span><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000;\">Q.17 : Which data\u00a0 types of\u00a0 Python handle number ?<\/span><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000;\">Q.18: What are augmented assignment operators? How are they useful?<\/span><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000;\">Q.19 : What is the difference between implicit type conversion and explicit type conversion ?<\/span><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000;\">Q.20: How does the \/\/ operator differ from the \/ operator?<\/span><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h3 style=\"text-align: center;\"><span style=\"color: #ff0000;\"><strong>Solution for\u00a0 Data Handling Worksheet Class 11 Computer Science given below:<\/strong><\/span><\/h3>\n<p>&nbsp;<\/p>\n<input type='hidden' bg_collapse_expand='69d956c81a0e81024496825' value='69d956c81a0e81024496825'><input type='hidden' id='bg-show-more-text-69d956c81a0e81024496825' value='Check Solution'><input type='hidden' id='bg-show-less-text-69d956c81a0e81024496825' value='Hide Solution'><button id='bg-showmore-action-69d956c81a0e81024496825' class='bg-showmore-plg-button bg-orange-button bg-eye '   style=\" color:#4a4949;\">Check Solution<\/button><div id='bg-showmore-hidden-69d956c81a0e81024496825' ><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000\">Q.1: Which Python built-in function returns the unique number assigned to an object?<\/span><\/strong><\/p>\n<p><span style=\"color: #000000\">b) Id()<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000\">Q.2: The operator used to check if both the operands reference the same object memory, is the &#8230;&#8230;&#8230;. operator.<\/span><\/strong><\/p>\n<p><span style=\"color: #000000\">c) Is<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000\">Q.3: Python operator always yields the result of &#8230;&#8230;&#8230;. datatype.<\/span><\/strong><\/p>\n<p><span style=\"color: #000000\">b) Floating type<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000\">Q.4: What is the value of the expression 100 \/\/ 25 ?<\/span><\/strong><\/p>\n<p><span style=\"color: #000000\">a) 4<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000\">Q.5: In the Python statement x = a + 5 &#8211; b : a and b are<\/span><\/strong><\/p>\n<p><span style=\"color: #000000\">a) Operands<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000\">Q.6: Which of the following operators has the lowest precedence ?<\/span><\/strong><\/p>\n<p><span style=\"color: #000000\">c) and<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000\">Q.7: Which of the following is not an immutable type in Python ?<\/span><\/strong><\/p>\n<p><span style=\"color: #000000\">c) Set<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000\">Q.8: Which of the following is the truncation division operator in Python?<\/span><\/strong><\/p>\n<p><span style=\"color: #000000\">c) \/\/<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000\">Q.9:What\u00a0 is the value of the expression 10+ 3**3*2?<\/span><\/strong><\/p>\n<p><span style=\"color: #000000\">d) 64<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000\">Q.10: In\u00a0 Python , a variable must be declared\u00a0 before it is assigned a value .<\/span><\/strong><\/p>\n<p><span style=\"color: #000000\">b) False<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000\">Q.11: The explicit conversion of an operand to a specific type is called \u2026\u2026\u2026\u2026\u2026 .<\/span><\/strong><\/p>\n<p><span style=\"color: #000000\">Answer: Type casting<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000\">Q.12:Identifiers , literals,strings,list , tuples, sets are all \u2026\u2026\u2026\u2026\u2026. .<\/span><\/strong><\/p>\n<p><span style=\"color: #000000\">Answer : Atoms<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000\">Q.13: Write the output of the following :<\/span><\/strong><\/p>\n<p><span style=\"color: #000000\">a =5<\/span><\/p>\n<p><span style=\"color: #000000\">b=-3<\/span><\/p>\n<p><span style=\"color: #000000\">c=25<\/span><\/p>\n<p><span style=\"color: #000000\">d=-10<\/span><\/p>\n<p><span style=\"color: #000000\">a+b+c &gt; a+c-b*d<\/span><\/p>\n<p><span style=\"color: #000000\">str(a+b+c &gt; a+c-b*d) ==str(true)<\/span><\/p>\n<p><span style=\"color: #000000\">len(str(a+b+c &gt; a+c-b*d)) == len(str(true))<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000\">Answer :<\/span><\/p>\n<p><span style=\"color: #000000\">True<\/span><\/p>\n<p><span style=\"color: #000000\">False<\/span><\/p>\n<p><span style=\"color: #000000\">True<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000\">Q.14: What is the output of the following :<\/span><\/strong><\/p>\n<p><span style=\"color: #000000\">a = 3+ 5\/8<\/span><\/p>\n<p><span style=\"color: #000000\">b =3\u00a0 + float(5)\/8<\/span><\/p>\n<p><span style=\"color: #000000\">c = 3 + 5\/8.0<\/span><\/p>\n<p><span style=\"color: #000000\">Answer :\u00a0 3\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 3.625\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 3.625<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000\">Q.15: What do you understand by term \u2018immutable\u2019?<\/span><\/strong><\/p>\n<p><span style=\"color: #000000\">Answer : \u00a0Immutable means unchangeable. In Python, immutable types are those whose values cannot be changed in place. Whenever one assigns a new value to a variable referring to immutable type, variable\u2019s reference is changed and previous value is left unchanged<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000\">Q.16: Why is Boolean considered a subtype of integer ?<\/span><\/strong><\/p>\n<p><span style=\"color: #000000\">Answer : Boolean values True and False internally map to integers 1 and 0. That is, internally True is considered equal to 1 and False equal to 0 (zero). When 1 and 0 are converted to Boolean through bool() function, they return True and False. That is why Booleans are treated as a subtype of integers.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000\">Q.17 : Which data\u00a0 types of\u00a0 Python handle number ?<\/span><\/strong><\/p>\n<p><span style=\"color: #000000\">i) Plain integers<\/span><\/p>\n<p><span style=\"color: #000000\">ii) Long integers<\/span><\/p>\n<p><span style=\"color: #000000\">iii) Boolean<\/span><\/p>\n<p><span style=\"color: #000000\">iv) Floating \u2013 point numbers<\/span><\/p>\n<p><span style=\"color: #000000\">v) Complex numbers<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000\">Q.18: What are augmented assignment operators? How are they useful?<\/span><\/strong><\/p>\n<p><span style=\"color: #000000\">Answer:<\/span><\/p>\n<p><span style=\"color: #000000\">Augmented assignment operators combine the impact of an arithmetic operator with an assignment operator. For example, to add the value of b to the value of a and assign the result back to a then instead of writing:<\/span><\/p>\n<p><span style=\"color: #000000\">a = a + b<\/span><\/p>\n<p><span style=\"color: #000000\">we can write<\/span><\/p>\n<p><span style=\"color: #000000\">a += b.<\/span><\/p>\n<p><span style=\"color: #000000\">Augmented assignment operators are useful as they provide a shorthand way by combining the arithmetic and assignment operators.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #000000\">Q.19 : What is the difference between implicit type conversion and explicit type conversion ?<\/span><\/strong><\/p>\n<p><span style=\"color: #000000\">Answer :<\/span><\/p>\n<p><span style=\"color: #000000\"><strong>Implicit<\/strong>\u00a0conversion is where the interpreter helps us out and automatically converts one data type into another, without having to explicitly tell it to do so<\/span><\/p>\n<p><span style=\"color: #000000\"><strong>Explicit<\/strong>\u00a0conversion is where we manually convert from one data type to another by calling the relevant function for the data type we want to convert to, also called as Casting<\/span><\/p>\n<p><strong><span style=\"color: #000000\">Q.20: How does the \/\/ operator differ from the \/ operator?<\/span><\/strong><\/p>\n<p><span style=\"color: #000000\">Answer : The Division operator (\/) divides its first operand by second operand and always returns the result as a float value whereas Floor Division operator (\/\/) divides its first operand by second operand and truncates the fractional part of the result and returns it as an int value. Floor Division operator is useful in situations where we only need the integer part of the division operation result.<\/span><\/p>\n<p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Data Handling Worksheet Class 11 Computer Science &nbsp; Q.1: Which Python built-in function returns the unique number assigned to an object? a) Identity() b) Id() c) Refnum() d) Ref() &nbsp; Q.2: The operator used to check if both the operands reference the same object memory, is the &#8230;&#8230;&#8230;. operator. a) In b) Id c) Is [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,20],"tags":[],"class_list":["post-3378","post","type-post","status-publish","format-standard","hentry","category-cbse-sample-papers-class-11","category-cbse-computer-science-with-python-class-12"],"_links":{"self":[{"href":"https:\/\/cbsepython.in\/wp-json\/wp\/v2\/posts\/3378","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\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/cbsepython.in\/wp-json\/wp\/v2\/comments?post=3378"}],"version-history":[{"count":0,"href":"https:\/\/cbsepython.in\/wp-json\/wp\/v2\/posts\/3378\/revisions"}],"wp:attachment":[{"href":"https:\/\/cbsepython.in\/wp-json\/wp\/v2\/media?parent=3378"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cbsepython.in\/wp-json\/wp\/v2\/categories?post=3378"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cbsepython.in\/wp-json\/wp\/v2\/tags?post=3378"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}