Total No. of Pages : 4] Code No.
BS215CA/B/2023
B1784
FACULTY OF SCIENCE
B.A./B.Com./B.Sc. II Semester (3YDC) Examination, May/June - 2023
Subject : COMPUTER APPLICATIONS
Course Code No. & Name : BS215CA - Programming with Python
Time : 3 Hours] [Max. Marks : 80
[Min. Marks : 32
SECTION - A
[Marks : 4 × 5 = 20]
Instructions to the candidates:
a) Answer any four of the following questions.
b) Each question carries 5 marks.
1) Explain various numerical data types with examples.
2) Describe various flavours of Python.
3) Explain how to delete the string with del.
4) Describe Creating, indexing three dimensional arrays in Python.
5) Describe Creation of dictionaries in Python.
6) Explain basic operations of tuples in Python.
7) Describe Placing widgets on grid with example.
8) Describe Polymorphism with examples.
P.T.O.
SECTION - B
[Marks : 4 × 10 = 40]
Instructions to the candidates :
a) Answer all the following questions.
b) Each question carries 10 marks
9) a) Explain various data types in Python.
OR
b) Explain for loop, infinite loop and nested loop in Python.
10) a) Explain String formatting with format( ) with suitable examples.
OR
b) Explain any five matrix operations using Numpy.
11) a) Explain nested list comprehensions with examples.
OR
b) Describe basic operations on Dictionaries.
12) a) Describe Coordinate sequences with examples.
OR
b) Explain pickling and pipes in Python with examples.
SECTION - C
[Marks : 20 × 1 = 20]
Instructions to the candidates :
a) Answer all of the following questions.
b) Each question carries 1 mark.
I. Multiple Choice Questions.
13) Which of the following is a Robust Programming language_____.
a) Python b) Java
c) C d) All of the above
14) Which of the following Symbol is used as first character of comment in
Python.
a) # b) ~
c) @ d) <<
BS215CA/B/2023 2
15) Loop within a loop is called _____.
a) For b) While
c) Nested d) do-while
16) ______ returns evenly spaced numbers over a specified interval.
a) Logspace( ) b) linspace( )
c) Zeros( ) d) ones( )
17) Which of the following is a string format Symbol of floating Point
number.
a) %f b) %x
c) %d d) %0
18) The variable which are declared and used in a function or a block is
called ____ variable.
a) functional b) global
c) local d) loop
19) Lists whose elements are again lists is called ____.
a) tuples b) list cloning
c) arrays d) nested lists
20) ______ returns name of the file.
a) file.closed b) file.mode
c) file.name d) file.open
BS215CA/B/2023 3
21) Copying one dictionary to another is called _____.
a) joining b) cloning
c) merging d) removing
22) Which of the following is a warehouse of tables, uses, sql etc.
a) Database b) Excel
c) Power BI d) File
II. Match the following:
A B
23) def a) keyword in Python to define
a function
24) < = b) Arithmetic operator
25) ! c) Assignment operator
26) = = d) Relational operator
27) file.name e) Logical operator
f) Returns file name
III. Fill in the blanks.
28) Full Form of MRO _______.
29) ______ is a condition in the control statement.
30) ______ is a octal notation where n is in the range 0.7.
31) ______ is a creating and Processing Lists Concisely.
32) Collection of characters is called _______.
BS215CA/B/2023 4