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

15CS664
USN
Sixth Semester B.E. Degree Examination, Dec.2614/3an. 2
Python Application Programming
Time: 3 hrs. Max. Marks: 80
Note: Answer any FIVE full questions, choosing ONE full question front each module.
Module-I
o
-,- ;
=
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
Tz 3
=
O -0 loops. (05 Marks)
el) C
L
?
?*
c. What is a string? Write a python program to demonstrate traversal through a string with a
es r3
"C
loop. Also explain the concept of string slicing. (06 Marks)
,..
'1C e3
? t
0
.
OR
1?
?
..
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.
0
,...
w
. g
(05 Marks)
7
-
-

3 8

C. Explain fileopen, fileclose, fileread and filewrite concepts in python with example. (06 Marks)
V: V.:
C ?v;
CZ v
Module-3
O,
? .-
5 a. 'What is a list? Explain the concept of list slicing and list traversing with example. (05 Marks)

ZA
b. Explain the concept of comparing tuples. Describe the working of sort function with python
.
0 g
a. 33
T, ?
code. (06 Marks)
P >
c. Write a python program to search for lines that start with 'F' followed by 2 characters,
o P
=
c
followed by 'm:'. (05 Marks)
.< 0
- 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)
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
E
O characters, followed by ':' ending with number. Display the sum of all these number.
(05 Marks)
a.
*
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)
-7:
-_,
c. What are user defined functions? How can we pass parameters in user defined functions?
1.-_.
Explain with suitable example. (06 Marks)
-
E., -c
,
,= 7?
OR
.,_
?
.
- =
?? ? Lr'
2 a. Dqolain the concept of conditional execution alternate execution and chained conditions
el)
II
0 .e with suitable examples.
:E t
(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.
..= v c. Explain the concept of type conversion functions and math functions in python with
? E..
O i
r
examples. (05 Marks)
0
,,,
,,,
= =
Module-2
I of 2
FirstRanker.com - FirstRanker's Choice
15CS664
USN
Sixth Semester B.E. Degree Examination, Dec.2614/3an. 2
Python Application Programming
Time: 3 hrs. Max. Marks: 80
Note: Answer any FIVE full questions, choosing ONE full question front each module.
Module-I
o
-,- ;
=
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
Tz 3
=
O -0 loops. (05 Marks)
el) C
L
?
?*
c. What is a string? Write a python program to demonstrate traversal through a string with a
es r3
"C
loop. Also explain the concept of string slicing. (06 Marks)
,..
'1C e3
? t
0
.
OR
1?
?
..
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.
0
,...
w
. g
(05 Marks)
7
-
-

3 8

C. Explain fileopen, fileclose, fileread and filewrite concepts in python with example. (06 Marks)
V: V.:
C ?v;
CZ v
Module-3
O,
? .-
5 a. 'What is a list? Explain the concept of list slicing and list traversing with example. (05 Marks)

ZA
b. Explain the concept of comparing tuples. Describe the working of sort function with python
.
0 g
a. 33
T, ?
code. (06 Marks)
P >
c. Write a python program to search for lines that start with 'F' followed by 2 characters,
o P
=
c
followed by 'm:'. (05 Marks)
.< 0
- 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)
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
E
O characters, followed by ':' ending with number. Display the sum of all these number.
(05 Marks)
a.
*
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)
-7:
-_,
c. What are user defined functions? How can we pass parameters in user defined functions?
1.-_.
Explain with suitable example. (06 Marks)
-
E., -c
,
,= 7?
OR
.,_
?
.
- =
?? ? Lr'
2 a. Dqolain the concept of conditional execution alternate execution and chained conditions
el)
II
0 .e with suitable examples.
:E t
(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.
..= v c. Explain the concept of type conversion functions and math functions in python with
? E..
O i
r
examples. (05 Marks)
0
,,,
,,,
= =
Module-2
I of 2
15CS664
Module-4
7 a. Define class and object? What are programmer defined types? Explain with example.
(05 Marks)
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)
?
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)
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)
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)
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

This post was last modified on 02 March 2020