Ip CH2
Ip CH2
CHAPTER NAME:
Introduction to Python programming
Weightage : 25 MARKS
QUESTION-1
List out the programming modes supported in Python Softwares.
(or)
List out the execution modes in Python.
• Script mode
• Interactive mode
QUESTION-2
List out any four Softwares/IDE’s where can we run Python codes.
• Spyder Software
• Pycharm Software
• IDLE Software(IDLE-Integrated Development and Learning Environment)
• Jupyter Software
QUESTION-3
List out any 2 Escape Sequences in Python
Identifiers:
Identifiers refer to variable names and function names
Keywords:
are the special words which performs a specific task.
True if try as
while yield
in
break lambda
not
continue nonlocsl
and
pass return
or
class global
import
def
del
Total:33 keywords
QUESTION-6
List out the valid Identifiers from the following:
Serial_no.
Total_Marks
1st_Room
Hundred$
True
_Avg
Final Result
Sum-1
IMPORT
import
Answer:
Total_Marks, _Avg, IMPORT
QUESTION-7
What are Datatypes? List out any 4 datatypes
Datatypes:
Datatypes are in-built concepts which supports storing of different categories of
data.
String
List Sequence datatype
Tuple
List String
List is used for storing multipe datas String is used for storing a name/message
Example: Example:
L=[‘Ram’, ‘Ravi’, ‘John’, ‘Abubakkar’] L=‘Ravi’
Example1: Example1:
List Integer
Dictionary float
String
Tuple
Example2: Example2:
L=[‘Ram’, ‘Ravi’, ‘Raghu’] L=‘Ram’
L[0]=‘Abhishek’ L[0]=‘r’
print(L) print(L)
Answer is [‘Abhishek’, ‘Ravi’, ‘Raghu’] Answer is: Error. Because String doesnot support
modification
QUESTION-10
List out the advantages of Python programming language.
(or)
List out the features of Python programming language.
• Integer datatype
• Float datatype
• Complex datatype
QUESTION-14
List out the SEQUENCE datatypes in Python.
• String datatype
• List datatype
• Tuple datatype
QUESTION-15
List out the differences between Script and Interactive mode.