| ||||||||
|
Python Weekly Issue 427
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 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 .
3 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
4 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
5 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
6 With example program illustrate how
the Dictionary can be used to count the occurrence of words in a file.
Faculty In charge
Why Should you learn Programming ( to write Programs) ?
- It is Creative and Rewarding Activity. (Programming Skills + Power of Imagination = Creativity )
- It teaches how to think
- It is used to solve Realtime Problems
- To create Website , Mobile Apps and Desktop Apps
- To digitize our Ideas ( To express our ideas digitally)
- It can scale its problem solving capabilities .
- No shortage of Jobs in Programming
- To create user interface to interact with machines.
- To design Games
- To earn Money
- To perform Data Analysis
- A programmer will subconsciously pick up problem Solving skills
Python Features
- Python is Interpreted
- Python is Interactive
- Python is Object-Oriented
- Python is a Beginner's Language
- Easy-to-learn
- Easy-to-read
- Easy-to-maintain
- A broad standard library
- Interactive Mode
- Portable
- Extendable
- Databases
- GUI Programming
- Scalable
- Supports functional and structured programming methods as well as OOP.
- Can be used as a scripting language
- Provides very high-level dynamic data types and supports dynamic type checking.
- Supports automatic garbage collection.
- Can be easily integrated with C, C++, COM, ActiveX, CORBA, and Java.
Subscribe to:
Posts (Atom)


