Visit:: Join Telegram To Get Instant Updates: Contact: MAIL: Instagram: Instagram: Whatsapp Share
Visit:: Join Telegram To Get Instant Updates: Contact: MAIL: Instagram: Instagram: Whatsapp Share
io
INSTAGRAM: www.instagram.com/hemanthraj_hemu/
INSTAGRAM: www.instagram.com/futurevisionbie/
io
Time: 3 hrs. Max. Marks: 80
b.
Note: Answer any FIVEfull questions, choosing ONEfull question from each module.
Module-1
2. Any revealing of identification, appeal to evaluator and /or equations written eg, 42+8 50, will be treated as malpractice.
u
1 a. 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.
th
Take input from user. ; (05 Marks)
c. What are user defined functions? How can we pass parameters in user defined functions?
Explain with suitable example. (06 Marks)
gi
Important Note : |. On completing your answers, compulsorily drawdiagonal cross lines on the remaining blank pages.
OR
u.
2 a. Explain the concept of conditional execution alternate execution and chained conditions
with suitable examples. (06 Marks)
m
b. Write a pythonprogramto create a user defined function to find maximum and minimum
letter in string. Also find the length the strmg without using inbuilt function. (05 Marks)
c. Explain the concept of type conversion functions and math functions in python with
he
examples. (05 Marks)
- Module-2
aj
3 a. Explain the working of while loop in python with suitable example. (05 Marks)
b. Write a python program to demonstrate counting, summing and average of elements using
loops. ‘ (05 Marks)
hr
c. What is a string? Write a python program to demonstrate traversal through a string with a
loop. Also explain the conceptof string slicing. (06 Marks)
t
OR
an
4 a. With syntax and example code,explain the workingof definite loop in python. (05 Marks)
b. Write a python program to concatenate and compare twostrings. Read the strings from user.
~ i (05 Marks)
m
c. Explain fileopen,fileclose, fileread and filewrite concepts in python with example. (06 Marks)
% Module-3
he
5 a. Whatis a list? Explain the concept of list slicing and list traversing with example. (05 Marks)
b. Explain the concept of comparing tuples. Describe the working of sort function with python
code. (06 Marks)
//
c. Write a python program to search for lines that start with ‘F’ followed by 2 characters,
s:
6 a. What is dictionary? How is it different from list? Write a python program to count
occurrence of characters in a string and print the count. (06 Marks)
b. With an example program,illustrate how to pass function argumentstolist. (05 Marks)
ht
c. Write a python program to search lines that start with ‘X’ followed by any non whitespace
characters, followed by ‘:’ ending with number. Display the sum of all these number.
(05 Marks)
| of 2
https://hemanthrajhemu.github.io
15CS664
Module-4 he
Define class and object? What are programmerdefined types? Explain with example.
(05 Marks)
Illustrate the concept of pure function with pythoncode. (05 Marks)
io
Whatis the difference between method and function? Explain the working of init method
with suitable code. (06 Marks)
b.
OR
Define attribute? With the help of python code, explain how functions return instance
u
values. (06 Marks)
th
Explain the concept of modifier with python code. (05 Marks)
Whatis type based dispatch? Illustrate with python example. (05 Marks)
gi
Module-5
a. Define socket? Writ a python program that makes a connection to a webserver and follows
u.
the rules of HTTP protocol to request a plain test document and display what server sends
back. (06 Marks)
Whatis XML? Howisit used is python? Explain parsing of XML with example. (05 Marks)
m
Define cursor? Explain connect, execute and close command of databases with suitable
example. (05 Marks)
he
OR
10 Write a python code to read the file from web using urelib and retrieve the data of the file.
aj
7 OK CK OK
t
an
m
// he
s:
tp
2612
ht
https://hemanthrajhemu.github.io