Intro To Python SIMP - Simp QB
Intro To Python SIMP - Simp QB
1. Explain the methods of List data type in Python for the following operations
with suitable code snippets for each.
(i) Adding values to a list ii) Removing values from a list
(iii) Finding a value in a list iv) Sorting the values in a list
2. What is a list? Explain append(), insert(),index() and remove() methods with
examples, also list down differences between list and tuple and how list can be
converted to tuple-10M
3. What is a string? Explain any four methods associated with string and explain
each of them with an example.
4. Discuss the different ways of traversing a list. Explain each with an example
5. What is a Dictionary in Python? How is it different from List data type?Discuss
the following Dictionary methods in Python with examples.
(i) get() (ii) items() (iii) keys() (iv) values()
6. Compare list and dictionary data structures with respect to python language.
1. List out all the useful string methods which are supported in python. Explain
with an example for each method.
2. Explain Python string handling methods with examples
3. Explain Password Locker Project.
4. What are the different steps in the project Adding Bullets to Wiki Markup. 5.
Describe the difference between Python os and os.path modules. Also, discuss the
following methods of os module
a) chdir() b) rmdir() c) walk() d) listdir() e) getcwd()
6. What are the key properties of a file? Explain in detail the file reading/writing
process with an example of a python program.
Module-4 (Study any 6 questions)
2. What are the different methods of file operations supported in the python shutil
module.
3. What is meant by compressing files? Explain reading, extracting and creating ZIP
files with programming examples for each
4. Explain the differences between permanent delete and safe delete with suitable
Python programming examples to each.
5. Explain in detail (i)Assertions (ii)Logging (iii)Buttons in Debugging (iv)raising
exceptions with code snippets wherever necessary
6. Explain how assertions can be used in traffic light simulation with Python code
snippets.
7. Explain the support for Logging with logging module in Python
1. What is a class? How to define a class in python? How to initiate a class and how
the class members are accessed? Explain with programming snippets
2. Define Class Diagram. Discuss the need for representing class relationships using
Class Diagram with suitable examples.
3. Illustrate the concept of modifier and pure functions with Python snippets
4. Explain ‘prototype and patch’ with suitable example
5. Explain (i)Polymorphism (ii)Inheritance (iii)Overloading with examples 6.
Explain init and __str__ method with an example Python Program