You are on page 1of 2

NRT/KS/19/5540

Bachelor of Commerce (Computer Application) (B.C.C.A.) Semester—VI Examination


PYTHON
Paper—2–1
(Sec–II)
Time : Three Hours] [Maximum Marks : 80
N.B. :— (1) All questions are compulsory.
(2) Draw well labelled diagrams wherever necessary.
PART—A
Note :— (1) Each question carries 2 marks.
(2) Answer should not be in more than 5 lines.
1. (a) List any 8 keywords of Python.
(b) What is comment ? Give an example.
(c) Define errors and exceptions in Python programs.
(d) What is the purpose of decimal function ?
(e) What is an acronym for ASCII ?
(f) What is meant by class attribute ?
(g) What is the purpose of image_creat( ) method ?
(h) What is the role of cgimodule ? 8×2=16
PART—B
Note :— (1) Each question carries 3 marks.
(2) Answer should not be in more than 10 lines.
2. (a) How will you take the prompt input from user ?
(b) What is the purpose of // operator ?
(c) What is the purpose of yield keyword in Python ?
(d) Describe variable scope in Python.
(e) What in-built functions are used to add, modify and remove an attribute of an instance ?
(f) Explain file opening modes in Python.
(g) What is the purpose of FieldStorage( ) constructor ?
(h) List any 6 methods used for showing button message. 8×3=24
PART—C
Note :— (1) Each question carries 5 or 10 marks.
(2) Answer should not be in more than 400 words for 5 marks questions and not more
than 600 words for 10 marks questions respectively.
EITHER
3. (a) What is Python ? What are the benefits of using Python ? 5
(b) What is the difference between tuples and lists in Python ? 5
OR
(c) Explain various types of operators in Python. 10

CLS—19846 1 (Contd.)
EITHER
4. (a) What is meant by lambda expression ? Explain. 5
(b) What is function ? Describe any four mathematical functions in Python. 5
OR
(c) What is meant by module ? Explain with example. 10
EITHER
5. (a) Describe various operators available for string manipulation. 5
(b) Explain read( ) and write( ) method in Python. 5
OR
(c) What is meant by method overriding ? Explain with example. 10
EITHER
6. (a) Create a new HTML document containing a form with two text fields and a submit button.
5
(b) Describe three geometry manager methods. 5
OR
(c) How will you upload a file on to the web server ? Explain with example. 10

CLS—19846 2 NRT/KS/19/5540

You might also like