BPLCK105B: Introduction to Python Programming - Full Course
Notes
Module 1: Python Basics
… (content truncated for brevity) …
Assessment Summary
CIE: 50 marks (30 theory + 20 lab)
SEE: 50 marks (with lab questions included)
Passing Criteria: 40% in CIE + SEE combined, 35% minimum in SEE
VTU Question Bank – Module-wise
Module 1: Python Basics
1. Explain the role and rules of operator precedence in Python.
2. What is the difference between local and global scope? Give examples.
3. Write a Python program to check if a number is an Armstrong number.
4. Develop a “Guess the Number” game using Python.
5. Write a short note on exception handling with an example.
Module 2: Lists, Tuples, Dictionaries
1. Write a Python program to demonstrate various list operations.
2. Compare and contrast lists and tuples with examples.
3. What are dictionaries in Python? How do you access, update, and
delete data from them?
4. Write a program to use nested dictionaries to store and print student
data.
5. Demonstrate the use of slicing in lists and strings.
Module 3: Strings and File Handling
1. Write a Python program to count the frequency of each word in a text
file.
2. Explain file operations in Python with syntax and examples.
3. What are some useful string methods? Explain with examples.
4. Describe the purpose of the shelve module.
5. Write a program to add bullets to Wiki-style markup text.
Module 4: File Organization and Debugging
1. Explain how to traverse a directory tree using Python.
2. Write a Python script to back up a folder into a ZIP file.
3. What is the shutil module? Write a program using it.
4. Write a program that uses assert, logging, and exception handling.
5. Explain the use of zipfile module with an example.
Module 5: Object-Oriented Programming in Python
1. Define a class Student and write methods to input and display student
details.
2. What is operator overloading? Demonstrate with a class for complex
numbers.
3. What are pure functions and modifiers in the context of Python
classes?
4. Explain the difference between __init__() and __str__() methods.
5. Write a class Rectangle with methods to compute area and perimeter.
End of Notes + Question Bank