Python PYQ assignment (1)
Python PYQ assignment (1)
53220202 |
kam Roll N.
Ploen ortte o r Bn Roh No.)
END TERM DXAMINATION
JANUARY-FeBAUART 2023
THIRD 8EMEATER (BCA] Programming
Paper Code: BCAT-211 Buhject: Baslcs of Python
Maxlmum Marke: 75
Tme: 3Hours
Note: Atempt 1 whteh ls oompulsory.
oe questtons tn all incudtng Q.No.unlt.
Select one questton from each
P.T.0.
(-3-]
UNIT-IV
Q8 a) Explain the
(i) read(n) following built-in
(i) seek(0
methods of fle. (6)
(ijwritelines)
(iv) tell)
b) List the
c) advantages
Explain following
the
of NumPy Arrays
over nested python list.
1. barh) functions with respèct to Matplotlib. (3%)
(3)
2. legend)
Q9 OR
.Explain the different file opening modes with
Explain the following function with respect toexample. (8)
reshape) NumPy (4)
(Please wrte your Rxam Roll No.)
Exum Noll Na. .....'"..
Q8 (a) Elaborate the importance of pip command to install any library in python? (4.5)
(b) Byusing NumPy library in program, perform he following operations:
Creation of 1D array, Re-shaping of an Array, Aray Slcng Axsregate
Operations. (3)
(4.3)
Q9 (a) Explain file modes of file handling? Give cxAmple of cach?
(6) Explain the use of NunPy, Pandas, Matplotlib in python progranming? Give
(8)
example of each?
write your Enrolment No.) Enrolment
(Please
No
MAHARAJASURAJMAL INSTITUTE
MID- TERM EXAMINATION (for BCA3A-3B-Morn.)
BCA THIRD SEMESTER November 2023
Note: Q. 1 is compulsory.
Attempt any 3 from the rest. Each question carries 15 marks.
Write a program that accepts numbers from the user and display the sum
(c)
of all even numbers from the ones
entered. The loop should continue till the
User enters a zero.
5