MANIPAL INSTITUTE OF TECHNOLOGY
Manipal – 576 104
DEPARTMENT OF INFORMATION &
COMMUNICATION TECHNOLOGY
CERTIFICATE
This is to certify that Ms./Mr. …………………...……………………………………
Reg.No. …..…………………… Section: ……………… Roll No: ………………... has
satisfactorily completed the lab exercises prescribed for Advanced Programming Lab
[ICT 3166] of Third Year B. Tech. CCE Degree at MIT, Manipal, in the academic year
20_ _- 20_ _.
Date: ……...................................
Signature of the faculty
CONTENTS
LAB PAGE
TITLE SIGNATURE REMARKS
NO. NO.
COURSE OBJECTIVES, OUTCOMES AND EVALUATION
i
PLAN
INSTRUCTIONS TO THE STUDENTS ii
1 BASICS OF PYTHON PROGRAMMING - I 1
2 BASICS OF PYTHON PROGRAMMING - II 15
FUNCTIONS, PARAMETER OPTIONS, LOCAL, NONLOCAL,
3 20
GLOBAL VARIABLES
4 MODULES 35
5 CLASSES AND INHERITANCE 44
6 DATABASE CONNECTIVITY AND WEB DESIGNING 51
7 FILE SYSTEM AND REGULAR EXPRESSIONS 59
8 PACKAGES, GUI AND NETWORKING 78
9 MEMORY MANAGEMENT AND EXCEPTION HANDLING 97
10 MINI PROJECT
11 MINI PROJECT
12 EXAM
REFERENCES
ADVANCED PROGRAMMING LAB MANUAL
Course Objectives
Understand the basics of Python scripting language
Demonstrate database connectivity through front end.
Design and develop static and dynamic web pages.
Apply the skills learnt to develop full-fledged applications.
Course Outcomes
At the end of this course, students will be able to
Explain the basics of Python scripting
Describe web application and database connectivity
Develop dynamic web pages with good aesthetics, latest technical know-how's.
Apply the skills learnt to work in one or more application domain.
Evaluation plan
Split up of 60 marks for Regular Lab Evaluation
Six regular evaluations will be carried out in alternate weeks. Each
evaluation is for 10 marks and following is the split up:
Record : 4 Marks
Evaluation: 4 Marks
Execution: 2 Marks
Total = 10 Marks
Total Internal Marks: 6 * 10 =60 Marks
End Semester Lab evaluation: 20 marks (Duration 2 hrs)
Program write up: 08Marks
Program execution: 12 Marks
Total: 8 + 12 = 20 Marks
Project evaluation: 20 marks
ADVANCED PROGRAMMING LAB MANUAL
INSTRUCTIONS TO THE STUDENTS
Pre- Lab Session Instructions
1. Students should carry the Lab Manual Book and the required stationery to every
lab session
2. Be in time and follow the institution dress code
3. Must sign in the log register provided
4. Make sure to occupy the allotted seat and answer the attendance
5. Adhere to the rules and maintain the decorum
In- Lab Session Instructions
Follow the instructions on the allotted exercises
Show the program and results to the instructors on completion of experiments
On receiving approval from the instructor, copy the program and results in the lab
record
Prescribed textbooks and class notes can be kept ready for reference if required
General Instructions for the exercises in Lab
Implement the given exercise individually and not in a group.
The programs should meet the following criteria:
o Programs should be interactive with appropriate prompt messages, error
messages if any, and descriptive messages for outputs.
o Comments should be used to give the statement of the problem.
o Statements within the program should be properly indented.
Plagiarism (copying from others) is strictly prohibited and would invite severe
penalty in evaluation.
In case a student misses a lab, he/ she must ensure that the experiment is
completed before the next evaluation with the permission of the faculty
concerned.
Students missing out lab on genuine reasons like conference, sports or activities
assigned by the Department or Institute will have to take prior permission from
the HOD to attend additional lab(with other batch) and complete it before the
student goes on leave. The student could be awarded marks for the write up for
that day provided he submits it during the immediate next lab.
ADVANCED PROGRAMMING LAB MANUAL
Students who fall sick should get permission from the HOD for evaluating the lab
records. However attendance will not be given for that lab.
Students will be evaluated only by the faculty with whom they are registered even
though they carry out additional experiments in other batch.
Presence of the student during the lab end semester exams is mandatory even if
the student assumes he has scored enough to pass the examination
Minimum attendance of 75% is mandatory to write the final exam.
If the student loses his book, he/she will have to rewrite all the lab details in the
lab record.
Questions for lab tests and examination are not necessarily limited to the questions
in the manual, but may involve some variations and / or combinations of the
questions.
THE STUDENTS SHOULD NOT
Bring mobile phones or any other electronic gadgets to the lab.
Go out of the lab without permission.