MTC-243 Python Programing Language II Slips Semester IV
MTC-243 Python Programing Language II Slips Semester IV
Slip No. : 01
Time: 3 Hours Max. Marks: 35
(ii) Write a python program to display the following LPP by using pulp module and simplex
method. Find its optimal solution if exist.
Min Z = x + y
subject to x ≥ 6
y≥6
x + y ≤ 11
x ≥ 0, y ≥ 0.
1
(b) Attempt any ONE of the following. [8]
(i) Apply Python program in each of the following transformations on the point P [3, −1]
(I) Refection through X−axis.
(II) Scaling in X−coordinate by factor 2.
(III) Scaling in Y−coordinate by factor 1.5.
(IV) Reflection through the line y = x.
(ii) Find the combined transformation of the line segment between the points A[5, −2] & B[4, 3]
by using Python program for the following sequence of transformations:-
(I) Rotation about origin through an angle π.
(II) Scaling in X− coordinate by 2 units.
(III) Reflection through the line y = −x.
(IV) Shearing in X direction by 4 units.
2
SAVITRIBAI PHULE PUNE UNIVERSITY, PUNE
Board of Studies in Mathematics
[Link] (Computer Science)
Practical Examination in Mathematics
MTC-243: Python Programming Language-II
(CBCS 2019 Pattern)(Semester-IV)
Slip No. : 02
Time: 3 Hours Max. Marks: 35
Max Z = 5x + 3y
subject to x + y ≤ 7
2x + 5y ≤ 1
x ≥ 0, y ≥ 0.
(ii) Write a python program to display the following LPP by using pulp module and simplex
method. Find its optimal solution if exist.
Max Z = 3x + 2y + 5z
subject to x + 2y + z ≤ 430
3x + 2z ≤ 460
x + 4y ≤ 120
x ≥ 0, y ≥ 0, z ≥ 0.
3
(b) Attempt any ONE of the following. [8]
(i) Apply Python program in each of the following transformations on the point P [4, −2]
(I) Refection through Y−axis.
(II) Scaling in X−coordinate by factor 3.
(III) Scaling in Y−coordinate by factor 2.5
(IV) Reflection through the line y = −x.
(ii) Find the combined transformation of the line segment between the points A[4, −1] & B[3, 0]
by using Python program for the following sequence of transformations:-
(I) Rotation about origin through an angle π.
(II) Shearing in Y direction by 4.5 units.
(III) Scaling in X− coordinate by 3 units.
(IV) Reflection through the line y = x.
4
SAVITRIBAI PHULE PUNE UNIVERSITY, PUNE
Board of Studies in Mathematics
[Link] (Computer Science)
Practical Examination in Mathematics
MTC-243: Python Programming Language-II
(CBCS 2019 Pattern)(Semester-IV)
Slip No. : 03
Time: 3 Hours Max. Marks: 35
(a) Write a Python program to reflect the line segment joining the points A[5, 3] & B[1, 4] through the
line y = x + 1
1 2
(b) If the line with points A[2, 1], B[4, −1] is transformed by the transformation matrix [T ] = ,
2 1
then using python, find the equation of transformed line.
(c) Generate line segment having endpoints (0, 0) and (10, 10) find midpoint of line segment.
Q.3 Attempt the following.
(a) Attempt any ONE of the following. [7]
(i) Write a Python program to solve the following LPP:
Min Z = 3.5x + 2y
subject to x + y ≥ 5
x≥4
y≤2
x ≥ 0, y ≥ 0.
(ii) Write a python program to display the following LPP by using pulp module and simplex
method. Find its optimal solution if exist.
5
(b) Attempt any ONE of the following. [8]
(i) Apply Python program in each of the following transformations on the point P [4, −2]
(I) Refection through Y−axis.
(II) Scaling in X−coordinate by factor 3.
(III) Scaling in Y−coordinate by factor 2.5
(IV) Reflection through the line y = −x.
(ii) Find the combined transformation of the line segment between the points A[2, −1] & B[5, 4]
by using Python program for the following sequence of transformations:-
(I) Rotation about origin through an angle π.
(II) Scaling in X−coordinate by 3 units.
(III) Shearing in X direction by 6 units.
(IV) Reflection through the line y = x.
6
SAVITRIBAI PHULE PUNE UNIVERSITY, PUNE
Board of Studies in Mathematics
[Link] (Computer Science)
Practical Examination in Mathematics
MTC-243: Python Programming Language-II
(CBCS 2019 Pattern)(Semester-IV)
Slip No. : 04
Time: 3 Hours Max. Marks: 35
(ii) Write a python program to display the following LPP by using pulp module and simplex
method. Find its optimal solution if exist.
Max Z = 4x + y + 3z + 5w
subject to 4x + 6y − 5z − 4w ≥ −20
−8x − 3y + 3z + 2w ≤ 20
x + y ≤ 11
x ≥ 0, y ≥ 0, z ≥ 0, w ≥ 0.
7
(b) Attempt any ONE of the following. [8]
(i) Plot 3D axes with labels as x−axis and z−axis and also plot following points with given
coordinates in one graph.
(I) (70, −25, 15) as a diamond in black colour,
(II) (50, 72, −45) as a ∗ in green colour,
(III) (58, −82, 65) as a dot in green colour,
(IV) (20, 72, −45) as a ∗ in Red colour.
(ii) Find the combined transformation of the line segment between the points A[4, −1] & B[3, 0]
by using Python program for the following sequence of transformations:-
(I) Shearing in X direction by 9 units.
(II) Rotation about origin through an angle π.
(III) Scaling in X− coordinate by 2 units.
(IV) Reflection through the line y = x.
8
SAVITRIBAI PHULE PUNE UNIVERSITY, PUNE
Board of Studies in Mathematics
[Link] (Computer Science)
Practical Examination in Mathematics
MTC-243: Python Programming Language-II
(CBCS 2019 Pattern)(Semester-IV)
Slip No. : 05
Time: 3 Hours Max. Marks: 35
Max Z = 5x + 3y
subject to x + y ≤ 7
2x + 5y ≤ 1
x ≥ 0, y ≥ 0.
(ii) Write a python program to display the following LPP by using pulp module and simplex
method. Find its optimal solution if exist.
Max Z = 4x + y + 3z + 5w
subject to 4x + 6y − 5z − 4w ≥ 20
−3x − 2y + 4z + w ≤ 10
−8x − 3y + 3z + 2w ≤ 20
x + y ≤ 11
x ≥ 0, y ≥ 0, z ≥ 0, w ≥ 0.
9
(b) Attempt any ONE of the following. [8]
(i) Apply Python program in each of the following transformations on the point P [3, 8]
(I) Refection through X−axis.
(II) Scaling in X−coordinate by factor 6.
(III) Rotation about origin through an angle 30◦ .
(IV) Reflection through the line y = −x.
(ii) Write a python program to Plot 2D X−axis and Y−axis in black colour. In the same diagram
plot:-
(I) Green triangle with vertices [5, 4], [7, 4], [6, 6].
(II) Blue rectangle with vertices [2, 2], [10, 2], [10, 8], [2, 8].
(III) Red polygon with vertices [6, 2], [10, 4], [8, 7], [4, 8], [2, 4].
(IV) Isosceles triangle with vertices [0, 0], [4, 0], [2, 4].
10
SAVITRIBAI PHULE PUNE UNIVERSITY, PUNE
Board of Studies in Mathematics
[Link] (Computer Science)
Practical Examination in Mathematics
MTC-243: Python Programming Language-II
(CBCS 2019 Pattern)(Semester-IV)
Slip No. : 06
Time: 3 Hours Max. Marks: 35
Max Z = x + y
subject to 2x − 2y ≥ 1
x+y ≥2
x ≥ 0, y ≥ 0.
(ii) Write a python program to display the following LPP by using pulp module and simplex
method. Find its optimal solution if exist.
Min Z = x + y
subject to x ≥ 6
y≥6
x + y ≤ 11
x ≥ 0, y ≥ 0.
11
(b) Attempt any ONE of the following. [8]
(i) Apply Python program in each of the following transformations on the point P [4, −2]
(I) Refection through Y−axis.
(II) Scaling in X−coordinate by factor 7.
(III) Shearing in Y direction by 3 units
(IV) Reflection through the line y = −x.
(ii) Find the combined transformation by using Python program for the following sequence of
transformations:-
(I) Rotation about origin through an angle 60◦ .
(II) Scaling in X−coordinate by 7 units.
(III) Uniform scaling by 4 units.
(IV) Reflection through the line y = x..
12
SAVITRIBAI PHULE PUNE UNIVERSITY, PUNE
Board of Studies in Mathematics
[Link] (Computer Science)
Practical Examination in Mathematics
MTC-243: Python Programming Language-II
(CBCS 2019 Pattern)(Semester-IV)
Slip No. : 07
Time: 3 Hours Max. Marks: 35
Min Z = 3.5x + 2y
subject to x + y ≥ 5
x≥4
y≤2
x ≥ 0, y ≥ 0.
(ii) Write a python program to display the following LPP by using pulp module and simplex
method. Find its optimal solution if exist.
Max Z = x + 2y + z
subject to x + 2y + 2z ≤ 1
3x + 2y + z ≥ 8
x ≥ 0, y ≥ 0, z ≥ 0.
13
(b) Attempt any ONE of the following. [8]
(i) Apply Python program in each of the following transformations on the point P [4, −2]
(I) Refection through Y−axis.
(II) Scaling in X−coordinate by factor 5.
(III) Rotation about origin through an angle π2 .
(IV) Shearing in X direction by 72 units.
(ii) Find the combined transformation of the line segment between the points A[7, −2] & B[6, 2]
by using Python program for the following sequence of transformations:-
(I) Rotation about origin through an angle π3 .
(II) Scaling in X− coordinate by 7 units.
(III) Uniform scaling by −4 units.
(IV) Reflection through the line X− axis.
14
SAVITRIBAI PHULE PUNE UNIVERSITY, PUNE
Board of Studies in Mathematics
[Link] (Computer Science)
Practical Examination in Mathematics
MTC-243: Python Programming Language-II
(CBCS 2019 Pattern)(Semester-IV)
Slip No. : 08
Time: 3 Hours Max. Marks: 35
(ii) Write a python program to display the following LPP by using pulp module and simplex
method. Find its optimal solution if exist.
Max Z = 3x + 5y + 4z
subject to 2x + 3y ≤ 8
2y + 5z ≤ 10
3x + 2y + 4z ≤ 15
x ≥ 0, y ≥ 0, z ≥ 0.
15
(b) Attempt any ONE of the following. [8]
(i) Apply Python program in each of the following transformations on the point P [4, −2]
(I) Refection through Y−axis.
(II) Scaling in X−coordinate by factor 3.
(III) Rotation about origin through an angle π.
(IV) Shearing in both X and Y direction by −2 and 4 units respectively.
(ii) Find the combined transformation of the line segment between the points A[4, −1] & B[3, 2]
by using Python program for the following sequence of transformations:-
(I) Rotation about origin through an angle π4 .
(II) Shearing in Y direction by 4 units.
(III) Scaling in X− coordinate by 5 units.
(IV) Reflection through y− axis.
16
SAVITRIBAI PHULE PUNE UNIVERSITY, PUNE
Board of Studies in Mathematics
[Link] (Computer Science)
Practical Examination in Mathematics
MTC-243: Python Programming Language-II
(CBCS 2019 Pattern)(Semester-IV)
Slip No. : 09
Time: 3 Hours Max. Marks: 35
(ii) Write a python program to display the following LPP by using pulp module and simplex
method. Find its optimal solution if exist.
Max Z = 4x + y + 3z + 5w
subject to 4x + 6y − 5z − 4w ≥ 20
−3x − 2y + 4z + w ≤ 10
−8x − 3y + 3z + 2w ≤ 20
x ≥ 0, y ≥ 0, z ≥ 0, w ≥ 0.
17
(b) Attempt any ONE of the following. [8]
(i) Write a python program to apply the following transformations on the point (−2, 4) :
(I) Shearing in Y direction by 7 units.
(II) Scaling in X and Y direction by 72 and 7 units respectively.
(III) Shearing in X and Y direction by 4 and 7 units respectively.
(IV) Rotation about origin by an angle 60◦ .
(ii) Write a python program to find the combined transformation of the line segment between the
points A[5, 3] & B[1, 4] for the following sequence of transformations:
(I) Rotate about origin through an angle π2 .
(II) Uniform scaling by −3.5 units.
(III) Scaling in Y− axis by 5 units.
(IV) Shearing in X and Y direction by 3 and 4 units respectively.
18
SAVITRIBAI PHULE PUNE UNIVERSITY, PUNE
Board of Studies in Mathematics
[Link] (Computer Science)
Practical Examination in Mathematics
MTC-243: Python Programming Language-II
(CBCS 2019 Pattern)(Semester-IV)
Slip No. : 10
Time: 3 Hours Max. Marks: 35
Max Z = x + y
subject to x − y ≥ 1
x+y ≥2
x ≥ 0, y ≥ 0.
(ii) Write a python program to display the following LPP by using pulp module and simplex
method. Find its optimal solution if exist.
Max Z = 3x + 2y + 5z
subject to x + 2y + z ≤ 430
3x + 4z ≤ 460
x + 4y ≤ 120
x ≥ 0, y ≥ 0, z ≥ 0.
19
(b) Attempt any ONE of the following. [8]
(i) Write a python program to apply the following transformations on the point (−2, 4) :
(I) Refection through X−axis.
(II) Scaling in X−coordinate by factor 6.
(III) Shearing in X direction by 4 units.
(IV) Rotate about origin through an angle 30◦ .
(ii) Write a python program to find the combined transformation between the points for the
following sequence of transformations:-
(I) Rotation about origin through an angle π2 .
(II) Uniform scaling by 3.5 units.
(III) Scaling in X & Y coordinate by 3 & 5 units respectively.
(IV) Shearing in X direction by 6 units.
20
SAVITRIBAI PHULE PUNE UNIVERSITY, PUNE
Board of Studies in Mathematics
[Link] (Computer Science)
Practical Examination in Mathematics
MTC-243: Python Programming Language-II
(CBCS 2019 Pattern)(Semester-IV)
Slip No. : 11
Time: 3 Hours Max. Marks: 35
Min Z = x + y
subject to x ≥ 6
y≥6
x + y ≥ 11
x ≥ 0, y ≥ 0.
(ii) Write a program in python to solve the following LPP and to find optimal solution if exists:
Max Z = 3x + 5y + 4z
subject to 2x + 3y ≤ 8
2y + 5z ≤ 10
3x + 2y + 4z ≤ 15
x ≥ 0, y ≥ 0, z ≥ 0.
21
(b) Attempt any ONE of the following. [8]
(i) Write a python program to apply the following transformations on the point (−2, 4) :
(I) Shearing in Y direction by 7 units.
(II) Scaling in X and Y direction by 32 and 4 units respectively.
(III) Shearing in X and Y direction by 2 and 4 units respectively.
(IV) Rotation about origin by an angle 45◦ .
(ii) Write a python program to find the combined transformation of the line segment between the
points A[3, 2] & B[2, −3] for the following sequence of transformations:-
(I) Rotation about origin through an angle π6 .
(II) Scaling in Y−coordinate by −4 units.
(III) Uniform scaling by −6.4 units.
(IV) Shearing in Y direction by 5 units.
22
SAVITRIBAI PHULE PUNE UNIVERSITY, PUNE
Board of Studies in Mathematics
[Link] (Computer Science)
Practical Examination in Mathematics
MTC-243: Python Programming Language-II
(CBCS 2019 Pattern)(Semester-IV)
Slip No. : 12
Time: 3 Hours Max. Marks: 35
Min Z = 3.5x + 2y
subject to x + y ≥ 5
x≥4
y≤2
x ≥ 0, y ≥ 0.
(ii) Write a python program to solve LPP and find optimal solution if exists.
Max Z = 3x + 5y + 4z
subject to 2x + 3y ≤ 8
2y + 5z ≤ 10
3x + 2y + 4z ≤ 15
x ≥ 0, y ≥ 0, z ≥ 0.
23
(b) Attempt any ONE of the following. [8]
(i) Write a python program to apply the following transformations on the point [−2, 4]
(I) Refection through Y− axis.
(II) Scaling in X−coordinate by factor 6.
(III) Scaling in Y−coordinate by factor 4.1.
(IV) Shearing in X direction by 72 units.
(ii) Write a python program to find the combined transformation on the line segment between the
points A[4, 1] & B[−3, 0] for the following sequence of Transformations:
(I) Rotation about origin through an angle π4 .
(II) Uniform scaling by 7.3 units.
(III) Scaling in X− coordinate by 3 units.
(IV) Shearing in X direction by 12 units.
24
SAVITRIBAI PHULE PUNE UNIVERSITY, PUNE
Board of Studies in Mathematics
[Link] (Computer Science)
Practical Examination in Mathematics
MTC-243: Python Programming Language-II
(CBCS 2019 Pattern)(Semester-IV)
Slip No. : 13
Time: 3 Hours Max. Marks: 35
Max Z = 5x + 3y
subject to x + y ≤ 7
2x + 5y ≤ 1
x ≥ 0, y ≥ 0.
(ii) Write a python program to display the following LPP by using pulp module and simplex
method. Find its optimal solution if exist.
Max Z = 3x + 2y + 5z
subject to x + 2y + z ≤ 430
3x + 4z ≤ 460
x + 4y ≤ 120
x ≥ 0, y ≥ 0, z ≥ 0.
25
(b) Attempt any ONE of the following. [8]
(i) Write a python program to apply the following transformations on the point (−2, 4) :
(I) Shearing in Y direction by 7 units.
(II) Scaling in X and Y direction by 72 and 7 units respectively.
(III) Shearing in X and Y direction by 4 and 7 units respectively.
(IV) Rotation about origin by an angle 60◦ .
(ii) Write a python program to Plot 2D x-axis and y-axis in black colour. In the same diagram
plot:-
(I) Green triangle with vertices [5, 4], [7, 4], [6, 6].
(II) Blue rectangle with vertices [2, 2], [10, 2], [10, 8], [2, 8].
(III) Red polygon with vertices [6, 2], [10, 4], [8, 7], [4, 8], [2, 4].
(IV) Isosceles triangle with vertices [0, 0], [4, 0], [2, 4].
26
SAVITRIBAI PHULE PUNE UNIVERSITY, PUNE
Board of Studies in Mathematics
[Link] (Computer Science)
Practical Examination in Mathematics
MTC-243: Python Programming Language-II
(CBCS 2019 Pattern)(Semester-IV)
Slip No. : 14
Time: 3 Hours Max. Marks: 35
Min Z = x + y
subject to x ≥ 6
y≥6
x + y ≤ 11
x ≥ 0, y ≥ 0.
27
(b) Attempt any ONE of the following. [8]
i. Apply each of the following transformations on the point P [2, −3].
I. Reflection through X-axis.
II. Scaling in X-coordinate by factor 2.
III. Scaling in Y-coordinate by factor 1.5.
IV. Reflection through the line y = x.
ii. Apply each of the following transformations on the point P [3, −1].
I. Shearing in Y direction by 2 units.
II. Scaling in X and Y direction by 1/2 and 3 units respectively.
III. Shearing in both X and Y direction by -2 and 4 units respectively.
IV. Rotation about origin by an angle 30 degrees.
28
SAVITRIBAI PHULE PUNE UNIVERSITY, PUNE
Board of Studies in Mathematics
[Link] (Computer Science)
Practical Examination in Mathematics
MTC-243: Python Programming Language-II
(CBCS 2019 Pattern)(Semester-IV)
Slip No. : 15
Time: 3 Hours Max. Marks: 35
(c) Write the python program to plot the graphs of sin x, cos x, ex and x2 in [0, 5] in one figure with
2 × 2 subplots.
Q.2 Attempt any TWO of the following. [10]
(a) Write the Python program to rotate the triangle ABC by 180 degree, where A[1, 2], B[2, −2] & C[−1, 2].
(b) Write the Python program to plot the graph of function f (x) = ex in the interval [−10, 10].
(c) Write a Python program to plot the 3D graph whose parametric equation is (cos(2x), sin(2x), x)
for 10 ≤ x ≤ 20 (in red color ), with title to the graph.
Q.3 Attempt the following.
(a) Attempt any ONE of the following. [7]
i. Write a Python program to solve the following LPP:
Min Z = 3.5x + 2y
subject to x + y ≥ 5
x≥4
y≤2
x ≥ 0, y ≥ 0.
Min Z = x + y
subject to x ≥ 6
y≥6
x + y ≤ 11
x ≥ 0, y ≥ 0.
29
(b) Attempt any ONE of the following. [8]
i. Write a Python program to find the combined transformation of the line segment between the
points A[5, 3] and B[1, 4] for the following sequence of transformations:
I. First rotation about origin through an angle π/2.
II. Followed by scaling in x co-ordinate by 5 units.
III. Followed by reflection through the line y = −x.
ii. Write a Python program to apply each of the following transformations on the point P [−2, 4].
I. Reflection through the line y = x + 1.
II. Scaling in Y -coordinate by factor 1.5.
III. Shearing in X direction by 2 units.
IV. Rotation about origin by an angle 45 degrees.
30
SAVITRIBAI PHULE PUNE UNIVERSITY, PUNE
Board of Studies in Mathematics
[Link] (Computer Science)
Practical Examination in Mathematics
MTC-243: Python Programming Language-II
(CBCS 2019 Pattern)(Semester-IV)
Slip No. : 16
Time: 3 Hours Max. Marks: 35
Max Z = 5x + 3y
subject to 3x + 5y ≤ 15
6x + 2y ≥ 24
x ≥ 0, y ≥ 0.
Min Z = 3.5x + 2y
subject to x + y ≥ 5
x≥4
y≤2
x ≥ 0, y ≥ 0.
31
SAVITRIBAI PHULE PUNE UNIVERSITY, PUNE
Board of Studies in Mathematics
[Link] (Computer Science)
Practical Examination in Mathematics
MTC-243: Python Programming Language-II
(CBCS 2019 Pattern)(Semester-IV)
Slip No. : 17
Time: 3 Hours Max. Marks: 35
(a) Write a python program to rotate the line segment by 180 degrees having end points (1, 0) and
(2, −1).
(b) Write a python program to plot triangle with vertices [3, 3], [5, 6], [5, 2], and its rotation about the
origin by angle −π radians.
(c) Write a python program to drawn a polygon with vertices (0, 0), (1, 0), (2, 2), (1, 4) and find its area
and perimeter.
Max Z = 4x + y + 3z + 5w
subject to 4x + 6y − 5z − 4w ≥ −20
−8x − 3y + 3z + 2w ≤ 20
x ≥ 0, y ≥ 0.
Max Z = x + y
subject to x ≤ 6
y≤6
x + y ≤ 11
x ≥ 0, y ≥ 0.
32
(b) Attempt any ONE of the following. [8]
i. Apply each of the following transformations on the point P [3, −1].
I. Reflection through X-axis.
II. Scaling in Y-coordinate by factor 1.5.
III. Shearing in both X and Y direction by -2 and 4 units respectively.
IV. Rotation about origin by an angle 30 degrees.
ii. Write a python program to draw polygon with vertices [3, 3], [4, 6], [5, 4], [4, 2] and [2, 2], and
its translation in x and y direction by factors -2 and 1 respectively.
33
SAVITRIBAI PHULE PUNE UNIVERSITY, PUNE
Board of Studies in Mathematics
[Link] (Computer Science)
Practical Examination in Mathematics
MTC-243: Python Programming Language-II
(CBCS 2019 Pattern)(Semester-IV)
Slip No. : 18
Time: 3 Hours Max. Marks: 35
Min Z = x + y
subject to x ≥ 6
y≥6
x + y ≤ 11
x ≥ 0, y ≥ 0.
Max Z = 2x + 3y
subject to 5x − y ≥ 0
x+y ≥6
x ≥ 0, y ≥ 0.
34
(b) Attempt any ONE of the following. [8]
i. Write a Python program to find the combined transformation of the line segment between the
points A[3, 2] and B[2, −3] for the following sequence of transformations:
I. First rotation about origin through an angle π/6
II. Followed by scaling in Y coordinates by 4 units respectively.
III. Followed by reflection through the origin.
ii. Apply each of the following transformations on the point P [3, −1].
I. Reflection through Y-axis.
II. Scaling in X and Y direction by 1/2 and 3 units respectively.
III. Shearing in both X and Y direction by -2 and 4 units respectively.
IV. Rotation about origin by an angle 60 degrees.
35
SAVITRIBAI PHULE PUNE UNIVERSITY, PUNE
Board of Studies in Mathematics
[Link] (Computer Science)
Practical Examination in Mathematics
MTC-243: Python Programming Language-II
(CBCS 2019 Pattern)(Semester-IV)
Slip No. : 19
Time: 3 Hours Max. Marks: 35
Max Z = 3x + 5y + 4z
subject to 2x + 3y ≤ 8
2y + 5z ≤ 10
3x + 2y + 4z ≤ 15
x ≥ 0, y ≥ 0.
Min Z = x + 2y + z
1 1
subject to x + y + z ≤ 1
2 2
3
x + 2y + z ≥ 8
2
x ≥ 0, y ≥ 0.
36
(b) Attempt any ONE of the following. [8]
i. Write the Python program to apply each of the following transformation on the point P =
[−2, 4].
I. Rotation about origin through an angle 48 degree
II. Scaling in X-coordinate by factor 2
III. Reflection through the line y = 2x − 3
IV. Shearing in X direction by 7 units
ii. Find combined transformation of the line segment between the points A[4, −1] and B[3, 0] for
the following sequence of transformations:
First rotation about origin through an angle π c ; followed by scaling in x coordinate by 3 units;
followed by reflection through the line y = x.
37
SAVITRIBAI PHULE PUNE UNIVERSITY, PUNE
Board of Studies in Mathematics
[Link] (Computer Science)
Practical Examination in Mathematics
MTC-243: Python Programming Language-II
(CBCS 2019 Pattern)(Semester-IV)
Slip No. : 20
Time: 3 Hours Max. Marks: 35
Max Z = x + y
subject to x − y ≥ 1
x+y ≥2
x ≥ 0, y ≥ 0.
Min Z = 3.5x + 2y
subject to x − y ≥ 5
x≥4
y≤2
x ≥ 0, y ≥ 0.
38
(b) Attempt any ONE of the following. [8]
i. Apply the following transformations on the point P [3, −2]
I. Scaling in y direction by 4 units.
II. Reflection through y axis.
III. Rotation about origin by an angle 45o .
IV. Reflection through the line y = x.
ii. Apply the following transformations on the point P [3, −2]
I. Shearing in x direction by -2 units.
II. Scaling in x and y direction by -3 and 2 units respectively.
III. Reflection through x axis.
IV. Reflection through the line y = −x.
39
SAVITRIBAI PHULE PUNE UNIVERSITY, PUNE
Board of Studies in Mathematics
[Link] (Computer Science)
Practical Examination in Mathematics
MTC-243: Python Programming Language-II
(CBCS 2019 Pattern)(Semester-IV)
Slip No. : 21
Time: 3 Hours Max. Marks: 35
Min Z = 4x + 2y
subject to x + y ≤ 3
x−y ≥2
x ≥ 0, y ≥ 0.
Max Z = 2x + 4y
subject to 2x + y ≤ 18
2x + 2y ≥ 30
x + 2y = 26
x ≥ 0, y ≥ 0.
40
(b) Attempt any ONE of the following. [8]
i. Apply the following transformations on the point P [−2, 4].
I. Reflection through line 3x + 4y = 5.
II. Scaling in X coordinate by factor 6.
III. Scaling in Y coordinate by factor 4.1.
IV. Reflection through line y = 2x + 3.
ii. Apply the following transformations on the point P [−2, 4].
I. Shearing in Y direction by 7 units.
II. Scaling in both X and Y direction by 4 and 7 units respectively.
III. Rotation about origin by an angle 48 degrees.
IV. Reflection through line y = x.
41
SAVITRIBAI PHULE PUNE UNIVERSITY, PUNE
Board of Studies in Mathematics
[Link] (Computer Science)
Practical Examination in Mathematics
MTC-243: Python Programming Language-II
(CBCS 2019 Pattern)(Semester-IV)
Slip No. : 22
Time: 3 Hours Max. Marks: 35
(a) Write a python program to find the angle at each vertices of the triangle ABC where A[0, 0], B[2, 2]
and C[0, 2].
(b) Write a Python program to Reflect the Point P [3, 6] through the line x − 2y + 4 = 0.
(c) Write a Python program to find area and perimeter of the triangle ABC where A[0, 0], B[5, 0], C[3, 3].
Q.3 Attempt the following.
Max Z = 4x + y + 3z + 5w
subject to 4x + 6y − 5z − 4w ≥ −20
−3x − 2y + 4z + w ≤ 10
−8x − 3y + 3z + 2w ≤ 20
x, y, z, w ≥ 0.
Min Z = x + y
subject to x + y ≤ 11
x≥6
y≥6
x ≥ 0, y ≥ 0.
42
(b) Attempt any ONE of the following. [8]
i. Write the Python program for each of the following.
I. Rotate the point (1, 1) about (1, 4) through angle π/2.
II. Find Distance Between two points (0, 0) and (1, 0)
III. Find the shearing of the point (3, 4) in X direction by 3 units.
IV. Represent two dimensional points using point function (−2, 5).
ii. A Company has 3 production facilities S1, S2 and S3 with production capacity of 7, 9 and
18 units (in 100’s) per week of a product, respectively. These units are to be shipped to 4
warehouses D1, D2, D3 and D4 with requirement of 5, 6, 7 and 14 units (in 100’s) per week,
respectively. The transportation costs (in rupees) per unit between factories to warehouses
are given in the table below.
D1 D2 D3 D4 Supply
S1 19 30 50 10 7
S2 70 30 40 60 9
S3 40 8 70 20 18
Demand 5 8 7 14 34
Write a Python programme to solve transportation problem for minimize the costs of whole
operation.
43
SAVITRIBAI PHULE PUNE UNIVERSITY, PUNE
Board of Studies in Mathematics
[Link] (Computer Science)
Practical Examination in Mathematics
MTC-243: Python Programming Language-II
(CBCS 2019 Pattern)(Semester-IV)
Slip No. : 23
Time: 3 Hours Max. Marks: 35
Max Z = 3x + 5y + 4z
subject to 2x + 3y ≤ 8
2x + 5y ≤ 10
3x + 2y + 4z ≤ 15
x, y, z ≥ 0.
Min Z = 3x + 5y + 4z
subject to 2x + 2y ≤ 12
2x + 2y ≤ 10
5x + 2y ≤ 10
x ≥ 0, y ≥ 0.
44
(b) Attempt any ONE of the following. [8]
i. Write the Python program to apply each of the following transformation on the point P =
[3, −1].
I. Reflection through X axis.
II. Rotation about origin by an angle 30 degrees.
III. Scaling in Y coordinate by factor 8.
IV. Shearing in X direction by 2 units.
ii. Write a Python program to apply each of the following transformations on the point P [−2, 4].
I. Reflection through the line y = x + 2.
II. Scaling in Y -coordinate by factor 2.
III. Shearing in X direction by 4 units.
IV. Rotation about origin by an angle 60 degrees.
45
SAVITRIBAI PHULE PUNE UNIVERSITY, PUNE
Board of Studies in Mathematics
[Link] (Computer Science)
Practical Examination in Mathematics
MTC-243: Python Programming Language-II
(CBCS 2019 Pattern)(Semester-IV)
Slip No. : 24
Time: 3 Hours Max. Marks: 35
(c) Write a Python program to plot graph of the function f (x) = log(3x2 ), in [1, 10] with black dashed
points.
Q.2 Attempt any TWO of the following. [10]
(a) Write a python program to plot triangle with vertices [3, 3], [5, 6], [5, 2], and its rotation about the
origin by angle −π radians.
(b) Write a Python program to generate vector x in the interval [−22, 22] using numpy package with
80 subintervals.
(c) Write a Python program to draw a polygon with vertices (0, 0), (1, 0), (2, 2), (1, 4). Also find area
and perimeter of the polygon.
Q.3 Attempt the following.
Min Z = 3.5x + 2y
subject to x + y ≥ 5
x≥4
y≤2
x ≥ 0, y ≥ 0.
Min Z = x + y
subject to x ≥ 6
y≥6
x + y ≤ 11
x ≥ 0, y ≥ 0.
46
(b) Attempt any ONE of the following. [8]
i. Apply Python program in each of the following transformations on the point P [3, −1]
I. Refection through X−axis.
II. Scaling in X−coordinate by factor 2.
III. Scaling in Y−coordinate by factor 1.5.
IV. Reflection through the line y = x.
ii. Find the combined transformation of the line segment between the points A[4, −1] & B[3, 0]
by using Python program for the following sequence of transformations:-
I. Rotation about origin through an angle π.
II. Shearing in Y direction by 4.5 units.
III. Scaling in X− coordinate by 3 units.
IV. Reflection through the line y = x.
47
SAVITRIBAI PHULE PUNE UNIVERSITY, PUNE
Board of Studies in Mathematics
[Link] (Computer Science)
Practical Examination in Mathematics
MTC-243: Python Programming Language-II
(CBCS 2019 Pattern)(Semester-IV)
Slip No. : 25
Time: 3 Hours Max. Marks: 35
Max Z = 4x + y + 3z + 5w
subject to 4x + 6y − 5z − 4w ≥ 20
−3x − 2y + 4z + w ≤ 10
−8x − 3y + 3z + 2w ≤ 20
x ≥ 0, y ≥ 0, z ≥ 0, w ≥ 0.
48
(b) Attempt any ONE of the following. [8]
i. Write a python program to apply the following transformations on the point (−2, 4) :
I. Refection through X−axis.
II. Scaling in X−coordinate by factor 6.
III. Shearing in X direction by 4 units.
IV. Rotate about origin through an angle 30◦ .
ii. Write a python program to find the combined transformation of the line segment between the
points A[3, 2] & B[2, −3] for the following sequence of transformations:-
I. Rotation about origin through an angle π6 .
II. Scaling in Y−coordinate by −4 units.
III. Uniform scaling by −6.4 units.
IV. Shearing in Y direction by 5 units.
49