0% found this document useful (0 votes)
28 views2 pages

PYTHON BASICS 8th Textbook1

The document discusses the basics of the Python programming language. It defines what a program and programming language are. It explains that there are three types of computer languages: machine level language, assembly level language, and high-level languages like Python. Python is an interpreted, high-level and open-source programming language commonly used for web development, data analysis, and more. It was created by Guido van Rossum and named after the BBC show Monty Python.

Uploaded by

sacbansal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views2 pages

PYTHON BASICS 8th Textbook1

The document discusses the basics of the Python programming language. It defines what a program and programming language are. It explains that there are three types of computer languages: machine level language, assembly level language, and high-level languages like Python. Python is an interpreted, high-level and open-source programming language commonly used for web development, data analysis, and more. It was created by Guido van Rossum and named after the BBC show Monty Python.

Uploaded by

sacbansal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Programming Languages – Basics of Python

(Class VIII – Reference material)


1. What is a Program?
Ans: Set of instructions arranged in a systematic manner to solve a problem is known
as a Program.

2. What is a Programming Language?


Ans: The language that is used to write a program or set of instructions is called a
"Programming language".
Eg: C, C++, Pascal, Java, Python etc.,

3. Explain the different types Computer Languages?


Ans: Computer languages are broadly categorized into three types:
(i) Machine level language
(ii) Assembly level language
(iii) High-level language

(i) Machine Level Language: Machine language is a low-level language made


up of 0’s and 1’s (binary numbers). A computer can directly understand the
machine language.

(ii) Assembly Level Language: Assembly language is a computer language in


which the instructions are created by using predefined words called mnemonics.

(iii) High Level Language: High-level language is a computer language which is


similar to human languages and has easy semantics and syntaxes to create
programs. Eg: C, C++, Python, Java etc.,
4. What is an Assembler?
Ans: Assembler is a translator which translates assembly level language program to
machine language.
5. Write Short notes on Language Translators?
Ans: Language Translators are used to translate High Level Language programs to
Machine Level Language. (i.e Source code to Object code). There are two types
of Language Translators. They are
(i) Interpreters and
(ii) Compilers
(i) Interpreters: Interpreters are language translators which translates High level
language program into machine language line by line. It is slow in operation.
Eg : Basic, Python etc.,
(ii) Compilers: Compilers are language translators which translates High level
language program into machine language program at a time. It is faster in
Operation. Eg: C, C++ etc.,
6. What is Python?
Ans: Python is a High level programming language used to build websites, gaming
softwares, automate tasks and conduct data analysis.
7. Who developed Python?
Ans: Python was developed by Guido Van Rossum.
8. Python got its name from which show?
Ans: Python got its name from famous BBC comedy show “Monty Python’s Flying
Circus”.
9. Python is an interpreted language‟. What does it mean to you?
Ans: It means that the Python interprets and executes the program line by line at a
time.
10. In how many ways, can you work in Python?
Ans: We can work in Python in two ways- (i) Interactive mode (ii) Script Mode
11. What is the difference between Interactive mode and Script Mode in Python?
Ans: In interactive mode, one command can run at a time and commands are not
saved Whereas in Script mode, we can save all the commands in the form of a
program file and can see output of all lines together.
12. How to download and install Python?
Ans: Python can be downloaded into your computer by using a website
www.python.org.
Steps:
a) Go to www.python.org website
b) Goto ‘Python software’ downloads window in the website
c) Select ‘Python for windows’ option
d) Click download button. Then it downloads ‘Python’ in your computer.
e) Now Goto “Downloads” folder in your computer
f) Double click on the python apk file to install it in your computer.
13. What are the uses of Python?
Ans: Python is commonly used in:
a) Developing Video games
b) Building Artificial Intelligence Algorithms
c) Designing various scientific programs such as statistical models etc.,
14. What are the features of Python?
Ans: i) Simple : Python is much simple and easy. to understand
ii) Easy to learn: It is very easy to learn and write programs
iii) Platform Independent: Python programs can run on any platform.
iv) Open Source: Python is freely available. Its source code can be read and
modified by the user.
v) Rich Library: Python has large inbuilt library with prebuilt and portable
functionality.
vi) Variety of Usage/ Applications: It is used to develop variety of applications

----x----

You might also like