a) num1 += 3 + 2 will create a value 5 referenced by #calculating the volume using the formula NCERT Solutions for Class 11 Computer Science (Python) – Getting Started with Python Very Short Answer type Questions [1 mark each] Question 1: What are the two modes in Python ? The character with lower Unicode value is considered to be smaller. e) Assign the concatenated value of string variables first, middle and last to variable fullname. A, B, C take x days, y days and z days respectively to do the job alone. Programming Methodology 6. Conditional and Looping Constructs. For example, list((1, 2, 3)) yields [1, 2, 3] and list (‘abc’) yields [‘a’, ‘b’, ‘c’j. The values of x and y are 5 and 6 respectively. (c) List Answer: n) print((0 < 6) or (not (10 == 6) and (10<0))). n) print( (0 < 6) or (not (10 == 6) and (10<0) ) ) The syntax is correct. Programming language is used to create programs (i.e. Nov 26, 2020 - NCERT Solution - Getting Started with Python, Computer Science (Python), Class 11 Class 11 Notes | EduRev is made by best teachers of Class 11. Therefore, the output will be 27.2. View NCERT Solutions for all chapters of Class 11. c) (6,6): True (a) try : is a keyword can’t be used as an identifier. y = int(input('Enter the number of days required by B to complete work alone: ')) Strings in double quotes work exactly the same way as strings in single quotes. If a variable is ever assigned a new value inside the function, the variable is implicitly local, and you need to explicitly declare it as ‘global’. 10 + 6 * 4 != 2 - 3 Question 6: y = k Answer: Answer: import config Answer: #import the math module, to use sin & radians function b) 2 + 3 == 4 + 5 == 7 Class 10 Foundation of Information Technology, Thank a Customer For a Payment (ENGLISH LETTER WRITING), Thank a Business For Good Service, Low Prices, or Professional Courtesies (ENGLISH LETTER WRITING), Respond to a Complaint and Treat It As Valuable Feedback (ENGLISH LETTER WRITING), Respond Positively to Negative Feedback (ENGLISH LETTER WRITING), Reply Positively to a Suggestion (ENGLISH LETTER WRITING), Class 7 Hindi Textbook – हिंदी वसंत भाग-II, Class 7: An Alien Hand Supplementary Reader, Important Questions for Class 12 Computer Science (Python), NCERT Solutions for Class 12 Computer Science (C++), NCERT Solutions For Class 7 Honeycomb English, NCERT Solutions For Class 8 Honeydew – All Chapters, NCERT Solutions for Class 8 Social Science, NCERT Solutions For Class 8: It So Happened – All Chapters, ऋतुओं पर निबंध (Essay On Seasons In Hindi), त्योहारों पर निबंध (Essay On Festivals In Hindi), नेताओं पर निबन्ध (Essay On Leaders In Hindi), विज्ञान पर निबंध (Essay On Science In Hindi), स्वास्थ्य और खेल संबंधी निबंध (Essay On Health And Sports In Hindi). #print the result i) num1 = int('3.14') Answer: The function list(seq) converts any sequence or iterable into a list with the same items in the same order. A tuple is immutable i.e. Free downloadable chapter wise NCERT solutions for class 11 Science Computer Science in PDF format to help students in homework and score good marks in test and exams. #Program to input two numbers and performing all arithmetic operations Program: Write a Python expression using variables x and y that evaluates to True if the dart hits (is within) the dartboard, and then evaluate the expression for these dart coordinates: Ans- Python was developed by Guido Van Rossum. Getting started with Python 11th Computers CBSE NCERT Chapter 8 Marketing along with videos,solved papers and worksheets.These are helpful for students in doing homework or preparing for the exams. OUTPUT: What are the two modes in Python ? Answer: Interactive Mode Programming and Script Mode Programming. CBSE Class 11 Revision Notes and Key Points. You will also love the ad-free experience on Meritnation’s NCERT Solutions. num1 = 2 below we have mentioned complete Class 11 Computer Science Syllabus. Python’s dictionaries are kind of hash table type. Before we discussed the CBSE Class 11 Computer Science NCERT Solutions.Let us check the Class 11 Computer Science Syllabus. We have given all the detailed NCERT Solutions for Class 11 Getting Started with Python in PDF format which you can read for FREE. print(tf) Answer: Write a program to enter two integers and perform all arithmetic operations on them. b) (10,10): False Question 11: Python has one special literal called ‘None’. 212.0 c) num1, num2 = 2, 3 Question 14: 15 < 50 Computer Science in Class 11 is an important and easy to score subject for Class 11 … List Manipulation. numeric values. We can create a config file & store the entire global variable to be shared across modules or script in it. combined = (x * y * z)/(x*y + y*z + x*z) (c) abc@123 : Special characters aren’t allowed in variable names. Results:- a = 5 Ltd. All rights reserved. Question 19: Therefore, the output will be 1.0. f) The float data type will be used to represent 'Perimeter of a square'. The error will arise only when 'interpreter' will run this line. Question 11: >>> ‘,’.join(a) Program: (a) Numbers print('Water Freezing temperature in Fahrenheit::') The primary difference is that a Python list can contain objects of many different types. y Question 2: On one hand, requiring global for assigned variables provides a bar against unintended side-effects. #defining the boiling and freezing temp in celcius Here in this Section, we have mentioned the Class 11 Computer Science Exam Pattern. y = 6 Answer: Computer Science in Class 11 is an important and easy to score subject for Class 11 … g) num1 = 24 // 4 // 2 If you continue to use this site we will assume that you are happy with it. b) num1 = num1 ** (num2 + num3) (b) String 29 <= 29 Python allows three types of integer literals : Question 4: Recent Posts ... Write a comment. Software Concepts 3. x = 5 2020 Applect Learning Systems Pvt. Unlike lists, however, tuples are enclosed within parentheses. Operators in Python 10. To convert between built-in types, programmer simply use the type name as a function. Introducing Python Pandas. d) num1 = '5' + '5' Sequence is an ordered collection of items, indexed by positive integers, It is a combination of mutable and non-mutable data types. students are advised to check out the complete syllabus and exam pattern with the marking scheme.. 1. #if dis is greater than 10, means that dart is more than 10 units away from the centre. num1 = 2 + 9 * 28/10 #defining two variables Write a program to repeat the string ''GOOD MORNING'' n times. j) print('Bye' == 'BYE') (adsbygoogle = window.adsbygoogle || []).push({}); © 2020 indianexpresss.in. Is there a tool to help find bugs or perform static analysis? An example is “What’s your name?” You will turn 100 years old in the year",hundred) c) Error as num3 is used in RHS of line 2 (num3, num2 = num1, num3 + 1) before defining it earlier. num1, num2 = num2, num1 + 2 Name four Python’s basic data types. #Printing the temperature FREE Downloadable NCERT Solutions.Works without internet, Address = { 'Line1': ‘Address line 1', 'Line2':'Address Line2', 'Locality':'Locality Name', 'City':'City Name', 'Pincode':110001, 'Country':'India'}, print(10 + 6 * 2 ** 2 != 9//4 -3 and 29>= 29/9), print((0 < 6) or (not (10 == 6) and (10<0))), print( (0 < 6) or (not (10 == 6) and (10<0) ) ). Answer: Yes, Python is a interpreted language. Enter the rate of interest per annum: 4.5 Question 1: print('Total amount:',amount) Data Handling. “Dictionary” is similar to what their name is. NCERT Solutions for Class 11 Science Computer science Chapter 5 Getting Started With Python are provided here with simple step-by-step explanations. How do you make conversion between tuples and lists ? If the argument if a tuple, it does not make a copy but returns the same object, so it is cheap to call tuple( ) when you aren’t sure that an object is already a tuple. f) Perimeter of a square height = round(length * sin,2) They are immutable data types, which means that changing the value of a number data type results in a newly allocated object. print("The values of x and y after swapping are",x,"and",y,"respectively.") (c) sum “‘This is a multi-line string. Division: 2.6666666666666665 Question 7: word = ‘abcdefghij’ Question 3: […] Enjoy FREE doubts help & video explanations. 10 + 6 * 2 ** 2 != 9//4 - 3 print("Exponentiation: ",num1 ** num2) Example : How do you make an array in Python? String Manipulation. Question 13: > > > a = [‘one’,’two’,’three’] #displaying the output List Of Chapters. freeze = 0 print(4.0/4.0) Python Fundamentals. It will be available for use in other modules. Answer: The height reached by the ladder with length 20 feet and aligned at 0 degrees is 0.0 feet. Dictionary is similar to association array or hash table of other languages. b) Assign the average of values of variables length and breadth to a variable sum Answer: List and String. Tuple. Dictionaries. P = float(input('Enter the principal: ')) Answer: # The expression within outer brackets will be evaluated next Question 12: average = (a + b + c)/3 print (num1, num2, num3). Therefore, the output will be 1024. Answer: Interactive Mode Programming and Script Mode Programming. String. “\a” – size is 1 as there is one character enclosed in double quotes. The formula for the volume of a sphere: print(str * n) e) fullname = first +" "+ middle +" "+ last, Write logical expressions corresponding to the following statements in Python and evaluate the expressions (assuming variables num1, num2, num3, first, middle, last are already having meaningful values): Question 3: Is Python Object-Oriented Language ? length = int(input("Enter the length of the ladder: ")) x print(num1) str = "GOOD MORNING " g) The string data type will be used to represent 'Name of the student'. Answer: Addition: 11 Built using WordPress and the EmpowerWP Theme, Click to share on Twitter (Opens in new window), Click to share on Facebook (Opens in new window), NCERT Solutions for Class 11 Computer Science (Python) – Introduction to Python, NCERT Solutions for Class 11 Computer Science (Python) – Operators in Python. NCERT Solutions Class 11 Computer Science Getting Started with Python. The height reached by the ladder with length 24 feet and aligned at 80 degrees is 23.64 feet. Algorithms and Flowcharts Unit 3 : Introduction to Python. # Using 'multiple assignment' to swap the values print(4.00/(2.0 + 2.0)) d) Enter the length of the ladder: 24 d) (7,8). a) Number of months in a year print (num1, num2) Question 10: You will turn 100 years old in the year", #Program to calculate the equivalent energy of an object, #Speed of light is known and given in the question, #calculating the energy, mass is divided by 1000 to convert it into kilogram, #import the math module, to use sin & radians function, # Calculating height and rounding it off to 2 decimal places, "The height reached by ladder with length", TS Grewal Solutions for Class 12 Commerce, TS Grewal Solutions for Class 11 Commerce, Homework Questions for Class 11 Humanities, Homework Questions for Class 12 Humanities, CBSE Class 10 Board Paper Solutions for Math, CBSE Class 10 Board Paper Solutions for Science, CBSE Class 10 Board Paper Solutions for Social Science, CBSE Class 10 Board Paper Solutions for English, CBSE Class 10 Board Paper Solutions for Hindi, CBSE Class 12 Science Board Paper Solutions for Math, CBSE Class 12 Science Board Paper Solutions for Physics, CBSE Class 12 Science Board Paper Solutions for Chemistry, CBSE Class 12 Science Board Paper Solutions for Biology, CBSE Class 12 Commerce Board Paper Solutions for Economics, CBSE Class 12 Commerce Board Paper Solutions for Accountancy, CBSE Class 12 Commerce Board Paper Solutions for Business Studies, CBSE Class 12 Commerce Board Paper Solutions for Math, CBSE Class 12 Humanities Board Paper Solutions for English. What is PEP 8? Python Fundamentals. The error will arise only when 'interpreter' will run the line containing these statements. Give an example. Introducing Python Modules. c ⇒ speed of light in m/s. c) 24 feet and 45 degrees print("Subtraction: ",num1-num2) ‘\a’ – size is 1 as there is one character and it is a string literal enclosed in single quotes. Algorithms and Flowcharts Unit 3 : Introduction to Python. c) 6.75 is between the values of integers num1 and num2. Using Double Quotes (”) The values of x and y are 5 and 6 respectively. This statement will make y refer to 5 of x. For example : if, else, elif etc. import math