Co Po Format (Python, Bcads-3rd Sem)
Co Po Format (Python, Bcads-3rd Sem)
2
Note: Exam duration will be as under
(a)Theory exams will be of 3 hours duration
(b)Practical exams will be of 3 hours duration
Note: Examiner will be required to set Seven questions in all having two parts. Part I will have
Question Number 1 consisting of total 10 parts (short-answer type questions) covering the entire
syllabus and will carry 15 marks. In Part II, there will be Six questions. Examiner will set one and a
half questions from each Unit of the syllabus and each question will carry 15 marks. Question
Number 1 will be compulsory. In addition to compulsory question, student will have to attempt four
more questions from Part II.
COURSE OBJECTIVES:
Create and execute Python programs
Understand the concepts of file I/O
Be able to read data from a text file using Python
Plot data using appropriate Python visualization libraries
SYLLABUS
UNIT-I
Introduction to Python: Installation and Working with Python, Understanding Python Variables
Python Basic Operators, Python Data Types Declaring and using Numeric data types: int, float,
complex Using string data type and string operations, Decision and Loop Control Statements: Basic
decision making statements like if, else and elif , Simple for loops in python For loop using ranges,
string, list and dictionaries, Use of while loops in python, Loop manipulation using pass, continue,
break and else, Programming using Python conditional and loops block.
UNIT-11
Functions in Python: Introduction to functions, Syntax and Basics of Functions, Parameters and
Arguments in Function, Local and Global scope of a variable, return statement, Recursive functions,
Lambda function.
Python List, Tuple Sets and Dictionary Manipulations: Introduction to Lists, creating Lists,
Accessing the elements of Lists, List Slicing, Python Inbuilt functions for Lists, passing Lists to a
Function, Returning Lists from a function, Introduction to Tuples, Creating Tuples, Tuples
Indexing and Slicing, Inbuilt functions for Tuples, Introduction to Sets, Creating Sets, Set in and
Not in Operator, Python set Classes, Set operations, Introduction to Dictionaries, Creating a
dictionary, Adding and replacing values in Dictionary, Formatting Dictionaries, Deleting items
from Dictionaries, Simple Programs on Dictionary.
UNIT-III
3
Object Oriented Programming in Python: Defining Classes, The Self–parameter and Adding methods
to a Class, Accessibility, The Init
Method (Constructor
Method), del Method (Destructor Method), Method Overloading in Python, Inheritance, Types of
Inheritance
Graphics Programming in Python: Getting Stated with the Turtle Module, Moving Turtle in any
Direction, The color, bgcolor, circle and speed method of Turtle, Drawing basic shapes using
Iterations, Changing color dynamically using List.
UNIT IV
Image processing in Python: Basic libraries for image processing in python such as OpenCV, Numpy
and Scipy libraries, Python Imaging Library (PIL). Various functions in Image processing using these
libraries like open() and show () image, Convert and Save() Image, Resize- thumbnails(),Converting
to grayscale image − convert(),Scaling an Image , Rotating an image , Translating an Image, Edge
detection in an Image.
File Handling in Python: Introduction to File Handling, Opening and closing a file, Writing Text and
number to a file, Reading Text and number from a file, The seek() function, Binary files, Reading
from and Writing into Binary files.
Suggested Readings:
1. Martin C. Brown, Python: The Complete Reference, Tata McGraw-Hill Education.
2. Kamthane Kamthane, Programming and Problem Solving with
PYTHON, Tata McGraw-Hill Education.
ASSESSMENT TOOLS:
4
Relationship between the Course Outcomes (COs) and Program Outcomes (POs)
:
Course Statement POs
Outcome
No.
CO1 Interpret the fundamental Python syntax and semantics and be 1,2,5
fluent in the use of Python control flow statements
CO4 Identify the commonly used operations involving file systems 3,5,6
and regular expressions.
Course
PO1 PO2 PO3 PO4 PO5 PO6 PSO1 PSO2 PSO3 PSO4
Outcomes
CO1 3 2 - - 2 - 3 3 1 3
CO2 3 - 2 2 - - - 2 - 2
CO3 1 3 2 2 - - 2 2 3 -
CO4 - - 3 3 3 - 3 - -
CO5 - - 3 3 - 2 - 2 3 -
CO
2.3 2.5 2.5 2.3 2.5 2.5 2.5 2.4 2.3 2.5
(Averages)
g Write code for moving a turtle pointer into backword direction. 1.5 1,2,3
Q2 What are the differences between tuple and list data types? 15 2,3
(a)Explain various control statements in Python.
(b) Explain identity and membership operators used in Python.
Q3 What is dictionary? Which operations can be performed on [15] 2,3
dictionary.
(a) What are Recursive functions? Write a program to find the factorial
of a given number by using recursive function in Python.(b)What is the
negative indexing in lists?
Q4 a) How constructors and destructors are used in python? 15 3,4,5
b) What do you mean by inheritance? Also explain different type
of inheritance with example.
Q5 a) What do you mean by pickling process in Python? Which functions 15 2,4
are used for data reading and writing in binary files? Explain them with
example
b) Explain thumbnail () function? Which function is used for
converting image to grayscale image? Also write python code for it.
Q6 Write short note on: - 15 2,5,6
a) method overloading in Python
b) math module
c) scaling and rotating an image