Loading...
Please wait while we prepare your content
Please wait while we prepare your content
Solutions for Computer Science, Class 11, CBSE
Python is a high level language.
Python's two working modes are : interactive mode and script mode.
The shortcut key to run a Python program from script mode is F5.
Python programs/scripts are stored in files with .py extension.
Python's default distribution's IDE is called IDLE.
Python is a/an .......... language.
Python uses a/an .......... to convert source code to object code.
Python code can run on a variety of platforms, it means Python is a .......... language.
Python programs are typed in
The .......... mode of Python gives instant result of typed statement
Which of the following is not a Python IDE ?
To print the value of a variable, Python uses
You don't have to pay for Python and you can view its source code too. It means Python is ..........
Python is the fastest language.
False
Python code is compiled before running.
False
You can create programs in Python's interactive mode.
False
You can create programs in Python's script mode.
True
Python is an interpreted language.
True
When was Python released ?
Python was developed in February 1991.
Who was Python's developer and which two languages contributed to Python as a programming language?
Guido Van Rossum is the developer of Python. ABC language and Modula-3 contributed to Python as a programming language.
What is a cross-platform software?
A cross-platform software is a software that can run well on a variety of platforms like Windows, Linux/Unix, Macintosh, etc.
What are the advantages of Python programming language?
Advantages of Python programming language are:
What are some limitations of Python programming language?
Some limitations of Python programming language are:
In how many different ways, can you work in Python?
We can work in Python in two ways:
What are advantages/disadvantages of working in Interactive mode in Python?
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 are that it does not save commands in form of a program and also output is sandwiched between commands.
What are the advantages/disadvantages of working in script mode in Python?
Script mode is useful for creating programs and then run the programs later and get the complete output. It is not suitable for testing code.
Write instructions to get the following result :
Math is Fun so don't be resistant
Just learn the rules, the rules are consistent
And most important, you must be persistent !
Adding fractions, get common denominators.
Multiply by missing factors to get the denominators.
Add numerators only, NOT denominators.
Do it in both interactive mode and script mode.
>>> print("Math is Fun so don't be resistant")
Math is Fun so don't be resistant
>>> print("Just learn the rules, the rules are consistent")
Just learn the rules, the rules are consistent
>>> print("And most important, you must be persistent !")
And most important, you must be persistent !
>>> print("")
>>> print("Adding fractions, get common denominators.")
Adding fractions, get common denominators.
>>> print("Multiply by missing factors to get the denominators.")
Multiply by missing factors to get the denominators.
>>> print("Add numerators only, NOT denominators.")
Add numerators only, NOT denominators.
>>>
print("Math is Fun so don't be resistant")
print("Just learn the rules, the rules are consistent")
print("And most important, you must be persistent !")
print("")
print("Adding fractions, get common denominators.")
print("Multiply by missing factors to get the denominators.")
print("Add numerators only, NOT denominators.")
Math is Fun so don't be resistant
Just learn the rules, the rules are consistent
And most important, you must be persistent !
Adding fractions, get common denominators.
Multiply by missing factors to get the denominators.
Add numerators only, NOT denominators.