• Skip to main content
  • Skip to secondary menu
  • Skip to primary sidebar
  • Skip to footer

CBSE Tuts

CBSE Maths notes, CBSE physics notes, CBSE chemistry notes

  • NCERT Solutions
    • NCERT Solutions for Class 12 English Flamingo and Vistas
    • NCERT Solutions for Class 11 English
    • NCERT Solutions for Class 11 Hindi
    • NCERT Solutions for Class 12 Hindi
    • NCERT Books Free Download
  • TS Grewal
    • TS Grewal Class 12 Accountancy Solutions
    • TS Grewal Class 11 Accountancy Solutions
  • CBSE Sample Papers
  • NCERT Exemplar Problems
  • English Grammar
    • Wordfeud Cheat
  • MCQ Questions

NCERT Solutions for Class 11 Computer Science (Python) – Introduction to Python

NCERT Solutions for Class 11 Computer Science (Python) – Introduction to Python

Very Short Answer type Questions [1 mark each]

Question 1:
Is Python a high-level Language ?
Answer:
Yes, Python is a high-level Language.

Question 2:
Is Python interpreted ?
Answer:
Yes, Python is a interpreted language.

Question 3:
Is Python Object-Oriented Language ?
Answer:
Yes, Python is a Object-Oriented Language.

Question 4:
How many modes are available in Python ?
Answer:
interactive mode and script mode.

Question 5:
Can Python be easily integrated with C+ + ?
Answer:
Yes, Python can be easily integrated with C + +.

Question 6:
Is Python supports GUI applications?
Answer:
Yes, Python supports GUI applications.

Question 7:
Does Python support automatic garbage collection ?
Answer:
No, Python does not support automatic garbage collection.

Question 8:
Does Python support Hyper Text Markup Language?
Answer:
No, Python does not support Hyper Text Markup Language.

Question 9:
“Python is Scalable”, is this statement true?
Answer:
True.

Question 10:
Can we connect Python to database ?
Answer:
Yes, we can connect with all major commercial databases.

Short Answer type Questions  [2 mark each]

Question 1:
Define Python ?
Answer:
Python is a high-level, interpreted, interactive and object oriented-scripting language.

Question 2:
Why Python is interpreted ?
Answer:
Python is interpreted because it processed at runtime by the interpreter and you do not need to compile your program before executing it. This is similar to PERL and PHP.

Question 3:
Is there a tool to help find bugs or perform static analysis ?
Answer:
Yes,

  1. Pychecker is a static analysis tool that finds bugs in Python source code and warns about code complexity and style.
  2. Pylint is another tool that checks if a module statisfies a coding standards, and also makes it possible to write plug-ins to add a custom feature.

Question 4:
Who developed Python?
Answer:
Python was developed by Guido van Rossum in the late eighties and early nineties at the National Research Institute for Mathematics and Computer Science in the Netherlands.

Question 5:
Why Python is Easy-to-learn?
Answer:
Python has relatively few keywords, simple structure, and a clearly defined syntax. This allows the student to pick up the language in a relatively short period of time.

Question 6:
Write any feature of Python library.
Answer:
Python library is very portable and cross-platform compatible on UNIX, Windows, and Macintosh.

Question 7:
Write any one similarity between Python and OOPs
Answer:
Python supports most of the OOP concepts like encapsulation, inheritance and polymorphism.

Question 8:
Is Python compiler language or interpreter language?
Answer:
It is normally interpreted by another computer program. However subsets of the language can be compiled.

Long Answer type Questions [4 mark each]

Question 1:
What is the Python programming language?
Answer:
Python is an interpreted, interactive, object- oriented programming language. It is often compared to Tel, Perl, Scheme or Java.
It is a scripting language like Php or Asp for developing applications. Python is an interpreted, object-oriented, high-level programming language with dynamic semantics. Its high-level built in data structures, combined with dynamic typing and dynamic binding, make it very attractive for Rapid Application Development, as well as for use as a scripting or glue language to connect existing components together. Python’s simple, easy to learn syntax emphasizes readability and therefore reduces the cost of program maintenance. Python supports modules and packages, which encourages program modularity and code reuse. The Python interpreter and the extensive standard library are available in source or binary form without charge for all major platforms, and can be freely distributed.

Question 2:
What is Python ? State some programming language features of Python.
Answer:

  1. Python is a modern powerful inter-preted language with objects, modules, threads, exceptions, and automatic memory managements.
  2. Python was introduced to the world in the year 1991 by Guido van Rossum
    Salient features of Python are :

    • Simple & Easy : Python is simple language & easy to learn.
    • Free/open source : Everybody can use python without purchasing license.
    • High level language : When coding in Python one need not worry about low-level details.
    • Portable : Python codes are Machine & platform independent.
    • Extensible: Python program supports usage of C/ C + + codes.
    • Embeddable Language : Python code can be embedded within C/C+ + codes & can be used a scripting language.
    • Standard Library : Python standard library contains prewritten tools for programming.
    • Built-in Data Structure : Contains lots of data structure like lists, numbers & dictionaries.

Question 3:
Distinguish Java with Python
Answer:
Java v/s Python :

  1. Python programs run slower than the Java codes, but Python saves much time and space. Python programs are 3-5 times smaller than Java programs.
  2. Python is a dynamic typed language. Python programmers don’t need to waste time in declaring variable types as in Java.
  3. Python is much more easy to learn than Java.

Question 4:
Explain the disadvantages of Python.
Answer:
Disadvantages of Python are :

  • Python is not the best for memory intensive tasks.
  • Python is interpreted language and is slow compared to C/C+ + or java.
  • Python is not a great choice for a high graphic 3D game that takes up a lot of CPU.
  • Python is evolving continuously with constant evolution there is little substantial documentation available for the language.

Question 5:
Compare C + + v/s Python.
Answer:
C+ + v/s Python

  1. Comparison is same as that between Java and Python except the program length in python is 5-10 times shorter than that in C + + .
  2. Python programmers can complete a task in 2 months that takes a year in C + +.

Question 6:
How do we make Python Scripts Executable ?
Answer:
Python scripts can be executed in two ways :

  1. Open the script1.Py in IDE Editor and run the script in the frontmost window of the Python IDE by hitting the run all button.
  2. Using command prompt by making sure PATH is appropriate directly type script name. > > > python Script1.Py

NCERT SolutionsComputer Science EnglishHindiHumanitiesCommerceScience

Primary Sidebar

NCERT Exemplar problems With Solutions CBSE Previous Year Questions with Solutoins CBSE Sample Papers
  • The Summer Of The Beautiful White Horse Answers
  • Job Application Letter class 12 Samples
  • Science Lab Manual Class 9
  • Letter to The Editor Class 12 Samples
  • Unseen Passage For Class 6 Answers
  • NCERT Solutions for Class 12 Hindi Core
  • Invitation and Replies Class 12 Examples
  • Advertisement Writing Class 11 Examples
  • Lab Manual Class 10 Science

Recent Posts

  • Understanding Diversity Question Answer Class 6 Social Science Civics Chapter 1 NCERT Solutions
  • Our Changing Earth Question Answer Class 7 Social Science Geography Chapter 3 NCERT Solutions
  • Inside Our Earth Question Answer Class 7 Social Science Geography Chapter 2 NCERT Solutions
  • Rulers and Buildings Question Answer Class 7 Social Science History Chapter 5 NCERT Solutions
  • On Equality Question Answer Class 7 Social Science Civics Chapter 1 NCERT Solutions
  • Role of the Government in Health Question Answer Class 7 Social Science Civics Chapter 2 NCERT Solutions
  • Vital Villages, Thriving Towns Question Answer Class 6 Social Science History Chapter 9 NCERT Solutions
  • New Empires and Kingdoms Question Answer Class 6 Social Science History Chapter 11 NCERT Solutions
  • The Delhi Sultans Question Answer Class 7 Social Science History Chapter 3 NCERT Solutions
  • The Mughal Empire Question Answer Class 7 Social Science History Chapter 4 NCERT Solutions
  • India: Climate Vegetation and Wildlife Question Answer Class 6 Social Science Geography Chapter 8 NCERT Solutions
  • Traders, Kings and Pilgrims Question Answer Class 6 Social Science History Chapter 10 NCERT Solutions
  • Environment Question Answer Class 7 Social Science Geography Chapter 1 NCERT Solutions
  • Understanding Advertising Question Answer Class 7 Social Science Civics Chapter 7 NCERT Solutions
  • The Making of Regional Cultures Question Answer Class 7 Social Science History Chapter 9 NCERT Solutions

Footer

Maths NCERT Solutions

NCERT Solutions for Class 12 Maths
NCERT Solutions for Class 11 Maths
NCERT Solutions for Class 10 Maths
NCERT Solutions for Class 9 Maths
NCERT Solutions for Class 8 Maths
NCERT Solutions for Class 7 Maths
NCERT Solutions for Class 6 Maths

SCIENCE NCERT SOLUTIONS

NCERT Solutions for Class 12 Physics
NCERT Solutions for Class 12 Chemistry
NCERT Solutions for Class 11 Physics
NCERT Solutions for Class 11 Chemistry
NCERT Solutions for Class 10 Science
NCERT Solutions for Class 9 Science
NCERT Solutions for Class 7 Science
MCQ Questions NCERT Solutions
CBSE Sample Papers
NCERT Exemplar Solutions LCM and GCF Calculator
TS Grewal Accountancy Class 12 Solutions
TS Grewal Accountancy Class 11 Solutions