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

Exercise_chapter_6

Chapter 6 introduces Python programming through multiple choice questions and fill-in-the-blank exercises. Key concepts include Python being a high-level, object-oriented, and interpreted language, as well as its cross-platform capabilities and open-source nature. The chapter also explains the difference between interactive and script modes in Python programming.
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)
12 views2 pages

Exercise_chapter_6

Chapter 6 introduces Python programming through multiple choice questions and fill-in-the-blank exercises. Key concepts include Python being a high-level, object-oriented, and interpreted language, as well as its cross-platform capabilities and open-source nature. The chapter also explains the difference between interactive and script modes in Python programming.
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

Chapter-6 Getting Started with Python

Exercise
Multiple Choice Questions
1.Python is a/an _____________language.
(a) High level (b) Object oriented (c) procedural (d) difficult
2.Python uses a/an _________to convert high level language to low level .
(a) Interpreter (b) Compiler (c) Compiler & Interpreter (d) Special virtual engine
3.Python code can run on a variety of platforms, it means Python is an _________language.
(a) Graphical (b) Cross-platform (c) independent a) (d) All of these
4.Python program are typed in
(a) Interactive mode (b) Script mode (c) Interactive & Script mode (d) All of these
5.The________mode of Python gives instant result of typed statement
(a) Interactive mode (b) Script mode (c) Interactive & Script mode (d) All of these
6. To print the value of a variable, python uses
(a) PRINT statement (b) Print() function (c) print statement (d) print() function
7.You don’t have to pay for Python and you can view its source code too.It means Python is ___________.
(a) Free and open source (b) Freeware (c) open source (d) shareware
Fill in the blanks
1.Python is a Highlevel language.
2.Python’s two working modes are : Interactive mode and Script mode.
3.Python program/scripts are stored in files with .py extension.
1.Who developed Python Programming Language ?
Solution. Guido Van Rossum in 1990s developed Python programming language.
2.Is Python an Object Oriented language ?
Solution. Yes, Python is an Object Oriented language.
3.'Python is an interpreted high level language'. What does it mean to you ?
Solution. 'Python is a high level language' means it is programmer-friendly i.e., easy to program and comprehend.
'Python is an interpreted language' means it requires an interpreter (not compiler) to execute its code line by line —
one statement at a time.
4.Python programming language got its name from which show.
Solution. Python programming language was named after a British TV show namely 'Monty Python's Flying Circus'.
5.What does a cross platform language mean ?
Solution. A cross platform language means it can run well on variety of platforms like Windows, Linux/Unix, Macintosh
etc.
6.Python is a Free and Open Source language. What do you understand by this feature ?
Solution. 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.
7.What is the difference between interactive mode and script mode in Python ?
Solution. In interactive mode, instructions are given in front of Python prompt e.g., >>> prompts) 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

You might also like