In this post, we will discuss Important Python Fundamentals questions class 11 Computer Science/Informatics Practices or Introduction to python chapter. Questions based on the python fundamentals, installation of python, and the structure of the python program.
- Important Python Fundamentals questions class 11
- FAQs on Python
Fundamentals questions class 11
- Is Python taught in class 11?
- What is Python for class 11th?
- Which book is best for Python Class 11?
- What are the basic fundamentals of Python?
So here we start the article with Python Fundamentals questions class 11.
Q – 1 What is python?
Ans. : Python is a popular middle-level programming language but not a high-level programming language like C, C++, Java.
Q – 2 Why python is a popular programming language?
Ans.: There few reasons why python is a popular programming language, few reasons are as follows:
- Its easy structure
- The liveliness of code and productivity
- No brackets in code
- Fewer lines in code
- Interpreted Language
Q – 3 Who developed python?
Ans.: Python was developed by Guido Van Rossum in February 1991 and then Python Software Foundation.
Q – 4 Enlist various distribution of python programming language.
Ans. The few distributions of Python programming are as follows:
- CPython
- PyCharm
- Anaconda
Q – 5 Which one is the latest version of Python?
Ans. The latest version of python is Python 3.8.3
Q – 6 How to get python and install it?
Ans. Python can be downloaded from www.python.org. Find the OS-relevant version for the computer and install it.
The next section of Python Fundamentals for class 11 provides you the questions related to IDLE.
Q – 7 What is Python IDLE?
Ans.: Python IDLE is a tool which allows writing python programs and provides the output on screen after running the program. IDLE stands for Integrated Development and Learning Environment.
Q – 8 What are the two basic modes available for writing a program in Python IDLE?
Ans.
- Interactive Mode: Write a few lines of code and display the output
- Script Mode: Write large programs and allows to save the program for future use
Q – 9 Write steps to how to work with interactive mode?
Ans.:
Click here for the answer
Q – 10 Write steps to work with script mode.
Ans.:
Click here for the answer
The next section of Python Fundamentals for class 11 talks about the basics of python programing.
Q – 11 What is token?
Ans.: The smallest units of a program are known as a token.
Q – 12 Which token are used in python?
Ans.: The tokens used in python are as following:
- Keywords
- Literals
- Identifiers
- Punctuators
- Operator
Q – 13 How to write multiple lines code in python? or What are the ways to write multiple lines code in python?
Ans.: Python allows two ways of writing code in multiple lines in a program:
By using double quotes and slash
>>> str = "This is an example of multiple line \
Code in \
Python"
By using triple double quotes
>>> str = """This is an example of multiple line
of code in
Python"""
In the next section of Python Fundamentals for class 11 is all about data types in python.
Q – 14 What is the use of None in Python?
Ans.: None is a special literal used in python. It means there is no value stored in an identifier. In other words, None means the that value is not assigned to the identifier.
Q – 15 Identify the types of the identifier of the following: 15.859, 125, True, ‘True’, False, ‘False’, 0XDADA, 0o456, None, “None”
Ans. :
Value | Type |
15.859 | Float |
125 | Integer |
True | Boolean |
“True” | String |
False | Boolean |
“False” | String |
0XDADA | Integer [Hexadecimal] |
0o456 | Integer [Octal] |
None | None |
“None” | String |
Q – 16 Differentiate between an expression and a statement.
Ans.:
Expression | Statement |
It is a combination of letters, numbers and symbols | It is a programming instruction written according to python syntax |
It represents some meanings in a program | It perform a specific task in a program |
It is evaluated by python | It is executed by python |
It produces value as a result | It does not produce any value |
Example: [25 + 7] / 4 | Example: If x Chủ Đề |