Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
35 views

10.assignment Python

pyhton assignment

Uploaded by

Er.Anju Bala
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views

10.assignment Python

pyhton assignment

Uploaded by

Er.Anju Bala
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Ahmedabad Institute of Technology

CE & IT Department

Python Programming (2180715)

Question- Answer Assignment

Assignment -1 (Write any 20 Questions out of 30) -20 Marks

1 What are the differences between C and Python? 7

2 Explain built-in datatypes of python. Which are the different types 7


of operators in python language? Explain membership and identity
operators with examples.
3 What is the difference between compiler and Interpreter? Explain 7
How python interpreter works.
4 Explain while loop & for loop with syntax and example in detail. 7

5 Explain Lists along with methods associated with lists and explain 7
mutability with respect to Lists.
6 Explain Tuples, Lists and Dictionaries with example and give 7
comment on mutability for each of them.
7 What is dictionary in Python? Explain any four built-in dictionary 7
methods with example.
8 Explain Tuples in Python with example. 7

9 Explain mutable and immutable data types with example in 7


python.
10 What is lambda function in python? Explain with an example. 7

11 Is String a mutable data type? Also explain the string operations 7


length, indexing and slicing in detail with an appropriate example.
12 Write a Python program that counts the number of occurrences of 7
the character in the given string. Provide two implementations:
recursive and iterative.
13 Create a Python program to read a text file and do following: 7
1. Print no. of lines
2. Print no. of unique words
3. Store each word with its occurrence in dictionary
14 Explain String functions with an example. 7

15 Explain Indexing and Slicing operation for the list with example in 7
python.
16 What is the difference between error and exception? Explain 7
exception handling in python with example.
17 What are bugs? Write about different types of bugs. What steps will 7
you perform to identify and remove the bugs in a python script?
18 What is testing? Explain Black box v/s glass box testing. 7

19 Write a Python program to overload + operator 7

20 Write a Python program to implement the concept of inheritance. 7

21 What are the differences between abstract class and interface? Write 7
a python program in which Maruti and Santro sub classes
implement the abstract methods of the super class Car.
22 Write a python program to implement linear search and binary 7
search.
23 Write a program for bubble sort and quicksort 7

24 Write a python program to create a plotting of years of 7


compounding v/s value of principal using pyplot library. Assume
reasonable values for principal, interest rate and years
25 What is socket? How to create a socket in python? Explain it with an 7
example.
26 How to implement threads in python? Explain any one method 7
using suitable example.
27 Write a Python GUI program to create three push buttons using 7
Tkinter. The background color of frame should be different when
different buttons are clicked. Write a python GUI program to
implement calculator using Tkinter library.
28 Write a program which draw square and hexagon using turtle.( 7

29 Explain encryption and decryption in Python using an example. 7

30 Explain Caesar cipher and Write a python program to implement 7


Caesar cipher.

Dr. Ajay N. Upadhayaya

HOD CE & IT Dept., AIT


Ahmedabad Institute of Technology

CE & IT Department

Python Programming (2180711)

Innovative Assignment (20 Marks)

Sr. Name of Course Platform Total No. of Weeks

No

1 Programming for Everybody (Getting Coursera 7 Weeks

Started with Python)

Dr. Ajay N. Upadhayaya

HOD CE & IT Dept., AIT

You might also like