0% found this document useful (0 votes)
13 views52 pages

Scripting Languages Course Overview

The document is a course file for Scripting Languages (CST203) at Raghunathpur Govt. Polytechnic, detailing the syllabus, departmental vision, mission, and course objectives for the 2nd year, 3rd semester Diploma in Computer Science and Technology. It outlines the course structure, including prerequisites, course outcomes, teaching methodologies, and assessment methods. The course aims to provide students with essential skills in scripting languages, particularly Python, to solve real-world problems and enhance their programming capabilities.

Uploaded by

aa bb
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)
13 views52 pages

Scripting Languages Course Overview

The document is a course file for Scripting Languages (CST203) at Raghunathpur Govt. Polytechnic, detailing the syllabus, departmental vision, mission, and course objectives for the 2nd year, 3rd semester Diploma in Computer Science and Technology. It outlines the course structure, including prerequisites, course outcomes, teaching methodologies, and assessment methods. The course aims to provide students with essential skills in scripting languages, particularly Python, to solve real-world problems and enhance their programming capabilities.

Uploaded by

aa bb
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

RAGHUNATHPUR GOVT.

POLYTECHNIC
(COURSE FILE)

Scripting Languages
(Subject Code : CST203)

Diploma CST 2nd Year 3rd Semester


Prepared By : Debraj Das
Lecturer in Computer Science and Technology

DEPARTMENT OF COMPUTER SCIENCE AND TECHNOLOGY

RAGHUNATHPUR GOVT. POLYTECHNIC


Sarbari More. PO: Neturia, Dist. : Purulia, West Bengal 723121
[Link]
Raghunathpur Govt. Polytechnic
Department of Computer Science and Technology
[Academic Year : 2022-23]

Faculty Name : Debraj Das Dept. : CST


Subject Name : Scripting Languages Code : CST203
Year : 2nd Semester : 3rd
Program Level : Diploma Academic Year : 2022-23
Credits : 2(L: 2, T: 0, P: 0)

[Link] Contents Page

1. Cover page 1

2. Syllabus copy prescribed by WBSCT & VE &SD 4-6

3. Vision of the Department 7

4. Mission of the Department 7

5. PEOs and POs & PSOs 8

6. Course Outcomes 9

7. Brief notes on the importance of the course and how it connects to 9-10
Bloom’s Taxonomy

8. Prerequisites, if any 10

9. Course mapping with POs with Rubrics 10

10. Class Time table 11

11. Individual time table 11

12. Lecture schedule with methodology being used/adopted 12-17

13. Teaching notes (if any) 17

[2]
14. Additional topics (experiments etc.), lab record (if any)

15. Internal & ESE (WBSCT & VE & SD) Question Papers 18-26

16. Question bank (Objective & Essay type unit wise) 27-31

17. Assignment questions 32-36

18. References, Journals, Websites and E-links, if any 36-37

19. Course End Survey (Current & Ex Students) 37-39

20. CO-PO-PSO Attainment 40-44

21. Student List 44-45

22. Explanation of CO-PO-PSO Mapping 45-51

[3]
Syllabus copy prescribed by West Bengal State Council of Technical
& Vocational Education and Skill Development:

[4]
[5]
[6]
RAGHUNATHPUR GOVERNMENT POLYTECHNIC
SARBARI MORE, NETURIA, PURULIA, GOVT. OF. WEST BENGAL

Institute Mission:
1. To promote excellence in learning, teaching, and technology transfer
2. To improve the quality of skilled workforce through a structured program and
professional skills training
3. To inspire students to learn and facilitate their overall development with social
orientation and values
4. To provide holistic learning ambience
5. To impart skills leading to employability and entrepreneurship
6. To offer services for the development of society through Education and Technology

Institute Vision:
To be a premier Institute in pursuit of excellence in technical education and skill development
committed to serve the society by offering quality education to train future leaders in
technology and by applying technology breakthroughs for India’s wealth creation and social
welfare.

Departmental Mission:
1. Provide excellent education by teaching students in a detailed and practical way using
the latest tools and technologies.
2. Motivate students to be lifelong learners in a connected world and instill in them
professional skills and ethical responsibilities.
3. Produce students who are successful and responsible in their personal and professional
lives, and who are committed to continuous learning throughout their lives.
4. Foster a supportive environment that encourages students to excel academically and
grow personally.
5. Cultivate a sense of responsibility and dedication to learning that extends beyond
academics.

[7]
Departmental Vision:
To help students become creative, motivated, skilled in technology, and responsible individuals
with good values. They will make valuable contributions and achieve high standards of
education everywhere they go. This will be accomplished by creating a supportive and effective
learning environment that can quickly adapt to the challenges of our constantly changing
world.

Program Educational Objectives (PEOs):


The Program Educational Objectives (PEOs) of the Department represent major
accomplishments that the engineers are expected to achieve after three years of diploma.
▪ PEO - 1: Diploma students will use their understanding of Computer Science and
Technology to solve practical engineering problems in the real world.
▪ PEO - 2: Diploma students will possess the necessary qualities to pursue further
education in Engineering and Technology.
▪ PEO - 3: Diploma students will develop leadership skills, ethical values, and a
collaborative mindset to work effectively in teams.

Program Outcomes (POs):


Diploma Engineers will be able to have:
▪ PO1 : Basic and Discipline Specific Knowledge: Use what they have learned in
mathematics, science, and engineering to solve engineering problems.
▪ PO2 : Problem analysis skills: Identify and analyse engineering problems using
established methods.
▪ PO3 : Designing solutions skills: Create solutions for specific technical problems and
contribute to designing system components or processes to meet specific needs.
▪ PO4 : Tools and testing skills: Use modern engineering tools and techniques to
conduct standard tests and measurements.
▪ PO5 : Engineering for society and the environment skills: Apply technology that
considers society, the environment, and ethical practices.
▪ PO6 : Project management skills: Use engineering management principles to lead or
be part of a team, managing projects and effectively communicating about engineering
activities.
▪ PO7 : Lifelong learning approach: Continuously analyse their own learning needs
and stay updated with technological changes.

[8]
Program Specific Outcomes (PSOs):
After the successful completion of diploma programme in Computer Science and Technology,
the students will be able to:
▪ PSO 1: Use the latest technologies in Computer Science and system design to create
smart products that solve real-world problems.
▪ PSO 2: Design, develop, and put into action smart systems and technologies that meet
the needs of society and industry.
▪ PSO 3: Analyse and identify faults and issues in computer and embedded devices and
systems to effectively manage their performance.

Course Outcomes (COs):


After completion of the course, the students will be able to:
▪ CST203.1 - Students will be able to build program with a Scripting Language
▪ CST203.2 – Students will be able to learn any other scripting language on their own.
▪ CST203.3 - Design real life situational problems and think creatively about solutions
of them.
▪ CST203.4 - Apply a solution clearly and accurately in a program using Python.
▪ CST203.5 - Apply the best features of Python to program real life problems.

Importance of the Course:

This course is to be prepared to serve as an introductory course for Scripting Languages using
Python. It aims to give a comprehensive up-to-date presentation of the role of Scripting
Languages (SL) in writing codes, how it is different from Programming Languages, and the
applications of SL in modern system designs. It begins with the primary idea of Scripting.
Then it gives basic idea on variables, datatypes, control structures etc. In continuation, it
provides a theoretical summary along with different important aspects of Python, such as,
functions, modules, and packages. Then it goes to show how SL using Python is used
successfully in different components of application development, such as, File I/O, Text
Processing, Regular Expressions.
Overall, the Scripting Languages course is an essential part of the Diploma in Computer
Science and Technology program. It provides students with the knowledge and skills they need
to design, implement, and execute safe, reliable, and efficient system and user applications.

[9]
Connection of Course Outcomes with Bloom’s Taxonomy:
After completion of the course,
Sl. No. Blooms Taxonomy Level
the students will beable to:
Students will be able to build
Remember (Level 1),
program with a Scripting
CST203.1 Understand(Level 2),
Language
Apply(Level 3)
Students will be able to learn any
Understand(Level 2), Apply(Level
CST203.2 other scripting language on their
3), Analyse (4)
own.
Design real life situational Remember (Level 1),
CST203.3 problems and think creatively Understand(Level 2), Apply(Level
about solutions of them. 3), Analyse (4)
Apply a solution clearly and
Understand(Level 2),
CST203.4 accurately in a program using
Apply(Level 3)
Python.
Remember(Level 1),
Apply the best features of Python
CST203.5 Understand(Level 2),
to program real life problems.
Apply(Level 3)

Course Prerequisites:
NIL.
CO-PO-PSO Mapping:
Scripting Languages
Program Outcomes (POs) Program Specific
Outcomes (PSOs)
PO PO PO PO PO PO PO PSO PSO PSO 3
1 2 3 4 5 6 7 1 2

CST203.1 3 3 3 2 1 1 1 2 3 2
CST203.2 3 3 2 2 1 2 2 3 3 2
CST203.3 2 3 3 2 3 2 1 3 3 3
CST203.4 2 2 3 2 1 2 1 3 3 3
CST203.5 2 2 3 2 2 2 1 3 3 3
Avg 2.4 2.6 2.8 2 1.6 1.8 1.2 2.8 3 2.6

[10]
Class Time Table:

Individual Class Time Table:

Raghunathpur Govt Polytechnic


Computer Science and Technology Department
3rd Semester Individual Class Time Table

10:30 AM- 11:30AM- 12:30 PM- 1:30 PM- 1:50 PM- 2:50 PM- 3:50 PM-
DAY
11:30 AM 12:30 PM 1:30 PM 1:50 PM 2:50 PM 3:50 PM 4:50 PM
Scripting
Language
MONDAY (A101)
BREAK

Scripting Language Lab


TUESDAY (A101)
WEDNESDAY
Scripting Language Lab
THURSDAY
(A101)
Scripting Language
FRIDAY (A101)

SATURDAY

[11]
Lecture schedule with methodology being used/adopted:
Department of Computer Science and Engineering

Name of Program : Computer Science and


Name of Document : Lesson Plan
Technology

Course Name : Scripting Languages Course Code : CST203

Nature of Course : Theory Target Students : 30, CST 2nd yr., 3rd Sem.

Contact Hours/week : 2 Credit : 2

Academic Session : 2022-23 Faculty Name/s : Debraj Das (DD)

Total Units : 5 Total Lectures : 30

Text Books: 1. Starting Out with Python, Tony Gaddis, Pearson


2. Core Python Programming, Wesley J. Chun, Pearson;

Course Prerequisites : NIL


with COs
Mapping
Delivery
Planned

Taxonomi Use of Intended


Lecture

Date of
Sl. No.

Topics
Date
Unit
No.

cal Teaching Learning


Covered
Activity Resources Outcomes(ILOs)

1. 1. 1. History, Remember( CO1 Lecture, 1. Knowledge of


Features, setting Level 1) Demonstrat various
up path, Understand ion in Programming
Installation and (Level 2), Smart paradigms
Working with Apply(Lev Classroom 2. Understanding the
Python, Basic el 3) importance of
Syntax Scripting
[Link] with
Environment setups
4. Recalling some
basic informations

2. 1. 2. Understanding Understand CO1 Lecture, [Link] the


Python variables (Level 2), Board- scripting program
Numeric data Apply(Lev work in structure and python
types: int, Long el 3) Smart datatypes
int, float, Classroom 2. Apply the
complex/imagin knowledge into
ary scripting

3. 1. 3. String data type Understand CO1 Lecture, 1. Understand and


and string (Level 2), Board- define the terms

[12]
operations: Apply(Lev work in related to String
String literals, el 3) Smart datatype
manipulating Classroom 2. Explain the
strings, principles and
comparing concepts behind
strings, Unicode Strings
string literals,
converting
between Simple
Types,
Converting to
strings,
String
Formatting,
String Methods.

4. 1. 4. Date and Time Understand CO1 Lecture, [Link] various


Other Data (Level 2), Board- python data
Types: Apply work, and structures
• Tuples (Level 3) computer 2. Apply the
• List: Defining programmi knowledge to write
list, list slicing, ng other basic programs
Split, Join, demonstrati and being familiar
Manipulating on in Smart with common errors.
Lists, Copying Classroom
Lists
• Dictionary
• Arrays

5. 1. 5. Basic Operators: Understand CO1 Lecture, 1. Understand


Arithmetic (Level 2), Board- various python
Operators, Apply work in operators
Relational (Level 3) Smart 2. apply into
Operators, Classroom programming
Assignment
Operators
(Simple
assignment and
Multiple
Assignment-
Tuple packing &
unpacking)

6. 1. 6. Logical Understand CO1 Lecture, 1. Understand


Operators, (Level 2), Board- various other python
Bitwise Apply work in operators.
Operators, (Level 3) Smart 2. apply into
Membership Classroom programming
Operators,
Identity
Operators.
Operator
Precedence
7. 1. 7. Understanding Understand CO1 Lecture, 1. Understanding
coding blocks (Level 2), Board- coding blocks and
Apply work in applying them into
(Level 3) Smart writing codes
Classroom
8. 2. 8. Conditional Understand CO2 Lecture, 1. Understand
blocks using if, (Level 2), Board- conditional blocks
else and elif Apply(Lev work in

[13]
el 3), Smart 2. Analyse how
Analyse (4) Classroom conditional blocks
work and apply them
into programming

9. 2. 9. for loops and Understand CO2 Lecture, 1. Understand for


iterations. (Level 2), Board- loops
while loops Apply(Lev work, and 2. Analyse how for
el 3), computer loops work and apply
Analyse (4) programmi them into
ng programming
demonstrati
on in Smart
Classroom
10. 2. 10. Loop Understand CO2 Lecture, 1. Understand and
manipulation (Level 2), Board- apply continue, break
using continue, Apply(Lev work in and other loop
break and else el 3) Smart manipulation
and pass Classroom techniques in python

11. 2. 11. Programming Understand CO2 Lecture, 1. Apply the


using (Level 2), Board- knowledge to write
conditional and Apply(Lev work, and programs
loops block el 3) computer
programmi
ng
demonstrati
on in Smart
Classroom
12. 2. 12. Modify loops : Apply(Lev CO2 Lecture, 1. Apply the
break and el 3) Board- knowledge into
continue work, and writing various loop
computer modifications in
programmi programs
ng
demonstrati
on in Smart
Classroom
13. 3. 13. Defining Understand CO3 Lecture, 1. Understand
Functions & (Level 2), Board- functions
Calling Apply(Lev work, and 2. Analyse parameter
Functions el 3), computer passing in python
• Pass by object Analyse programmi and apply them into
reference (Level 4), ng programming
• Parameters Remember demonstrati 3. Recall some basic
(Level 1), on in Smart informations
Classroom

14. 3. 14. Arbitrary Understand CO3 Lecture, 1. Understand


arguments (Level 2), Board- functions
• Optional and Apply(Lev work, and 2. Analyse parameter
Named el 3), computer passing in python
Arguments Analyse (4) programmi and apply them into
ng programming
demonstrati
on in Smart
Classroom

[14]
15. 3. 15. Passing Understand CO3 Lecture, 1. Understand and
arguments from (Level 2), Board- apply passing
a tuple Apply(Lev work, and arguments from a
el 3) computer tuple
programmi
ng
demonstrati
on in Smart
Classroom

16. 3. 16. Variable Scope Understand CO3 Lecture, 1. Understand how


and Binding: (Level 2), Board- binding works in
Local Variables, Analyse (4) work, and python
Nonlocal computer 2. Analyse this to
Variables, programmi write codes
Global ng
Variables, class demonstrati
scope on in Smart
Classroom

17. 4. 17. Organizing Understand CO3 Lecture, 1. Understand


projects into (Level 2), Board- modules in details
modules: Apply(Lev work, and 2. apply the
Grouping Code el 3) computer knowledge to import
with Modules programmi modules in programs
Importing own ng
module as well demonstrati
as external on in Smart
modules Classroom

18. 4. 18. Understanding Understand CO3 Lecture, 1. Understand


Packages: (Level 2), Board- packages in detail.
Grouping Apply(Lev work, and 2. Apply that to write
Modules into el 3) computer programs
Packages programmi
ng
demonstrati
on in Smart
Classroom
19. 4. 19. Accessing Understand CO3 Lecture, 1. Understand how
Keyboard Input: (Level 2), Board- inputs are
raw_input and Apply work, and manipulated in
input (Level 3), computer python
Printing to the Analyse programmi 2. Analyse various
Screen: print (Level 4) ng input methods in
demonstrati python 2.0 and
on in Smart python 3.0
Classroom

20. 4. 20. File modes and Understand CO4 Lecture, 1. Understand file
permissions (Level 2), Board- modes and
read functions: Apply work, and permissions in
read(), (Level 3) computer python
readline(), programmi 2. Apply that to write
readlines() ng various programs.
write functions demonstrati
:write(),writelin on in Smart
es() Classroom

[15]
21. 4. 21. other file Understand CO4 Lecture, 1. Understand
operations: (Level 2), Board- various file
open(),close(),te Apply work, and operations in python
ll(),seek(),flush( (Level 3) computer 2. Apply that to write
),fileno(), programmi various programs.
isatty(),next() ng
Redirecting demonstrati
output streams on in Smart
to files. Classroom

22. 4. 22. Programming Apply CO3 Lecture, 1. Apply the


using file (Level 3) Board- knowledge to write
operations work, and file operation
computer programs in python.
programmi
ng
demonstrati
on in Smart
Classroom
23. 5. 23. Powerful pattern Apply CO4 Lecture, 1. Apply the
matching and (Level 3) Board- knowledge to write
searching: work, and file operation
[Link](),[Link] computer programs in python.
rh(),[Link](), programmi
[Link]() ng
Creating and demonstrati
Using Regular on in Smart
Expression Classroom
Objects- import
re,
[Link](),re.s
ub(), [Link](),
[Link]()

24. 5. 24. Power of pattern Understand CO4 Lecture, 1. Understand


searching using (Level 2), Board- various keywords
regex Apply work, and and functions with
(Level 3) computer respect to python
programmi regex.
ng 2. Learn real
demonstrati applications of regex.
on in Smart
Classroom
25. 5. 25. Frameworks - Remember CO4 Lecture, 1. Understand how
The MVC (Level 1), Board- frameworks work.
framework, Understand work, and 2. Remember the
Django- What is (Level 2) computer MVC architecture
Django and why programmi and its building
should you use ng blocks.
Django? demonstrati
on in Smart
Classroom
26. 5. 26. Creating URL, Understand CO4 Lecture, 1. Understand how
Templates (Level 2), Board- templates work in
• Send data to a Apply(Lev work, and Django
template el 3) computer 2. Apply it into
• Display data in programmi creating templates.
a template ng
demonstrati
on in Smart
Classroom

[16]
27. 5. 27. Display object Apply(Lev CO4 Lecture, 1. Apply the
lists in a el 3) Board- knowledge to write
template work, and Django pages.
• Handle chains computer
with filters in programmi
Django ng
• Use URLs demonstrati
effectively on in Smart
Classroom

28. 5. 28. • Create base Understand CO4 Lecture, 1. Understand how


templates in (Level 2), Board- static files are kept.
order to extend Apply(Lev work, and 2. Apply the
other templates el 3) computer knowledge to write
• Insert static programmi Django pages.
files in our ng
templates demonstrati
on in Smart
Classroom
29. 6. 29. Django Form Understand CO4 Lecture, 1. Understand forms
• Create an (Level 2), Board- in Django.
HTML form Apply(Lev work, and 2. Apply this to write
• Handle the data el 3) computer Django forms
sent by a form programmi
• Create a ng
Django form demonstrati
on in Smart
Classroom
30. 6. 30. • Validate and Understand CO4 Lecture, 1. Understand how
manipulate data (Level 2), Board- data is manipulated
sent from a Apply(Lev work, and and validated.
Django form el 3) computer 2. Use them to write
• Create forms programmi programs.
based on models ng
• Customize demonstrati
error messages on in Smart
and usage of Classroom
widget

__________________________________
Signature of the Faculty

Teaching Notes:
Google Drive link for teaching notes: [Link]
lAZ8sJEVqk70hzBotVO0nYTi?usp=drive_link

[17]
External Theoretical Examination Question Papers:

[18]
[19]
[20]
[21]
[22]
Internal Examination Question Papers:

Raghunathpur Govt. Polytechnic


1st Internal
CST- 2nd Year- 3rd Semester
Time: 45 Min Subject- Scripting Languages (Python) Full Marks: 20

Ma
Uni Type of the
ppin
Choose the correct output of following code t/M question as
A. g
blocks (1 x 5 = 5) odu per Bloom’s
with
le Taxonomy
COs
1. print (bool()) 1 CO Apply
a) FALSE b) False c) false 1
d) ERROR
2. print ('print'.split('i')[1]) 1 CO Apply
a) print b) pr c) nt d) 1
ERROR

[23]
3. print ([1,2,3] + 'list') 1 CO Apply
a) [1, 2, 3, ‘list’] b) [‘list’, 1, 2, 3] 1
c) [1, 2, 3] + [‘list’] d)
ERROR

4. print ('Difficult'[-4:]) 1 CO Apply


a) icult b) cul c) cult d) 1
ERROR

5. print (3^2) 1 CO Apply


a) 32 b) 9 c) 1 d) ERROR 1

B. Fill in the blanks (1 x 5 = 5)


1. Python bytecode has ___________ extension. 1 CO Understand
1
2. Full form of IDLE is ___________. 1 CO Remember
1
3. __________ is mutable. 1 CO Understand
1
4. __________ and ____________ are two modes 1 CO Remember
of python. 1

5. Smallest individual unit in a program is known 1 CO Understand


as ______________. 1

C. Answer the following questions (5 x 2 = 10)

1. Explain with example the difference between 2 CO Analyse


‘is’ and ‘==’ operator in python. 2

2. Write properly the differences between lists, 2 CO Analyse


tuples, sets, and dictionaries in python. 2

Cognitive level distribution for Mid semester class test (1 st Internal Examination)
Cognitive Level Questions(%) Marks(F.M=20)
Analyse 50 10
Apply 25 5
Understand 15 3
Remember 10 2
[24]
Raghunathpur Govt. Polytechnic
2nd Internal
CST- 2nd Year- 3rd Semester
Time: 45 Min Subject- Scripting Languages (Python) Full Marks: 20

Ma
Uni Type of the
ppin
t/M question as
A. Choose the correct output (1 x 5 = 5) g
odu per Bloom’s
with
le Taxonomy
COs
1. In python file handling, r+ mode opens files for 3 CO Analyse
a) reading only b) reading and writing c) 3
reading, writing, and appending d) no such
mode

2. In python file handling, wb mode opens files for 3 CO Analyse


a) writing in binary only b) writing in text only 3
c) writing and reading d) no such
mode

3. In python file handling, tell() function takes 3 CO Understand


how many arguments? 3
a) zero b) 1 c) 2 d) 3

4. To read 2 characters from a file, with file 3 CO Understand


handler f, we use 3
a) [Link](2) b) [Link](2) c) both a
and b d) a, b, and, also [Link](2)
5. In python file handling, readlines() function 3 CO Analyse
returns 3
a) list b) string c) characters
d) tuple

B. Fill in the blanks (1 x 5 = 5)

1. In python, regular expression operations use 3 CO Remember


___________ module. 3
2. To create a pattern object in python 3 CO Understand
___________ function is used. 3

[25]
3. The function that substitutes patterns in a string 3 CO Understand
with other patterns is __________. 3

4. The flag that is used to denote case insensitive 3 CO Remember


matching is __________ . 3

5. subn() function returns a ______________. 3 CO Understand


3
C. Answer the following questions (5 x 2 = 10)

1. Explain the differences between input() and 4 CO Analyse


raw_input() methods with example. 4
2. A string contains ‘Hello, this is python’ text. 4 CO Apply
Write a program in python to replace the word 4
‘python’ with the word ‘java’. Also, show the
number of times ‘python’ was replaced.

Cognitive level distribution for Mid semester class test (2nd Internal Examination)
Cognitive Level Questions(%) Marks(F.M=20)
Analyse 40 8
Understand 25 5
Apply 25 5
Remember 10 2

[26]
Question bank For Scripting Languages (Python)

MCQ Questions
1. Who developed Python Programming Language?
a) Wick van Rossum

b) Rasmus Lerdorf

c) Guido van Rossum

d) Niene Stom

2. Which type of Programming does Python support?


a) object-oriented programming

b) structured programming

c) functional programming

d) all of the mentioned

3. Is Python case sensitive when dealing with identifiers? a) no


b) yes

c) machine dependent

d) none of the mentioned

4. Which of the following is the correct extension of the Python file? a)


.python
b) .pl

c) .py

d) .p

5. Is Python code compiled or interpreted?


a) Python code is both compiled and interpreted

b) Python code is neither compiled nor interpreted

c) Python code is only compiled

d) Python code is only interpreted

[27]
6. All keywords in Python are in _________
a) Capitalized

b) lower case

c) UPPER CASE

d) None of the mentioned

7. What will be the value of the following Python expression? 4


+ 3 % 5 a) 7
b) 2

c) 4

d) 1

8. Which of the following is used to define a block of code in Python language? a)


Indentation
b) Key

c) Brackets

d) All of the mentioned

9. Which keyword is used for function in Python language?


a) Function

b) Def

c) Fun

d) Define

10. Which of the following character is used to give single-line comments in Python? a)
//
b) #

c) !

d) /*

[28]
11. What will be the output of the following Python code?
i = 1 while True: if
i%3 == 0:
break print(i)
i + = 1 a) 1 2 3
b) error

c) 1 2

d) none of the mentioned

12. Which of the following functions can help us to find the version of python that we
are currently working on? a) [Link](1)
b) [Link](0)

c) [Link]()

d) [Link]

13. Python supports the creation of anonymous functions at runtime, using a construct called
__________
a) pi

b) anonymous

c) lambda

d) none of the mentioned

14. What is the order of precedence in python?


a) Exponential, Parentheses, Multiplication, Division, Addition, Subtraction

b) Exponential, Parentheses, Division, Multiplication, Addition, Subtraction

c) Parentheses, Exponential, Multiplication, Division, Subtraction, Addition

d) Parentheses, Exponential, Multiplication, Division, Addition, Subtraction

[29]
15. What will be the output of the following Python code snippet if x=1?
x<<2
a) 4

b) 2

c) 1

d) 8

Fill In the Blanks


1. In Python, the data type represented by int is ________________.
2. In Python, int means that the data type is __________. 3. Boolean values
include __________ and __________.
4. Python's floating-point counts __________ bytes.
5. If you want to test the type of a variable, you can use __________ to do it.
6. In Python __________ means an empty type.
7. Lists, tuples, and strings are Python's _________ (ordered? unordered) sequences.
8. The Python built-in function for viewing variable types is ________________.
9. The Python built-in function for viewing variable memory addresses is
_________________.
10. With 3 as the real part, the Python plural is expressed as ___________ or ________.
(3+4j, 3+4J)
11. The Python operator used to calculate the whole quotient is _________.
12. The Python operator used to calculate the union of the collection is _______.
13. Use the operator to test if the collection contains an expression that the set A is a true
subset of the set B ________.
14. The result of the expression [1, 2, 3]*3 is ______________________.
15. The result of list(map(str, [1, 2, 3])) is _____________________.

Very Short Answer Type Question


1. Who developed Python?
2. Name the Python Library modules which need to be imported to invoke the following
function : load ()
3. Name the Python Library modules which need to be imported to invoke the following
function : pow ()
4. Name the modules to which the following function belong: Uniform ()
5. Name the modules to which the following function belong: fabs ()
6. Differentiate between the round() and floor() functions with the help of suitable
example.
7. Name the Python Library modules which need to be imported to invoke the following
function: sqrt()

[30]
8. Name the Python Library modules which need to be imported to invoke the following
function: dump()
9. Name the function / method required for finding second occurrence of m in madam.
10. Name the function / method required for getting the position of an item in the list.
11. Which string method is used to count the number of characters in the string?
12. Which string method is used to change the first character of the string in capital letter?
13. Which string method is used to check whether given character is letter or a number?
14. Which string method is used to change lowercase to uppercase letter?
15. Which string method is used to change one character into another character?

Short answer questions


1. What is the difference between list and tuples in Python?
2. What are the key features of Python?
3. What type of language is python?
4. How is Python an interpreted language?
5. What is pep 8?
6. How is memory managed in Python?
7. What is name space in Python?
8. What is PYTHON PATH?
9. What are python modules?
10. What are local variables and global variables in Python?

Long Answer Question


1. What is Python? What are the applications of Python?
2. What are the advantages of Python? What do you mean by Python literals?
3. Write key features of python.
4. Explain Python Functions? What is zip() function in Python?
5. What is Python's parameter passing mechanism? What is the difference between
remove() function and del statement?
6. Write a program to remove whitespaces from a string in Python.
7. What are the different file processing modes supported by Python?
8. What are the different types of operators in Python?
9. Is Python interpreted language? How is memory managed in Python?

[31]
Assignments Questions:

Scripting Languages (Python) Quiz


Course Outcome - CST203.5 - Apply the best features of Python to program real life
problems.

1. What is the output of the following function call

def outer_fun(a, b):


def inner_fun(c, d):
return c + d

return inner_fun(a, b)
return a

result = outer_fun(5, 10)


print(result)

2. Choose the correct function declaration of fun1() so that we can execute the following function
call successfully

fun1(25, 75, 55)


fun1(10, 20)

3. What is the output of the following function call

def fun1(num):
return num + 25

fun1(5)

4. What is the output of the add() function call

def add(a, b):


return a+5, b+5

result = add(3, 2)
print(result)

5. What is the output of the following display_person() function call

def display_person(*args):
for i in args:
print(i)

display_person(name="Emma", age="25")

[32]
6. What is the output of the following display() function call

def display(**kwargs):
for i in kwargs:
print(i)

display(emp="Kelly", salary=9000)

7. What is the output of the following function call

def fun1(name, age=20):


print(name, age)

fun1('Emma', 25)

8. What is the output of the following code?

def outer_fun(a, b):


def inner_fun(c, d):
return c + d
return inner_fun(a, b)

res = outer_fun(5, 10)


print(res)

9. Select the correct output of the following string operations

myString = "pynative"
stringList = ["abc", "pynative", "xyz"]

print(stringList[1] == myString)
print(stringList[1] is myString)

10. Select the correct output of the following String operations

str = "my name is James bond";


print ([Link]())

11. What is the output of the following string comparison

print("John" > "Jhon")


print("Emma" < "Emm")

12. Select the correct output of the following String operations

str1 = "my isname isisis jameis isis bond";


sub = "is";
print([Link](sub, 4))

[33]
13. What is the output of the following string operations

str = "My salary is 7000";


print([Link]())

14. Guess the correct output of the following code?

str1 = "PYnative"
print(str1[1:4], str1[:5], str1[4:], str1[0:-1], str1[:-1])

15. Select the correct output of the following String operations

str1 = 'Welcome'
print (str1[:6] + ' PYnative')

16. What is the output of the following code

str1 = "My salary is 7000";


str2 = "7000"

print([Link]())
print([Link]())

17. Guess the correct output of the following String operations

str1 = 'Welcome'
print(str1*2)

18. Select the correct output of the following String operations

strOne = str("pynative")
strTwo = "pynative"
print(strOne == strTwo)
print(strOne is strTwo)

19. What is the output of the following list function?

sampleList = [10, 20, 30, 40, 50]


[Link]()
print(sampleList)

[Link](2)
print(sampleList)

[34]
20. What is the output of the following code

aList = ["PYnative", [4, 8, 12, 16]]


print(aList[0][1])
print(aList[1][3])

21. What is the output of the following code

list1 = ['xyz', 'zara', 'PYnative']


print (max(list1))

22. What is the output of the following list assignment

aList = [4, 8, 12, 16]


aList[1:4] = [20, 24, 28]
print(aList)

23. What is the output of the following

aList = [5, 10, 15, 25]


print(aList[::-2])

24. What is the output of the following

aList = [1, 2, 3, 4, 5, 6, 7]
pow2 = [2 * x for x in aList]
print(pow2)

25. What is the output of the following

l = [None] * 10
print(len(l))

26. What is the output of the following list comprehension

resList = [x+y for x in ['Hello ', 'Good '] for y in ['Dear', 'Bye']]
print(resList)

27. What is the output of the following list operation

aList = [10, 20, 30, 40, 50, 60, 70, 80]


print(aList[2:5])
print(aList[:4])
print(aList[3:])

[35]
28. What is the output of the following list function?

sampleList = [10, 20, 30, 40, 50]


[Link](60)
print(sampleList)

[Link](60)
print(sampleList)

29. What is the output of the following code

my_list = ["Hello", "Python"]


print("-".join(my_list))

30. What is the output of the following list operation

sampleList = [10, 20, 30, 40, 50]


print(sampleList[-2])
print(sampleList[-4:-1])

References, Journals, Websites and E-links:


[Link]
[Link]
[Link]
[Link]

Video Links
[Link]
[Link]
[Link]
[Link]
[Link]

Journals and Papers


[Link]
14ca2abb7e2c5c86bb
[Link]
[Link]/joss-papers/joss.01026/[Link]
[36]
[Link]
[Link]
[Link]
1/OldFiles/OldFiles/python/Doc/[Link]

Course End Survey

COURSE END SURVEY - SCRIPTING LANGUAGES (PYTHON)CST_203 2022-


23 - 3RD SEM

* Indicates required question

1. Email *

2. Full Name *

3. Registration Number *

4. Course Outcome 1 : Students will be able to build program with a * scripting


language

At the end of the course, was the above CO fulfilled?

Mark only one oval.

[37]
Strongly Agree
Agree
Neutral
Disagree
Strongly Disagree

5. Course Outcome 2 : Students will be able to learn any other scripting *


language on their own.

At the end of the course, was the above CO fulfilled?

Mark only one oval.

Strongly Agree
Agree
Neutral
Disagree
Strongly Disagree

6. Course Outcome 3 : Students will be able to design real life situational *


problems and think creatively about solutions of them.

At the end of the course, was the above CO fulfilled?

Mark only one oval.

Strongly Agree
Agree
Neutral
Disagree
Strongly disagree

[38]
7. Course Outcome 4 : Students will be able to apply a solution clearly and *
accurately in a program using Python.

At the end of the course, was the above CO fulfilled?

Mark only one oval.

Strongly agree
Agree
Neutral
Disagree
Strongly Disagree

8. Course Outcome 5 : Students will be able to apply the best features of * Python
to program real life problems.

At the end of the course, was the above CO fulfilled?

Mark only one oval.

Strongly agree
Agree
Neutral
Disagree
Strongly Disagree

9. Suggestions to improve the teaching learning process (If Any)

[39]
CO-PO-PSO Attainment:
Target Attainment level on a 3-point Scale: 2.5

Direct Attainment Calculation for Internal Examination & Assignments:

Direct Attainment Criteria for Internal Examination and Assignments:


60% Of students greater than or equal to 50% marks : Level 3

50% Of students greater than or equal to 50% marks : Level 2

40% Of students greater than or equal to 50% marks : Level 1

Attainment Calculation CO1 CO2 CO3 CO4 CO5

31 31 31 31 31
Total No of students appeared in exam:
Total No of students who got more than 50% 13 23 18 5 31
marks in exam:
42% 74% 58% 16% 100%
% of students who got more than 50% marks
CO Attainment level 1 3 2 0 3

[40]
Direct Attainment Calculation for External End Semester
Examination:

Direct Attainment Criteria for External End Semester Examination:

CO Attainment Criteria:

Attainment CO1,CO2.CO3,CO
60% Of students greater than or equal to 50% marks:Level 3 Calculation 4,CO5
Total No of
students appeared 31
50% Of students greater than or equal to 50% marks:Level 2 in exam:
Total No of
students who got
19
more than 50%
40% Of students greater than or equal to 50% marks:Level 1 marks in exam:
% of students who
got more than 50% 61%
marks

CO Attainment 3
level

[41]
Indirect Attainment Calculation for Course End Survey:

60% Of students graded Agree (4) or above : Level 3


60% Of students graded Neutral(3) or above : Level 2
60% Of students graded Disagree(2) or above : Level 1

Attainment Calculation CO1 CO2 CO3 CO4 CO5

28 28 28 28 28
Total No of students given feedback
Total No of students given feedback of agree(4) or 23 26 22 22 20
above

% of students who given feedback of agree(4) or 82% 93% 79% 79% 71%
above
CO Attainment level 3 3 3 3 3

[42]
Overall CO Attainment:
FINAL CO ATTAINMENT

Overall Direct CO attainment level = 40% of CO attainment level in Internal


assessment + 60% of COs attainment level in End Semester Examination

CO Attainment by Direct Methods:


CO Attainment
Levels
Weight Tools for Assessment CO1 CO2 CO3 CO4 CO5
Internal,
40% Assignments 1 3 2 0 3
End Semester
60% Examination 3 3 3 3 3

100% TOTAL 2.2 3 2.6 1.8 3

CO Attainment by Indirect Methods:


CO Attainment
Levels
Weight Tools for Assessment CO1 CO2 CO3 CO4 CO5
100% Course End Survey 3 3 3 3 3

Final CO Attainment=80% of Direct Methods+ 20% of Indirect Methods

Final CO
Attainment
Levels
Weight Assessment type CO1 CO2 CO3 CO4 CO5
80% Direct 2.2 3 2.6 1.8 3

20% Indirect 3 3 3 3 3

100% TOTAL 2.36 3 2.68 2.04 3

[43]
CO PO PSO MAPPING & ATTAINMENT

CO Attainment PO1 PO2 PO3 PO4 PO5 PO6 PO7 PSO1 PSO2 PSO3 Level Value
CO1 2.36 3 3 3 2 1 1 1 2 3 2 HIGH 3
CO2 3.00 3 3 2 2 1 2 2 3 3 2 MEDIUM 2
CO3 2.68 2 3 3 2 3 2 1 3 3 3 LOW 1
CO4 2.04 2 2 3 2 1 2 1 3 3 3 N.R. 0
CO5 3.00 2 2 3 2 2 2 1 3 3 3

PO Attainment 2.63 2.63 2.59 2.62 2.68 2.64 2.68 2.63 2.62 2.31
Overall Attainment 2.64

Scripting Languages
Program Specific
Program Outcomes(POs)
Outcomes(PSOs)
PO 1 PO 2 PO 3 PO 4 PO 5 PO 6 PO 7 PSO 1 PSO 2 PSO 3
CO 1 3 3 3 2 1 1 1 2 3 2
CO 2 3 3 2 2 1 2 2 3 3 2
CO 3 2 3 3 2 3 2 1 3 3 3
CO 4 2 2 3 2 1 2 1 3 3 3
CO 5 2 2 3 2 2 2 1 3 3 3
Avg 2.4 2.6 2.8 2 1.6 1.8 1.2 2.8 3 2.6

Attainment Gap
No Attainment Gap.

Student List:

Sl. Registration.
Student Name
No. No.

1. ADITYA MONDAL D212215447


2. AGNISWAR MUKHERJEE D212215448
3. AMISHA BHAKAT D212215449
4. ANJALI SINGH D212215451
5. ARBAZ HAMZA D212215453
6. AYUSHI MAHATO D212215457
7. BANTI SHAW D212215458
8. BISWARUP SINGHA D212215461
9. DEBARSHI MAJEE D212215462
10. MALLIKA PARAMANIK D212215467
11. MILAN PAUL D212215468
12. MOUMITA MOHANTA D212215469
13. MUKESH BAURI D212215470
14. PRADIP BOURI D212215474
15. RANJAN MAJI D212215477
16. RITU KUMARI PASWAN D212215479
17. RUDRANI SARKAR D212215480
18. RUKSHAR KHATOON D212215481
19. SAGUPTA NAZ D212215482
[44]
20. SHABA KHATOON D212215486
21. SHANKHADEEP DEY D212215487
22. SK. JUNAID D212215489
23. SOUMEN MODAK D212215490
24. SUBHADEEP
D212215494
MUKHERJEE
25. SUBHAJIT KAR D212215495
26. SUDIP BOURI D212215497
27. SUJAL MAHATO D212215498
28. SHIVANI KUMARI SHAW D222322390
29. RUMA MAHATO
30. SOMNATH MAHATO D222322392
31. TAPAS KAIBARTA D222322391

Explanation of CO-PO-PSO Mapping:

Mapping
Program Outcomes (PO) Course Outcomes (CO) Explanation
Score
The course outcome directly aligns with the
CO 1. Students will be
program outcome, as it requires applying basic
able to build program
3 domain specific engineering fundamentals to
with a Scripting
identify and calculate different types of problem
Language
solving using a scripting language.

This course outcome aligns with the program


CO 2. Students will be
outcome by requiring an understanding of basic
able to learn any other
3 scripting concepts and applying them to design
scripting language on
and analyse the working of various systems using
their own
other scripting languages.

CO 3. Design real life


PO 1. Basic and Discipline This course outcome requires an understanding of
situational problems and
specific knowledge 2 basic engineering concepts to design and analyse
think creatively about
real life problems and solving them.
solutions of them

This course outcome requires understanding of


CO 4. Apply a solution
basic engineering concepts to analyse the working
clearly and accurately in 2
of various scripts and applying proper solutions to
a program using Python
them.

This course outcome aligns with the program


CO 5. Apply the best
outcome by requiring an understanding of basic
features of Python to
2 engineering concepts to apply best features of a
program real life
scripting language to solve different real-life
problems
problems.

CO 1. Students will be The course outcome requires the identification and


able to build program analysis of different types of problem solving,
PO 2. Problem analysis 3
with a Scripting aligning with the program outcome of problem
Language analysis.

[45]
Mapping
Program Outcomes (PO) Course Outcomes (CO) Explanation
Score
The course outcome CO 2 aligns perfectly with the
CO 2. Students will be
program outcome PO 2, as understanding the
able to learn any other
3 structure and working of scripting is crucial for
scripting language on
identifying and analysing well-defined engineering
their own
problems related to power systems.

The course outcome CO 3 also aligns perfectly


CO 3. Design real life
with the program outcome PO 2, as understanding
situational problems and
3 the structure and working of scripting is necessary
think creatively about
for identifying and analysing well-defined
solutions of them
engineering problems related to system design.

The course outcome CO 4 relatively aligns with


CO 4. Apply a solution the program outcome PO 2, as knowing about the
clearly and accurately in 2 various data structures of python is helpful in
a program using Python identifying and analysing well-defined engineering
problems.

The course outcome CO 5 relatively aligns with


CO 5. Apply the best
the program outcome PO 2, as understanding
features of Python to
2 different programming structures in python is
program real life
useful in identifying and analysing well-defined
problems.
engineering problems related to system design.

The course outcome CO 1 relatively aligns with


CO 1. Students will be the program outcome PO 3,as identification of
able to build program 3
errors in software systems, which is a technical
with a Scripting
problem that can be solved by designing solutions.
Language

CO 2. Students will be The course outcome aligns with the program


able to learn any other outcome by requiring the design and analysis of
2
scripting language on the working of various problem solutions and
their own applying them to different applications.

PO 3. Design/development CO 3. Design real life The course outcome aligns with the program
situational problems and outcome by requiring the design and analysis of
of solutions 3
think creatively about the working of various file systems to apply them
solutions of them in different applications.

CO 4 is directly related to the design and


CO 4. Apply a solution development of software systems, which requires
3
clearly and accurately in the ability to design solutions for technical
a program using Python problems.

CO 5 requires understanding of different algorithm


CO 5. Apply the best schemes for software systems, which can be
features of Python to 3
addressed through the design and development of
program real life appropriate systems.
problems

[46]
Mapping
Program Outcomes (PO) Course Outcomes (CO) Explanation
Score
Engineering tools and techniques such as file
CO 1. Students will be
handling and regular expressions are used to
able to build program 2
identify and solve problems in the software
with a Scripting systems.
Language

Understanding the structure and working of


CO 2. Students will be various other systems requires the use of
able to learn any other 2
engineering tools and techniques such as
scripting language on
simulation and testing.
their own

Understanding the structure and working of


PO 4. Engineering Tools, CO 3. Design real life various other systems requires the use of
Experimentation and situational problems and 2
engineering tools and techniques such as
Testing think creatively about
simulation and testing.
solutions of them

Engineering tools and techniques such as file


CO 4. Apply a solution handling and regular expressions are used to
2
clearly and accurately in identify and solve problems in the software
a program using Python systems.

Engineering tools and techniques such as file


CO 5. Apply the best
handling and regular expressions are used to
features of Python to 2
identify and solve problems in the software
program real life systems.
problems

The course outcome aligns with the program


CO 1. Students will be
outcome by requiring the design and analysis of
able to build program 1
the working of various file systems to apply them
with a Scripting in different applications.
Language

CO 2. Students will be The knowledge of various systems is relevant for


able to learn any other 1 the selection of appropriate technology that
scripting language on ensures safety and environmental sustainability.
their own

Scripting languages such as python is an essential


CO 3. Design real life component of software systems that ensure system
situational problems and 3
reliability and stability, which are important for
think creatively about society and sustainability.
PO 5. Engineering solutions of them
practices for society,
sustainability and The knowledge of various systems is relevant for
environment CO 4. Apply a solution
1 the selection of appropriate technology that
clearly and accurately in ensures safety and environmental sustainability.
a program using Python

[47]
Mapping
Program Outcomes (PO) Course Outcomes (CO) Explanation
Score
Scripting languages such as python is an essential
CO 5. Apply the best
component of software systems that ensure system
features of Python to 2
reliability and stability, which are important for
program real life society and sustainability.
problems

The ability to identify various types of errors in


CO 1. Students will be software systems can be useful in managing
able to build program 1
projects related to system maintenance and
with a Scripting
troubleshooting.
Language

Understanding the structure and working of


CO 2. Students will be various types of software applications and their
able to learn any other 2 usage can help in making informed decisions
scripting language on about the selection of various technologies for a
their own project.

The ability to identify various types of errors in


CO 3. Design real life
software systems can be useful in managing
2
PO 6: Project Management situational problems and projects related to system maintenance and
think creatively about troubleshooting.
solutions of them

Understanding the structure and working of


various types of software applications and their
CO 4. Apply a solution 2 usage can help in making informed decisions
clearly and accurately in about the selection of various technologies for a
a program using Python
project.

Understanding the structure and working of


CO 5. Apply the best various types of software applications and their
features of Python to 2 usage can help in making informed decisions
program real life about the selection of various technologies for a
problems. project.

The ability to analyse individual needs and engage


CO 1. Students will be
in updating in the context of technological changes
able to build program
1 can be applied to the field of software system fault
with a Scripting
analysis and calculation to continuously improve
Language
one's skills and knowledge.

PO 7. Life-long learning The ability to analyse individual needs and engage


CO 2. Students will be
in updating in the context of technological changes
able to learn any other
2 can be applied to the field of various system-wide
scripting language on
devices to continuously improve one's skills and
their own
knowledge.

[48]
Mapping
Program Outcomes (PO) Course Outcomes (CO) Explanation
Score
CO 3. Design real life The ability to analyse individual needs and engage
situational problems and in updating in the context of technological changes
1
think creatively about can be applied to the field of scripting systems to
solutions of them continuously improve one's skills and knowledge.

The ability to analyse individual needs and engage


CO 4. Apply a solution in updating in the context of technological changes
clearly and accurately in 1 can be applied to the field of various system-wide
a program using Python devices to continuously improve one's skills and
knowledge.

CO 5. Apply the best The ability to analyse individual needs and engage
features of Python to in updating in the context of technological changes
1
program real life can be applied to the field of software systems to
problems continuously improve one's skills and knowledge.

Program Specific Mapping


Course Outcomes (CO) Explanation
Outcomes (PSOs) Score

CO 1. Students will be
The ability to identify various types of errors in
able to build program
2 software systems is essential for system design and
with a Scripting
real-world product development
Language

CO 2. Students will be
Understanding the construction and working of
able to learn any other
3 various types of scripts is crucial for real world
scripting language on
product design
their own
PSO 1: Use the latest
technologies in Computer CO 3. Design real life Understanding the construction and working of file
Science and system design situational problems and handling and regular expressions is important in
to create smart products 3
think creatively about providing solutions to real-world problems through
that solve real-world solutions of them smart product development.
problems.

CO 4. Apply a solution Knowing the software systems like user


clearly and accurately in 3 applications, system applications is important for
a program using Python real world product development in software design.

CO 5. Apply the best Understanding the construction and working of file


features of Python to handling and regular expressions is important in
3
program real life providing solutions to real-world problems through
problems smart product development.

[49]
Mapping
Program Outcomes (PO) Course Outcomes (CO) Explanation
Score

CO 1. Students will be
able to build program
3
with a Scripting
Language

CO 2. Students will be
able to learn any other
3
scripting language on
their own

CO 3. Design real life


situational problems and
3
think creatively about
solutions of them
PSO 2: Design, develop,
and put into action smart CO 4. Apply a solution
systems and technologies clearly and accurately in 3
that meet the needs of a program using Python The program outcome PSO 2 emphasizes on
society and industry. designing, developing, and implementing systems
in the field of Software System and Design to meet
the demands of society and industry. The course
outcomes CO 1-5 all contribute to achieving this
program outcome by providing students with a
comprehensive understanding of Scripting,
including the understanding of the construction,
CO 5. Apply the best and working of file handling and regular
features of Python to expressions is important in providing solutions to
3
program real life real-world problems through smart product
problems. development. These are all crucial skills and
knowledge that students need to have to design and
develop effective computer systems to meet the
demands of society and industry. Therefore, all the
course outcomes align perfectly with the program
outcome, PSO 2, and are scored 3.

CO 1. Students will be The ability to identify faults in computer and


able to build program embedded devices is directly related to the goal of
2
with a Scripting analyzing and diagnosing those errors for software
Language management purposes.
PSO 3: Analyse and
identify faults and issues in CO 2. Students will be Understanding the construction and working of
computer and embedded able to learn any other computer system devices can be helpful in
2
devices and systems to scripting language on diagnosing faults in those devices and systems, but
effectively manage their their own it is not a direct alignment with the PSO.
performance.
CO 3. Design real life File handing and regular expressions are used to
situational problems and handle input/outputs and protect systems from
3 errors, and understanding their construction and
think creatively about
working is directly related to the goal of analyzing
solutions of them
and diagnosing faults in those systems

[50]
Mapping
Program Outcomes (PO) Course Outcomes (CO) Explanation
Score

CO 4. Apply a solution
clearly and accurately in 3 Knowledge of scripting systems is directly related
a program using Python to the ability to diagnose faults in those systems.

CO 5. Apply the best


features of Python to Understanding script programming can be helpful
2 in diagnosing faults in system devices and systems,
program real life
but it is not a direct alignment with the PSO.
problems

[51]
[52]

Common questions

Powered by AI

Regular expressions in Python are used for powerful pattern matching and searching tasks, including data validation, text parsing, and string manipulation. Functions like re.match(), re.search(), and re.findall() allow users to efficiently search for patterns within text, which is particularly useful in applications like form validation, data scraping, and automated testing .

Django's MVC (Model-View-Controller) framework facilitates efficient web development by promoting a clean separation of the code into three components: models handle the database, views format and manage the output data presentation, and templates manage user interface. This separation enhances maintainability, scalability, and makes collaborative development more streamlined .

Scope and binding determine where a variable can be accessed within the program. In Python, local variables are accessible only within the function they're defined in, while global variables can be accessed across the program. Nonlocal variables allow access to variables in an enclosing scope, typically within nested functions. Understanding scope is crucial for managing variable lifecycle and avoiding unexpected bugs or behavior in larger programs .

Arbitrary, optional, and named arguments in Python functions enhance flexibility by allowing functions to dynamically handle varying numbers of input parameters. Arbitrary arguments (*args) accommodate multiple inputs, optional arguments provide default values to parameters, and named arguments enhance readability by allowing function calls to specify parameters explicitly by name, increasing the clarity and reusability of functions .

Logical operators (such as 'and', 'or', 'not') evaluate entire expressions and return boolean values whereas bitwise operators ('&', '|', '^') perform operations at the bit level and work primarily on binary numbers. Logical operators are typically used in control structures and conditions, while bitwise operators are used for low-level binary manipulation .

Learning scripting languages like Python offers substantial educational and professional advantages, as Python's readability and simplicity make it an ideal language for teaching programming fundamentals and logic. Its extensive libraries and frameworks support various fields such as data science, web development, and automation, enhancing a learner’s capability to solve complex real-world problems and making them more versatile in the job market .

Coding blocks in Python, such as conditional blocks (if, elif, else) and loops (for, while), help segment code into logical parts. These blocks enhance readability by structurally simplifying the logic of a program. Using consistent indentation makes the code organized, and separating different logical functions into blocks can improve both readability and debugging ease .

Python has various types of operators including logical, bitwise, membership, and identity operators. Operator precedence determines the order in which operations are evaluated. For example, multiplication has a higher precedence than addition, which means expressions are evaluated in that order unless parentheses are used to explicitly define evaluation order .

Modules allow you to logically organize your Python code by grouping related functions, classes, or variables together, which can then be imported and used in other modules or scripts. Packages provide a way to group related modules together. This modular approach not only keeps code organized and manageable but also promotes code reuse across projects and simplifies collaboration among developers .

Python file operations allow for reading from and writing to files, which are critical for data persistence and processing in applications. The benefits include robust functions for file manipulation, easy data extraction, and storage. However, challenges can arise in handling file permissions, ensuring data integrity, and managing resource closure to avoid memory leaks .

You might also like