Python question bank
#module 1
[Link] are the major datatypes available in python? (numeric datatype, list , tuple ,
dictionary, set ,Boolean datatype, mapping with syntax and examples)
[Link] are the basic elements of python ? ( variable, rules of variable, keywords, input
function, output statement, command line )
[Link] all the operators in python (6 operators are there )
Q4. what is the difference between while and for.
[Link] a short note on break, continue, pass statement, assert, return statement.
[Link] concept of array with respect to following:
•Array operations
•Indexing, slicing, aliasing
[Link] the mathematical operations on array. ( any 5 out of 8 operations)
[Link] the following commonly used built in functions in python. ( table given in text
book with example)
•Also explain the difference between function and the method.
[Link] the recursive functions, how they work ( 3 step). explain anonymous and
lambda function.
Q10. Briefly explain the concept of modules in python and how to use it.
Q11. Explain the different string operations on python.
#Module 2 questions
Q1. Explain the concept of list, tuple , dictionary, set, in detail.
[Link] concept of file in python. ( what is file, opening and closing of file, types of file,
text file and binary file, etc , with syntax.)
Q3. What is zipping and unzipping file in python. Briefly explain working of directory.
[Link] is a regular expression. How to find email addresses in a given text stream.
Q5. Explain the python code to retrieve information from HTML file.
[Link] explain how to stop execution temporarily in python
Q7. Explain the concept of date and time in python.
Q8. How to evaluate the effectiveness of calendar module.
[Link] to use regular expression on files. (Ans on page19 7.4)