Class : XIInformatics Practices : IP (065)Getting Started with PythonChapter Question AnswerBy : JD Sir (PGT Computer)
Q1. When was Python released?
Answer: Python was developed in February 1991.
Q2. Who was Python's developer and which two languages contributed to Python as a programming language?
Answer: Guido Van Rossum is the developer of Python. ABC language and Modula-3 contributed to Python as a programming language.
Q3. What is a cross-platform software?
Answer: A cross-platform software is a software that can run well on a variety of platforms like Windows, Linux/Unix, Macintosh, etc.
Q4. What are the advantages of Python programming language?
Answer: Advantages of Python programming language are:
- Easy to Use — Python is compact, programmer-friendly and very easy to use object-oriented language with very simple syntax rules.
- Expressive Language — Python is an expressive language; it takes fewer lines of codes to represent the same syntax.
- Interpreted Language — Python is an interpreted language, not a compiled language. It makes Python an easy-to-debug language and thus suitable for beginners to advanced users.
- Completeness — Python has a rich standard library that provides modules for most types of required functionality like emails, webpages, databases, GUI development, network connections, etc.
- Cross-platform Language — Python can run equally well on variety of platforms — Windows, Linux/UNIX, Macintosh, supercomputers, smart phones, etc.
- Free and Open Source — Python language is freely available along with its source-code.
- Variety of Usage/Applications — Python has evolved into a powerful, complete and useful language over these years. These days Python is being used in many diverse fields/applications, some of which are Scripting, Web Applications, Game development, Database Applications, System Administrations, Rapid Prototyping, GUI Programs.
Answer: Some limitations of Python programming language are:
- Not the Fastest Language — As Python is an interpreted language so its execution-times are not that fast compared to some compiled languages.
- Lesser Libraries than C, Java, Perl — Library collection of C, Java, Perl is better than Python.
- Not strong on Type-Binding — Python interpreter is not very strong on catching 'Type-Mismatch' issues.
- Not easily convertible — Translating Python programs to other languages is difficult due to its lack of syntax.
Answer: We can work in Python in two ways:
- Interactive mode
- Script mode
Answer: Interactive mode is useful for testing code. We can type the commands one by one and get the result of error immediately for each command. Disadvantages of Interactive mode is that it does not save commands in form of a program and also output is sandwiched between commands.
Answer: Yes, Python is an object-oriented language.
Q9. Python got its name from which show?
Answer: Python got its name from famous BBC comedy show “Monty Python’s Flying Circus”.
Q10. Python is an interpreted language‟. What does it mean to you?
Answer: It means that the Python installation interprets and executes the code line by line at a time.
Q11. What does a cross-platform language mean?
Answer: it means a language can run equally on variety of platforms-Windows, Linux/UNIX, Macintosh, Supercomputers, Smart phones etc.
Q12. Python is a Free and Open-Source language. What do you understand by this feature?
Answer: It means Python is freely available without any cost. Its source code is also available. One can modify, improve/extend an open-source software.