Getting Started with python

 

Chapter 1

Introduction to Python

Q1. Who developed Python Programming Language?

Ans. Guido Van Rossum in 1990s developed Python programming language.

Q2. Is Python an Object Oriented language?

Ans. Yes, Python is an Object Oriented language.

Q3. Python is an interpreted high level language. What does it mean to you?

Ans. ‘Python is a high level language’ means it requires an interpreter (not compiler) to execute its code line by line – one statement at a time.

Q4. Python programming language got its name from which show?

Ans. Python programming language was named after a British TV show namely “Monty Python’s Flying Circus.”

Q5. What does a cross platform language mean?

Ans. A cross platform language means it can run well on variety of platform like Windows, Linux/Unix, Macintosh, etc.

Q6. Python is a Free and Open Source language. What do you understand by this feature?

Ans. It means – to download Python, one needs not pay anything, because it is free. And its source-code is also available, which can be modified/improved etc., because it is open-source.

Q7. What is difference between interactive mode and script mode in Python?

Ans. In interactive mod, instructions are given in front of Python prompt ( e.g,. >>> or In[]: prompt) in Python Shell. Python carries out the given instruction and shows the result there itself. In script mode, Python instructions are stored in a file generally with .py extension and are executed together in one go as a unit. The saved instructions are known as Python script or Python program.

Q8. When was Python released?

Ans. Python was released on 20 February 1991.

Q9. Which two languages contributed to Python as a programming language?

Ans. ABC language and Modula-3 language contributed to Python as a programming language.

Q10. What are advantages of Python programming language?

Ans.  Following are the advantages of Python programming language.

a.    Python is compact and very easy to use with very simple syntax rules.

b.    It is more capable to express the code’s purpose than many other languages.

c.    Python is an interpreted language that makes is easy-to-debug.

d.    Python comes with complete packages/libraries that a programmer required.

e.    Python is free and open source program.

f.     It can be run across any platform for variety of uses.

 

Q11. What are some limitations of Python programming language?

Ans. Following are some limitations of Python programming language.

a.    It is not the fasted language.

b.    It has lesser libraries than other languages such as C, Java, Perl, etc.

c.    Python interpreter is not very strong on catching ‘Type-mismatch.’

d.    Python program cannot be easily translated to other languages.

Q12. In how many different ways, can you work in Python?

Ans. We can work in Python using Default installation called CPython installation. Apart from this, there are many other Python distributions like Anaconda Python, etc.

Q13. What are the advantages/disadvantages of working in Interactive mode in Python?

Ans. The advantage of working in interactive mode is that the output is given instantly after typing the code. But the disadvantage in working interactive mode is that we cannot save the any code for future use and the output is sandwiched between the command lines.

 

 

Comments

Popular posts from this blog

The Road Not Taken

Chapter 4 The Basic Writing Skills

The Fun They Had