{"id":3368,"date":"2022-09-11T20:18:13","date_gmt":"2022-09-11T14:48:13","guid":{"rendered":"https:\/\/cbsepython.in\/?p=3368"},"modified":"2022-09-11T20:18:13","modified_gmt":"2022-09-11T14:48:13","slug":"python-fundamentals-worksheet-class-11","status":"publish","type":"post","link":"https:\/\/cbsepython.in\/python-fundamentals-worksheet-class-11\/","title":{"rendered":"Python Fundamentals Worksheet Class 11"},"content":{"rendered":"<h1><span style=\"color: #000000;\"><strong>Python Fundamentals Worksheet Class 11\u00a0<\/strong><\/span><\/h1>\n<p><span style=\"color: #000000;\"><strong>\u00a0<\/strong><strong>Q.1: Which of the following is correct as an identifier?<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">a) Int<\/span><\/p>\n<p><span style=\"color: #000000;\">b) Surface area<\/span><\/p>\n<p><span style=\"color: #000000;\">c) Omega<\/span><\/p>\n<p><span style=\"color: #000000;\">d) 1volume<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>Q.2:Python is a \u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026 language.<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">a) Low level<\/span><\/p>\n<p><span style=\"color: #000000;\">b) High level<\/span><\/p>\n<p><span style=\"color: #000000;\">c) Machine<\/span><\/p>\n<p><span style=\"color: #000000;\">d) Assembly<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>Q.3: &#8220;Hello&#8221;*2=<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">a) \u201cHello2\u201d<\/span><\/p>\n<p><span style=\"color: #000000;\">b) \u201chellohello\u201d<\/span><\/p>\n<p><span style=\"color: #000000;\">c) \u201cHelloHello\u201d<\/span><\/p>\n<p><span style=\"color: #000000;\">d) \u201cHello2Hello\u201d<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>Q.4: Which of the following is not valid in python?<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">a) x=y+z<\/span><\/p>\n<p><span style=\"color: #000000;\">b) X+=Y<\/span><\/p>\n<p><span style=\"color: #000000;\">c) X=Y**Z<\/span><\/p>\n<p><span style=\"color: #000000;\">d) X+Y=Z<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>Q.5:The\u00a0 raw_input( )\u00a0 always return a value of \u2026\u2026\u2026\u2026\u2026.. type<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">a) String<\/span><\/p>\n<p><span style=\"color: #000000;\">b) Int<\/span><\/p>\n<p><span style=\"color: #000000;\">c) Float<\/span><\/p>\n<p><span style=\"color: #000000;\">d) List<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>Q.6:Which symbol is used to begin comment in Python ?<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">a) *<\/span><\/p>\n<p><span style=\"color: #000000;\">b) &amp;<\/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><span style=\"color: #000000;\"><strong>Q.7: \u00a0Which one of the following have the highest precedence in the expression?<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">a) Exponential<\/span><\/p>\n<p><span style=\"color: #000000;\">b) Addition<\/span><\/p>\n<p><span style=\"color: #000000;\">c) Multiplication\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">d)parentheses<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>Q.8: Which of the following is an escape sequence for a newline character?<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">a) \\a<\/span><\/p>\n<p><span style=\"color: #000000;\">b) \\t<\/span><\/p>\n<p><span style=\"color: #000000;\">c) \\n<\/span><\/p>\n<p><span style=\"color: #000000;\">d) \\b<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>Q.9: What is answer of this expression, 22 % 3 is?<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">a) 7<\/span><\/p>\n<p><span style=\"color: #000000;\">b) 1<\/span><\/p>\n<p><span style=\"color: #000000;\">c) 0<\/span><\/p>\n<p><span style=\"color: #000000;\">d) 5<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>Q.10: To determine the data type of a variable \u2026\u2026\u2026\u2026\u2026\u2026.. is used.<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">a) Dtype()<\/span><\/p>\n<p><span style=\"color: #000000;\">b) type()<\/span><\/p>\n<p><span style=\"color: #000000;\">c) cast()<\/span><\/p>\n<p><span style=\"color: #000000;\">d) ndim()<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>Q.11: Data items having fixed values are called\u2026\u2026\u2026\u2026\u2026..<\/strong><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>Q.12: \u2026\u2026\u2026\u2026\u2026\u2026.\u00a0 are\u00a0 tokens that trigger some computation when applied to variables\u00a0 and other objects in an expression.<\/strong><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>Q.13:Write the output :<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">X = 10\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">X = X + 10\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">X = X &#8211; 5\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">print (X)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">X, Y = X &#8211; 2, 22<\/span><\/p>\n<p><span style=\"color: #000000;\">print (X, Y)\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>Q.14:Write the output of the following code:<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">a, b\u00a0 = 10, 30<\/span><\/p>\n<p><span style=\"color: #000000;\">a, b, a = b, b + 3, a \u2013 5<\/span><\/p>\n<p><span style=\"color: #000000;\">print( a, b)\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>Q.15: How are string-literals represented and implemented in Python ?<\/strong><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>Q.16: What do you mean by dynamic typing ?<\/strong><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>Q.17:What is the use of indentation in Python ?<\/strong><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>Q.18: What is typecasting? Explain with example<\/strong><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>Q.19: What are operators ? What is their function ? Give examples of some unary and binary operators.<\/strong><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>Q.20: Define:<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">a) Expressions<\/span><\/p>\n<p><span style=\"color: #000000;\">b) Statements<\/span><\/p>\n<p><span style=\"color: #000000;\">c) Comments<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h3 style=\"text-align: center;\"><span style=\"color: #ff0000;\"><strong>Check Solution below: Python Fundamentals Worksheet Class 11\u00a0<\/strong><\/span><\/h3>\n<h2><\/h2>\n<input type='hidden' bg_collapse_expand='69d84e4d2e19a8058469163' value='69d84e4d2e19a8058469163'><input type='hidden' id='bg-show-more-text-69d84e4d2e19a8058469163' value='Check Solution'><input type='hidden' id='bg-show-less-text-69d84e4d2e19a8058469163' value='Hide Solution'><button id='bg-showmore-action-69d84e4d2e19a8058469163' class='bg-showmore-plg-button bg-orange-button bg-eye '   style=\" color:#4a4949;\">Check Solution<\/button><div id='bg-showmore-hidden-69d84e4d2e19a8058469163' ><\/p>\n<p><span style=\"color: #000000\"><strong>Q.1: correct identifier-<\/strong><\/span><\/p>\n<p><span style=\"color: #000000\">c) Omega<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000\"><strong>Q.2:Python is a \u2026\u2026\u2026\u2026language.<\/strong><\/span><\/p>\n<p><span style=\"color: #000000\">b) High level<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000\"><strong>Q.3: &#8220;Hello&#8221;*2=<\/strong><\/span><\/p>\n<p><span style=\"color: #000000\">c) \u201cHelloHello\u201d<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000\"><strong>Q.4: Not valid in python?<\/strong><\/span><\/p>\n<p><span style=\"color: #000000\">d) X+Y=Z<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000\"><strong>Q.5: raw_input( )\u00a0 always return a <\/strong><\/span><\/p>\n<p><span style=\"color: #000000\">a) String<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000\"><strong>Q.6: symbol is used to begin comment in Python ?<\/strong><\/span><\/p>\n<p><span style=\"color: #000000\">d) #<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000\"><strong>Q.7:\u00a0 highest precedence in the expression?<\/strong><\/span><\/p>\n<p><span style=\"color: #000000\">d)parentheses<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000\"><strong>Q.8: Escape sequence for a newline character?<\/strong><\/span><\/p>\n<p><span style=\"color: #000000\">c) \\n<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000\"><strong>Q.9: 22 % 3\u00a0 will return-<\/strong><\/span><\/p>\n<p><span style=\"color: #000000\">b) 1<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000\"><strong>Q.10: To determine the data type of a variable we use-<\/strong><\/span><\/p>\n<p><span style=\"color: #000000\">b) type()<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000\"><strong>Q.11: <\/strong>Data items having fixed values are called <strong><span style=\"text-decoration: underline\">Literals<\/span><\/strong><\/span><\/p>\n<p><span style=\"color: #000000\"><strong>Q.12:<span style=\"text-decoration: underline\">Operators<\/span> <\/strong>are\u00a0 tokens that trigger some computation when applied to variables\u00a0 and other objects in an expression.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000\"><strong>Q.13:Output :<\/strong><\/span><\/p>\n<p><span style=\"color: #000000\">Answer : 15<\/span><\/p>\n<p><span style=\"color: #000000\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 13\u00a0\u00a0 22<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000\"><strong>Q.14:Output\u00a0<\/strong><\/span><\/p>\n<p><span style=\"color: #000000\">Answer : 5,33<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000\"><strong>Q.15: How are string-literals represented and implemented in Python ?<\/strong><\/span><\/p>\n<p><span style=\"color: #000000\">Answer : A string-literal is represented as a sequence of characters surrounded by quotes (single, double or triple quotes). String-literals in Python are implemented using Unicode.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000\"><strong>Q.16: What do you mean by dynamic typing ?<\/strong><\/span><\/p>\n<p><span style=\"color: #000000\">Answer : A variable pointing to a value of a certain type , can be made to point to a value of different type . This is called dynamic typing<\/span><\/p>\n<p><span style=\"color: #000000\">.<\/span><\/p>\n<p><span style=\"color: #000000\"><strong>Q.17:What is the use of indentation in Python ?<\/strong><\/span><\/p>\n<p><span style=\"color: #000000\">Answer :\u00a0 Python uses indentation to create block of code. Statements at same indentation level are part of same block\/suite.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000\"><strong>Q.18: What is typecasting? Explain with example<\/strong><\/span><\/p>\n<p><span style=\"color: #000000\">Answer: Converting one datatype into another\u00a0is known as type casting or, type-conversion. For example, if you want to store a &#8216;long&#8217; value into a simple integer then you can type cast &#8216;long&#8217; to &#8216;int&#8217;. You can convert the values from one type to another explicitly using the cast operator as follows \u2212 (type_name) expression.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000\"><strong>Q.19: What are operators ? What is their function ? Give examples of some unary and binary operators.<\/strong><\/span><\/p>\n<p><span style=\"color: #000000\">Answer : \u00a0Operators are tokens that trigger some computation\/action when applied to variables and other objects in an expression. Unary plus (+), Unary minus (-), Bitwise complement (~), Logical negation (not) are a few examples of unary operators. Examples of binary operators are Addition (+), Subtraction (-), Multiplication (*), Division (\/).<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000\"><strong>Q.20: Define:<\/strong><\/span><\/p>\n<p><span style=\"color: #000000\">a) Expressions<\/span><\/p>\n<p><span style=\"color: #000000\">Answer:\u00a0Expressions is any legal combination of symbols that represent value<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000\">b) Statements<\/span><\/p>\n<p><span style=\"color: #000000\">Answer: A statement is a programming instruction that does something i.e. some action takes place<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000\">c) Comments<\/span><\/p>\n<p><span style=\"color: #000000\">Answer : Comments are the additional readable information to clarify the source code, which is read by the programmers but ignored by the interpreter.<\/span><\/p>\n<p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Python Fundamentals Worksheet Class 11\u00a0 \u00a0Q.1: Which of the following is correct as an identifier? a) Int b) Surface area c) Omega d) 1volume &nbsp; Q.2:Python is a \u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026 language. a) Low level b) High level c) Machine d) Assembly &nbsp; Q.3: &#8220;Hello&#8221;*2= a) \u201cHello2\u201d b) \u201chellohello\u201d c) \u201cHelloHello\u201d d) \u201cHello2Hello\u201d &nbsp; Q.4: Which of [&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-3368","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\/3368","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=3368"}],"version-history":[{"count":0,"href":"https:\/\/cbsepython.in\/wp-json\/wp\/v2\/posts\/3368\/revisions"}],"wp:attachment":[{"href":"https:\/\/cbsepython.in\/wp-json\/wp\/v2\/media?parent=3368"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cbsepython.in\/wp-json\/wp\/v2\/categories?post=3368"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cbsepython.in\/wp-json\/wp\/v2\/tags?post=3368"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}