22 PLC15 B
22 PLC15 B
2022
Teaching-Learning Process
These are sample Strategies, which teacher can use to accelerate the attainment of the various course
outcomes and make Teaching –Learning more effective
1. Use https://pythontutor.com/visualize.html#mode=edit in order to visualize the python code
2. Demonstrate and visualize basic data types (list, tuple, dictionary).
3. Chalk and talk
4. online and videos
Dictionaries and Structuring Data: The Dictionary Data Type, Pretty Printing, Using Data
Structures to Model Real-World Things,
Textbook 1: Chapters 4 – 5
1
26.10.2022
Manipulating Strings: Working with Strings, Useful String Methods, Project: Password Locker,
Project: Adding Bullets to Wiki Markup
Reading and Writing Files: Files and File Paths, The os.path Module, The File Reading/Writing
Process, Saving Variables with the shelve Module,Saving Variables with the print.format()
Function, Project: Generating Random Quiz Files, Project: Multiclipboard,
Textbook 1: Chapters 6 , 8
Debugging: Raising Exceptions, Getting the Traceback as a String, Assertions, Logging, IDLE‟s
Debugger.
Classes and functions: Time, Pure functions, Modifiers, Prototyping versus planning,
Classes and methods: Object-oriented features, Printing objects, Another example, A more
complicated example,Theinit method, The __str__ method, Operator overloading, Type-based
dispatch, Polymorphism, Interface and implementation,
Textbook 2: Chapters 15 – 17
Programming Exercises:
1. a. Develop a program to read the student details like Name, USN, and Marks in three subjects. Display
the student details, total marks and percentage with suitable messages.
b. Develop a program to read the name and year of birth of a person. Display whether the person is a
senior citizen or not.
2. a. Develop a program to generate Fibonacci sequence of length (N). Read N from the console.
b. Write a function to calculate factorial of a number. Develop a program to compute binomial
coefficient (Given N and R).
3. Read N numbers from the console and create a list. Develop a program to print mean, variance and
standard deviation with suitable messages.
4. Read a multi-digit number (as chars) from the console. Develop a program to print the frequency of
each digit with suitable message.
2
26.10.2022
5. Develop a program to print 10 most frequently appearing words in a text file. [Hint: Use dictionary
with distinct words and their frequency of occurrences. Sort the dictionary in the reverse order of
frequency and display dictionary slice of first 10 items]
6. Develop a program to sort the contents of a text file and write the sorted contents into a separate text
file. [Hint: Use string methods strip(), len(), list methods sort(), append(), and file methods open(),
readlines(), and write()].
7. Develop a program to backing Up a given Folder (Folder in a current working directory) into a ZIP
File by using relevant modules and suitable methods.
8. Write a function named DivExp which takes TWO parameters a, b and returns a value c (c=a/b). Write
suitable assertion for a>0 in function DivExp and raise an exception for when b=0. Develop a suitable
program which reads two values from the console and calls a function DivExp.
9. Define a function which takes TWO objects representing complex numbers and returns new complex
number with a addition of two complex numbers. Define a suitable class ‘Complex’ to represent the
complex number. Develop a program to read N (N >=2) complex numbers and to compute the addition
of N complex numbers.
10. Develop a program that uses class Student which prompts the user to enter marks in three subjects and
calculates total marks, percentage and displays the score card details. [Hint: Use list to store the marks
in three subjects and total marks. Use __init__() method to initialize name, USN and the lists to store
marks and total, Use getMarks() method to read marks into the list, and display() method to display the
score card details.]
The sum of two tests, two assignments, will be out of 60 marks and will be scaled down to 30 marks
CIE for the practical component of the Integrated Course
On completion of every experiment/program in the laboratory, the students shall be evaluated
and marks shall be awarded on the same day. The15 marks are for conducting the experiment
and preparation of the laboratory record, the other 05 marks shall be for the test conducted at
the end of the semester.
The CIE marks awarded in the case of the Practical component shall be based on the continuous
evaluation of the laboratory report. Each experiment report can be evaluated for 10 marks.
Marks of all experiments’ write-ups are added and scaled down to 15 marks.
The laboratory test (duration 02/03 hours) at the end of the 14th /15th week of the semester
/after completion of all the experiments (whichever is early) shall be conducted for 50 marks and
scaled down to 05 marks.
Scaled-down marks of write-up evaluations and tests added will be CIE marks for the laboratory
component of IPCC for 20 marks.
The question paper will have 10 questions. Two questions per module. Each question is set for 20
marks. The students have to answer 5 full questions, selecting one full question from each module.
The student has to answer for 100 marks and marks scored out of 100 shall be proportionally
reduced to 30 marks.
There will be 2 questions from each module. Each of the two questions under a module (with a
maximum of 3 sub-questions), should have a mix of topics under that module.
Lab SEE will be conducted based on the Lab assignments with both internal and external examiners
as per prevailing practice. The exam will be conducted for 50 marks and minimum passing is 20
marks. The marks obtained will be proportionally reduced to 20 marks (max) and will be summed
with theory SEE to get the total SEE marks.
Passing in the subject: The student will pass the subject only if he obtained minimum passing marks
both in theory SEE and Lab SEE. If a student fails in either theory/lab he has to clear
thecorresponding component only. Grading will be assigned by combining the performance in Lab
and theory.
4
26.10.2022
● https://www.learnbyexample.org/python/
● https://www.learnpython.org/
● https://pythontutor.com/visualize.html#mode=edit