FirstRanker Logo

FirstRanker.com - FirstRanker's Choice is a hub of Question Papers & Study Materials for B-Tech, B.E, M-Tech, MCA, M.Sc, MBBS, BDS, MBA, B.Sc, Degree, B.Sc Nursing, B-Pharmacy, D-Pharmacy, MD, Medical, Dental, Engineering students. All services of FirstRanker.com are FREE

📱

Get the MBBS Question Bank Android App

Access previous years' papers, solved question papers, notes, and more on the go!

Install From Play Store

Download VTU BE 2020 Jan CSE Question Paper 15 Scheme 6th Sem 15CS664 Python Application Programming

Download Visvesvaraya Technological University (VTU) BE ( Bachelor of Engineering) CSE 2015 Scheme 2020 January Previous Question Paper 6th Sem 15CS664 Python Application Programming

This post was last modified on 02 March 2020

15CS664
USN
Sixth Semester B.E. Degree Examination, Dec.2614/3an. 2
Python Application Programming
Time: 3 hrs. Max. Marks: 80

--- Content provided by FirstRanker.com ---

Note: Answer any FIVE full questions, choosing ONE full question front each module.
Module-I
o
-,- ;
=

--- Content provided by FirstRanker.com ---

3 a. Explain the working of while loop in python with suitable example. (05 Marks)
u
-
v
b. Write a python program to demonstrate counting, summing and average of elements using

--- Content provided by FirstRanker.com ---

Tz 3
=
O -0 loops. (05 Marks)
el) C
L

--- Content provided by FirstRanker.com ---

?
?*
c. What is a string? Write a python program to demonstrate traversal through a string with a
es r3
"C

--- Content provided by FirstRanker.com ---

loop. Also explain the concept of string slicing. (06 Marks)
,..
'1C e3
? t
0

--- Content provided by FirstRanker.com ---

.
OR
1?
?
..

--- Content provided by FirstRanker.com ---

Ci.
= , 4 a. With syntax and example code, explain the working of definite loop in python. (05 Marks)
c_
E
c?, ... b. Write a python program to concatenate and compare two strings. Read the strings from user.

--- Content provided by FirstRanker.com ---

0
,...
w
. g
(05 Marks)

--- Content provided by FirstRanker.com ---

7
-
-

3 8

--- Content provided by FirstRanker.com ---


C. Explain fileopen, fileclose, fileread and filewrite concepts in python with example. (06 Marks)
V: V.:
C ?v;
CZ v

--- Content provided by FirstRanker.com ---

Module-3
O,
? .-
5 a. 'What is a list? Explain the concept of list slicing and list traversing with example. (05 Marks)

--- Content provided by FirstRanker.com ---

ZA
b. Explain the concept of comparing tuples. Describe the working of sort function with python
.
0 g
a. 33

--- Content provided by FirstRanker.com ---

T, ?
code. (06 Marks)
P >
c. Write a python program to search for lines that start with 'F' followed by 2 characters,
o P

--- Content provided by FirstRanker.com ---

=
c
followed by 'm:'. (05 Marks)
.< 0
- es; OR

--- Content provided by FirstRanker.com ---

4> 6 a.
What is dictionary? How is it different from list? Write a python program to count
0
z occurrence of characters in a string and print the count. (06 Marks)
e, b. With an example program, illustrate how to pass function arguments to list. (05 Marks)

--- Content provided by FirstRanker.com ---

t
o
o.
c. Write a python program to search lines that start with 'X' followed by any non whitespace
E

--- Content provided by FirstRanker.com ---

O characters, followed by ':' ending with number. Display the sum of all these number.
(05 Marks)
a.
*
P

--- Content provided by FirstRanker.com ---

I Explain the salient features of python. (05 Marks)
b. Write a python program to calculate the area of square, rectangle and circle. Print the results.
=
Take input from user. (05 Marks)
-7:

--- Content provided by FirstRanker.com ---

-_,
c. What are user defined functions? How can we pass parameters in user defined functions?
1.-_.
Explain with suitable example. (06 Marks)
-

--- Content provided by FirstRanker.com ---

E., -c
,
,= 7?
OR
.,_

--- Content provided by FirstRanker.com ---

?
.
- =
? ? Lr'
2 a. Dqolain the concept of conditional execution alternate execution and chained conditions

--- Content provided by FirstRanker.com ---

el)
II
0 .e with suitable examples.
:E t
(06 Marks)

--- Content provided by FirstRanker.com ---

b. Write a python program to create a user defined function to find maximum and minimum
P. &
letter in string. Also find the length the string without using inbuilt function. (05 Marks)
O fr.
..= v c. Explain the concept of type conversion functions and math functions in python with

--- Content provided by FirstRanker.com ---

? E..
O i
r
examples. (05 Marks)
0

--- Content provided by FirstRanker.com ---

,,,
,,,
= =
Module-2
I of 2

--- Content provided by FirstRanker.com ---

FirstRanker.com - FirstRanker's Choice
15CS664
USN
Sixth Semester B.E. Degree Examination, Dec.2614/3an. 2
Python Application Programming

--- Content provided by FirstRanker.com ---

Time: 3 hrs. Max. Marks: 80
Note: Answer any FIVE full questions, choosing ONE full question front each module.
Module-I
o
-,- ;

--- Content provided by FirstRanker.com ---

=
3 a. Explain the working of while loop in python with suitable example. (05 Marks)
u
-
v

--- Content provided by FirstRanker.com ---

b. Write a python program to demonstrate counting, summing and average of elements using
Tz 3
=
O -0 loops. (05 Marks)
el) C

--- Content provided by FirstRanker.com ---

L
?
?*
c. What is a string? Write a python program to demonstrate traversal through a string with a
es r3

--- Content provided by FirstRanker.com ---

"C
loop. Also explain the concept of string slicing. (06 Marks)
,..
'1C e3
? t

--- Content provided by FirstRanker.com ---

0
.
OR
1?
?

--- Content provided by FirstRanker.com ---

..
Ci.
= , 4 a. With syntax and example code, explain the working of definite loop in python. (05 Marks)
c_
E

--- Content provided by FirstRanker.com ---

c?, ... b. Write a python program to concatenate and compare two strings. Read the strings from user.
0
,...
w
. g

--- Content provided by FirstRanker.com ---

(05 Marks)
7
-
-

--- Content provided by FirstRanker.com ---

3 8

C. Explain fileopen, fileclose, fileread and filewrite concepts in python with example. (06 Marks)
V: V.:
C ?v;

--- Content provided by FirstRanker.com ---

CZ v
Module-3
O,
? .-
5 a. 'What is a list? Explain the concept of list slicing and list traversing with example. (05 Marks)

--- Content provided by FirstRanker.com ---


ZA
b. Explain the concept of comparing tuples. Describe the working of sort function with python
.
0 g

--- Content provided by FirstRanker.com ---

a. 33
T, ?
code. (06 Marks)
P >
c. Write a python program to search for lines that start with 'F' followed by 2 characters,

--- Content provided by FirstRanker.com ---

o P
=
c
followed by 'm:'. (05 Marks)
.< 0

--- Content provided by FirstRanker.com ---

- es; OR
4> 6 a.
What is dictionary? How is it different from list? Write a python program to count
0
z occurrence of characters in a string and print the count. (06 Marks)

--- Content provided by FirstRanker.com ---

e, b. With an example program, illustrate how to pass function arguments to list. (05 Marks)
t
o
o.
c. Write a python program to search lines that start with 'X' followed by any non whitespace

--- Content provided by FirstRanker.com ---

E
O characters, followed by ':' ending with number. Display the sum of all these number.
(05 Marks)
a.
*

--- Content provided by FirstRanker.com ---

P
I Explain the salient features of python. (05 Marks)
b. Write a python program to calculate the area of square, rectangle and circle. Print the results.
=
Take input from user. (05 Marks)

--- Content provided by FirstRanker.com ---

-7:
-_,
c. What are user defined functions? How can we pass parameters in user defined functions?
1.-_.
Explain with suitable example. (06 Marks)

--- Content provided by FirstRanker.com ---

-
E., -c
,
,= 7?
OR

--- Content provided by FirstRanker.com ---

.,_
?
.
- =
? ? Lr'

--- Content provided by FirstRanker.com ---

2 a. Dqolain the concept of conditional execution alternate execution and chained conditions
el)
II
0 .e with suitable examples.
:E t

--- Content provided by FirstRanker.com ---

(06 Marks)
b. Write a python program to create a user defined function to find maximum and minimum
P. &
letter in string. Also find the length the string without using inbuilt function. (05 Marks)
O fr.

--- Content provided by FirstRanker.com ---

..= v c. Explain the concept of type conversion functions and math functions in python with
? E..
O i
r
examples. (05 Marks)

--- Content provided by FirstRanker.com ---

0
,,,
,,,
= =
Module-2

--- Content provided by FirstRanker.com ---

I of 2
15CS664
Module-4
7 a. Define class and object? What are programmer defined types? Explain with example.
(05 Marks)

--- Content provided by FirstRanker.com ---

b. Illustrate the concept of pure function with python code. (05 Marks)
c.
What is the difference between method and function? Explain the working of init method
with suitable code. (06 Marks)
?

--- Content provided by FirstRanker.com ---

OR
8 a. Define attribute'? With the help of python code, explain how functions return instance
values. (06 Marks)
b. Explain the concept of modifier with python code. (05 Marks)
c. What is type based dispatch? Illustrate with python example. (05 Marks)

--- Content provided by FirstRanker.com ---

Module-5
9 a. Define socket'? Writ a python program that makes a connection to a webserver and follows
the rules of HTTP protocol to request a plain test document and display what server send
back. (06 Mark*"
b. What is XML? How is it used is python? Explain parsing of XML with example. (05 Marks)

--- Content provided by FirstRanker.com ---

c. Define cursor? Explain connect, execute and close command of databases with suitable
example. (05 Marks)
OR
10 a. Write a python code to read the file from web using urelib and retrieve the data of the file.
Also compute the frequency of each word in the file. (06 Marks)

--- Content provided by FirstRanker.com ---

b. What is JSON? Illustrate the concept of parsing JSON python code. (05 Marks)
c. Explain the concept of using JOIN to retrieve data in python. (05 Marks)
2 of 2
FirstRanker.com - FirstRanker's Choice

--- Content provided by FirstRanker.com ---