Questions for Assignment Test


1.What is socket ? Explain how socket connection can be established to the internet using Python code over the TCP/IP connection and the http protocol to get the web document.
2.Explain the significance of XML over the web development. Illustrate with an example.

3.Write a note on Google Geocoding web service . Using Python supported libraries , demonstrate with a snippet code.
4.What is embedded SQL? Explain the importance of SQLite database . Write a Python code to establish a database connection to ‘EmpDb’ and display the total gross salary paid to the employees working in the “Quality Control department. Assume the employee table has been already created and exist in the “EmpDb”.The fields of Employee table are : ( EmpID, DepName, GrossSalary)



PYTHON SEMINAR TOPICS




PYTHON ASSIGNMENT : LAST DATE 25th APRIL 2019


ASSIGNMENT  2
Subject: Python Application Program
Subject Code: 15CS664
SEM: VI DIV: B

Type: Open book Written Assignment   
Dead Line:  Before April 25th 2019
Assignment Questions:

1. Define and Compare List, Dictionary and Tuples. Write the answer in the following format:

List
Dictionary
Tuple
Definition
Empty
Single element
Five Elements
Example for Accessing
2
   Explain with examples the different ways to create a list. Why lists are called Mutable. Discuss the following List operations and functions with examples: Traversing , Slicing , + (concatenation) ,   * (Repetition) , append , extend , sort , remove , delete , len , sum, min , max , split and join .

Differentiate between Key and value of the Dictionary element. Mention the properties of Key .  Discuss the following Dictionary operations and functions with examples: Accessing , Traversing using loop , Updating and  Deleting

Compare Tuple with list. Discuss the following tuple operations and functions with examples:  Accessing ,  Updating , Deleting , Traversing (Iteration) , Comparing , len ,(in) membership ,  + (concatenation) ,   * (Repetition) and DSU (Decorate , Sort and Undecorate ) pattern

Discuss the Tuple Assignment with example . Write a Python program to input two integers a  and  b , and swap those numbers . Print both input and swapped numbers

With example program illustrate how the Dictionary can be used to count the occurrence of words in a file.



Faculty In charge