MP_Dec2023
MP_Dec2023
]
This question paper contains 8 printed
Your Roll Noa)2a3
Sr. No. of Question Paper : 7212 G
Semester : III
2.
Attempt all questions by selecting any six parts
from
question number 1, and any three parts from
question
numbers 2 to 6
respectively.
3. All commands to be written in
Python code.
P.T.0.
7212 2
Total marks: 2.5x6=15
1. Attempt any 6 parts.
f-string Python
(a) Write the output of the following
command:
places, is
print (f 'n, rounded to two decimal
{pi:.2f}.")
>>> a = 123
>>> b = 4
>>> [a + b, 2*b]
(b) (a)Attempt
**2-1))>>>
*x**2-z*x**2+x**3, commands X=
>>> cancel(sin(x)*
tan(x)/sec(x)
>>>x) >>> >>> What
: p.Show() p[0].linecolor
p[1].linecolor'r' = b'= p= from correctly:
from rewrite itFind
together(1/(x-1) simplify(x* plot(4*x
symbol(x)
will sympy.plotting
sympy the any
error 3
be **2+3,
the import parts.
(if
*2+2*x+1 output 3*x+5, any)
- symbol import 6
1/(x+1)) in
of legend=True,
)/(x**2+x)) the
the Plot 5x3=15
marks:
Total
following
following
Show=False)
code
Sympy
and
6 7212
(b) (a) Attempt (d) (c)
Write codesequence =
P.,n+3(4Pprogram {P,}, Given thatWrite For integral: Write