0% found this document useful (0 votes)
5 views9 pages

C26 Sem5 (Python) Text

The document outlines the CS-503 Python Programming course, detailing its structure, prerequisites, course outcomes, and contents, which include topics like Raspberry Pi, data types, classes, multithreading, GUI design, and data processing. It specifies the teaching methodology, assessment criteria, and suggested textbooks and resources. Additionally, it includes a breakdown of course activities, learning objectives, and model examination papers for mid-semester and semester-end assessments.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views9 pages

C26 Sem5 (Python) Text

The document outlines the CS-503 Python Programming course, detailing its structure, prerequisites, course outcomes, and contents, which include topics like Raspberry Pi, data types, classes, multithreading, GUI design, and data processing. It specifies the teaching methodology, assessment criteria, and suggested textbooks and resources. Additionally, it includes a breakdown of course activities, learning objectives, and model examination papers for mid-semester and semester-end assessments.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

CS-503-PYTHON PROGRAMMING

Course Title: Python Programming Course Code CS-503

Semester Vv Course Group Core


Teaching
in Hrs (L:
Scheme T: P) 4:1:0 Credits 3
Methodology Lecture + Tutorial Total Contact Hours: 75
CIE 60 Marks SEE 40 Marks

Pre-requisites
Basic understand of computer hardware and object oriented programming

Course Outcome

On successful completion of the course, the students will be able to attain below Course
Outcome (CO):

Configure Raspberry Pi with suitable OS and set up the environment for python to
col meet IOT
applications
CO2 Use data types, operators and control structures to write simple python problems

CO3 Develop classes, modules and


packages
CO4 Design Graphical user interface and Regular
expressions
Develop Multithread applications and handles runtime exceptions

CO6 Process files, database operations and implement applications using


Raspberry PI
Course Contents

1. Python Introduction and Raspberry PI 10 periods


Introduction to IOT- Advantages and Disadvantages of IOT- Identify Components of Raspberry PI

3- Build a PC using Raspberry PI-3- Introduction to python programming language-Steps for

setting up execution environment for Python

2. Basic of Python programming 10 periods


Variable declaration initialization-Comments-Indentation-data structures

Operators- strings and functions

3. Classes and Packages 15 periods


Define Class- data member, methods, and constructors and create an instance of class- different

types of Inheritance- Python Identity Operator- Creating and importing Modules and Packages

scope of variables-virtual environment for python application- Installing packages- math and

datetime package
4. Exception handling and Multithreading 10 periods

Different Types of errors- Exception handling- Multithreading- ways of creating


threads - module
in the Thread Methods-Thread Synchronization

5. Design Graphical user Interface and Regular Expressions 15 periods


Design a graphical interface- Discuss Geometry Managers- Widgets- Event handling Regular

expression to validate the data

6. Data Processing and Programming Raspberry Pi 15 periods


Working with files and folders- working with database- Interfacing with Raspberry PI and
controlling devices using python programs-Basic Electronic components

Text Books

1. Kenneth A. Lambert, The Fundamentals of Python: First Programs, 2011, Cengage


Learning
2. Think Python First Edition, by Allen B. Downey, Orielly publishing

Reference Books

1. James Payne, Beginning Python using Python 2.6 and Python 3, Wrox publishing
2. Paul Gries, Practical Programming: An Introduction to Computer Science using python
3,The Pragmatic Bookshelf, 2nd edition (4 Oct. 2013)
3. Charles Dierach, Introduction to Computer Science using Python
Introduction to Computation and Programming Using Python. John V. Guttag, The MIT

Raspberry Pi Cookbook 2014 by Simon Monk


eran
Core Python Programming 2018 by R. Nageswara Rao
Python: For Beginners: by Timothy C. Needham
Sams Teach Yourself Python Programming for Raspberry Pi in 24 Hours Second Edition
Sams publication by Christine Bresnahan, Richard Blum
9. Python Programming Fundamentals- A Beginner's Handbook 2018 by Nischay kumar
Hegde

Upon completion of the course the student shall be able to

1 Python Introduction and Raspberry PI


1.1 Define IOT

1.2 List applications of IOT


13 List Advantages and Disadvantages of IOT
1.4 Identify Components of Raspberry PI-3
1.5 List General purpose input and Output pins (GPIO) on Raspberry PI
1.6 Build a PC using Raspberry PI-3
1.7 Install operating System into Raspberry PI
1.8 Familiarize to python programming language
1.9 List different versions of pythons
1.10 Compare Python programming language with Java Programming language
Lists features of Python programming
Sets the execution environment for Python
Execute Python Script (Command Prompt, Script and IDE) in different ways

2.1 Declare and initialize variables

2.2 Use Comments, Indentation in programs


2.3 Discuss Data Types Booleans, Numbers
2.4 Use Decision Making Statements to solve different problems
2.5 Use Loop Statements with example to solve problems which are iterative
2.6 Perform operation on Lists, Tuples, Sets, and Dictionaries
2.7 Identify members of Lists, Tuples, Sets, and Dictionaries using Membership Operator
2.8 Process strings using operators and built-in functions
2.9 Build functions with/without arguments
Solve problems by using recursive method of problem solving
Differentiate between recursive and iterative way of problem solving

Classes and Packages


3.1 Define class with its members and create instances of class

3.2 Implement different types of Inheritance


3.3 Use super to call methods of a super
3.4 class
Use Python Identity Operator
3.5 Create and import Modules and Packages
3.6 Use local and global variables
3.7 Sets up the virtual environment for python application
3.8 Install packages
3.9 Write programs using standard Mathematical function sqrt, cos, sine, pow, degrees, and fabs
etc

Use datetime package in python application

Exception handling and Multithreading


4.1 Difference between compile time errors, runtime errors and logical errors
4.2 List common compile time errors and runtime errors
43 Using try/except, finally and else block to handle exceptions
4.4 Usage of raise statement
4.5 Create User defined exception classes
4.6 Define Multithreading
4.7 List pros and cons of Multithreading
4.8 Create threads using Threading Module
4.9 Create Multiple Threads which perform different tasks
Design threads using, start, join, isAlive, getName, setName, activeCount and currentThread

Achieve thread Synchronization in multithreaded environment


5 Design Graphical user Interface and Regular Expressions
Design a Graphical User Interface using TKinter library
Design GUI using different Geometry Managers
Use various Widgets in TKinter library
List attributes of widgets
Handle Events generated by various Widgets
Create patterns to use regular expressions
Validate data using regular expressions

6 Data Processing and Programming Raspberry Pi


Open, close, read, write, append data to files using programs
List modes of opening a
file files and folders
Delete

Connect to MySql database

Perform creation of table, insert a row in a table, update an entry in a table and
execute
stored procedures
Store images using blob data type
Use Bread board, resistor, transistors, diode, capacitors, inductors, transformers and adaptors
Work with 12C and SPI interface of Raspberry PI
Turn On and Off LED using python program
Make a buzzing sound with Raspberry Pi and python program
Connect to Wired or Wireless network

Suggested Student Activities


Note:

Each group should do any one of the following type of activity or any other similar activity
related to the course with prior approval from the course coordinator and programme
coordinator concerned

Each group should conduct different activity and no repetition should occur
4. Compare Intel mother board with Raspberry PI mother board
Study IEEE paper on Block Chain and Prepare a Power point Presentation on the same

Prepare a Quiz on various Electronic Components and the rest of the class will answer the

Prepare a Study report after studying three to four research papers on IOT

Design a simple project that automates a


task
Study the impact of recent technologies on health and environment; prepare a report that
addresses the issues and solution to them

Study Recent Technologies like Data Mining, Data Analysis, and Data Scientist; and write a
report that distinguishes these technologies
Course outcome Linked Teaching
PO Hours

col Configure Raspberry Pi with suitable OS and set up 1,2,3,4,7 10


the environment for python to meet IOT applications

co2 Use data types, operators and control structures to 1,2,3,4,7 10


write simple python problems

CO3 Develop classes, modules and packages 1,2,3,4,7 15


C04 Develop Multithread applications and handles 1,2,3,4,7 10
runtime exceptions

CO5 Design Graphical user interface and Regular 1,2,3,4,7 15


expressions

CO6 Process file, database operations and implement 1,2,3,4,7 15


applications using Raspberry PI
Total Session 75

CO-PO Matrix

Suggested E-learning references


[Link]
https:/[Link]/python/
[Link]
[Link]
[Link]
[Link]
[Link]
MID SEM-I EXAM

[Link] Unit Name R Remarks

1 Unit-I 1,2

2 3,4

Total Questions 4

5(a)

6(a) 8(a)
2 -T 4
Unit-IV 3, 6(b) 8(b)

Semester End Examination

Questions to be set for SEE Remarks


SI No Unit No
RUA

! ! 1 9 13
2 TI (a) (a)
3 Tl

4 Iv 2 10(a) 14(a)
9(b) 13(b)

3 11(b) 15(b)

6 VI 78} 12(a) 16(a)

Remembering (R) 1 Mark


Understanding (U) 3 Marks
Legend: Application (A) 5 Marks
State Board of Technical Education

Python Programming
CS-503---V Semester

Mid SEM -1 Model Paper


Time: 1 hour Marks: 20

PART-A

Instructions: 4*1 =4 marks


Answer all questions
Each question carries 1 mark
1. List the advantages of IOT

3. Write the purpose of Indentation


4. Write the syntax to declare Dictionary

NOTE: 1, Answer any one question from 5 and 6. 2*3=6 marks

5(a). Discuss the components of Raspberry PI

or

5(b). Write the differences between Python and Java

6(a). Write any five string processing functions

6(b). Write the differences between implementing function using loops and recursion

7(a). Write the steps to build a PC and install operating system into Raspberry

7(b). Explain the different ways of executing a python


program
8(a). Develop a python program to traverse, delete and add elements into list

8(b). Develop a python program to find the next prime number of a given prime number
State Board of Technical Education

Python Programming
CS-503---V Semester

Mid SEM -II Model Paper


Time: 1 hour Marks: 20

PART-A

Instructions: 4 *1 =4 marks
Answer all questions
Each question carries I mark
What is the user of super keyword?
Define module

List the keywords to handle exceptions


Write the purpose of join method in Threading Module

NOTE: 1, Answer any one question from 5 and 6 2*3=6 marks

5(a). Discuss different types of inheritance with a diagram

5(b). Write any five methods of math module

6(a). List different types of errors

6(b). Write the advantages and disadvantages of multithreading

7(a). Write the steps to steps to create virtual environment for python application

7(b). Write an application to create a module and import the same to other module

8(a). Write a python program to create a multi threaded application

8(b). Write a python program to handle different types of exceptions


State Board of Technical Education, Telangana State
C21-Semester End Examination (SEE)
Model Paper- CS-503-Python Programming
Time: 2 Hours Total Marks: 40

Instructions: 8 XI M= 08 Marks
Answer all the following questions:
Each question carries I mark
1. Write the syntax to create a dictionary type variable
2. Write the use of raise statement

3. List any four widgets for developing a GUI


4. Define Multithreading
5. What is the purpose of Geometry Managers?
6. Define regular expression

7. Write the syntax to open a


file
8. List types of
transistors PART-B

NOTE: 1. Answer any one question from 9, 10, 11 and 12. MARKS: 4 X 3=12

9(a) Write different components of Raspberry PI

9(b) Dise earch, replace and match function for regular expression
10(a) List different types of inheritance with diagram

10(b) Write how to calculate the resistance of a resistor by using color


codes
11(a) Discuss basic attributes of widgets

11(b) Write different geometry managers

12(a) Discuss the function to open, write and close


a file
12(b) Write the process to connect database

13(a) Write a python program to print multiplication tables from to


10
13(b) Design a window application that displays number of times a user clicks a
button
14(a) Write a python script that denies access to multiple threads to critical section

14(b) Write a python program to delete record from a


tableCreate regular expression to validate email-id, and phone number
15(a)

15(b) Write a python application to handle list box events

16(a) Write a python program to copy one file into another file and delete the original file

16(b) Write a python program and steps to turn on/off LED

You might also like