You are on page 1of 14

SCHOOL OF COMPUTING

DEPARTMENT OF CSE
VTU R15 B.TECH – CSE
WINTER 2020-21
ASSIGNMENT II
Slot: S9 Course Category: PE
Course code & Title: 1152CS119 & Python Programming Faculty Name: Dr.T.Veeramakali
Course Coordinator :Mrs.Usha
Vlearn Posted Date:27.4.21 Last Date for Submission: 18.5.21

CO’s COURSE OUTCOME K LEVEL


CO3 Describe Object oriented concepts with python K2
CO4 Use image processing techniques in python programming to solve a K3
given problem
CO5 Discuss the functions of networking in python K3
S.N Group No.
VTU No. Student Name Question No.
o
vtu1097
1 9 NADAM VIJAY
vtu1109
Group 1 1,2,3
2 4 PARUCHURI PAVAN KUMAR
vtu1110
3 5 SUDDAPALLI NITISH VARMA
vtu1113
4 5 KURMA BALA SAI SONU
vtu1114
Group 2 4,5,6
5 0 P CHINNI NAGA VINAY
vtu1118
6 8 SABARINATHAN A
vtu1119
7 1 SANJAY V
vtu1123
Group 3 7,8,9
8 3 SUDHARSEN L
vtu1124
9 7 R J NAVEEN KUMAR
vtu1155
10 2 NARAPAREDDY NAGA VIGNESHWAR
vtu1181
Group 4 10,11,12
11 2 GOUTAM INDUGU
vtu1186
12 7 BODDU ABHIGHA
vtu1234
13 3 JAVVAJI PAVAN KALYAN
vtu1249
Group 5 13,14,15
14 0 V JASHWANTH KUMAR REDDY
vtu1252
15 5 BUSIREDDY ABHILASH
vtu1252
16 7 MATTAM ROHITH KUMAR
vtu1261
Group 6 16,17,18
17 9 KOTRIKE SRINIVASA RATHNAKAR
vtu1262
18 7 T.SEETHA RAMANJEYULU
vtu1264
19 2 SURI SETTY TARUN KUMAR
vtu1270
Group 7 19,20,21
20 4 KANAKANTI MANOHAR REDDY
vtu1277
21 5 TULA BALAJI RAIMAJI
vtu1281
22 8 KAMMARA HARINATH ACHARI
vtu1289
Group 8 22,23,24
23 5 NALLAMALLA VENKATA JYOTHIRMAI
vtu1298
24 4 PULAGAM JYOTHI BHARGAVI
Question K
vtu1313
Questions
No. CO Level
25 7 M. RAAKESH
1. Definevtu1324
a Shape, Circle, Rectangle, Square Classes, add draw CO3 K2
methods
26 7 then instantiate its object as mentioned inGroup
SIMRAN KUMARI the 9 25,26,27
diagram and Write the python program to showcase the
vtu1333
polymorphism
27 8 concept.
SHAIK SHAMEER
vtu1362
28 6 SUBASH NEUPANE
vtu1444
Group 10 28,29,30
29 8 AKSHAY SURESH
vtu1447
Imagine a robotic turtle starting at (0, 0) in the x-y plane. After CO4 K3
an import turtle, give it the command turtle.forward(), and it moves
(on-screen!), Implement the drawing using python turtle

2.

Implement the python program for passing the Dropdown box data CO5 K3
3.
to CGI program
Consider a Vehicle base-class and car, plane, boat, race car CO3 K2
sub-class, add some attributes and methods then
instantiating its object with different values as mentioned in
the diagram. write the python program.

4.

Imagine a robotic turtle starting at (0, 0) in the x-y plane. After CO4 K3
an import turtle, give it the command turtle.forward(), and it moves
(on-screen!), Implement the drawing, random square using python
turtle

5.

Implement the python program for passing the checkbox data to CO5 K3
6.
CGI program
7. Define a Grandpa, Father and Child Classes, add some CO3 K2
attributes and methods then instantiating its object with
different values as mentioned in the diagram and Write the
python program.

Imagine a robotic turtle starting at (0, 0) in the x-y plane. After CO4 K3
an import turtle, give it the command turtle.forward(), and it moves
(on-screen!), Implement the drawing, line of filled square getting
bigger using python turtle
8.

Implement the python program for passing the Radio Button data to CO5 K3
9.
CGI program
Consider, Students are admitted in an engineering college based on CO3 K2
their marks scored in an Entrance exam and Public exam. A student
is identified by student id, name, age and marks in entrance exam
and public exam marks (mathematics, physics and chemistry). Data
are valid, if:
Age is greater than 17
Marks is between 0 and 100 (both inclusive)
10.
A student qualifies for admission, if
Age and marks are valid and
Marks are 65 or more
Implement python program using setter and getter methods
to represent the students seeking admission in that
university.

11. A function f is defined as follows F(n)= (1) +(2*3) + (4*5*6) ... n. CO4 K3


Given an integer n the task is to print the F(n)th term.
Input:
The first line of input contains an integer T denoting the number of
test cases. Then T test cases follow. Each test contains an integer n.
Output:
For each test case print the nth term of the sequence. .
Constraints:
1<=T<=100
1<=N<=10
Example:
Input:
2
5
7
Output:
365527
6006997207
Implement the python code to run html based queries. CO5 K3
12.
Write a Python class named Rectangle constructed by a length and CO3 K2
width and a method which will compute the area of a rectangle. 

13.

Imagine a robotic turtle starting at (0, 0) in the x-y plane. After CO4 K3
an import turtle, give it the command turtle.forward(), and it moves
(on-screen!), Implement the drawing, rotated filled square using
python turtle

14.

Implement the python program to display hostname and IP CO5 K3


15.
address.
Write a Python class which has two methods get_String and CO3 K2
print_String. get_String accept a string from the user and
16.
print_String print the string in upper case. 

Imagine a robotic turtle starting at (0, 0) in the x-y plane. After CO4 K3
an import turtle, give it the command turtle.forward(), and it moves
(on-screen!), Implement the drawing using python turtle

17.

Implement the python code for MultiThreaded priority queue. CO5 K3


18.
Samsung will use the function of multiple Phone(Mobile & CO3 K2
Telephone). This would create a confusion for complier to
understand which function to be called when any event in mobile is
triggered like Dial () where Dial is available in both the Phone i.e. -
(Mobile & Telephone).
I mean to say, Dial would remain Dial in case of Mobile or
Telephone. It won't be fair if we give different name when its task is
to Call the person.

19.

A function f is defined as follows F(n)= (1) +(2*3) + (4*5*6) ... n. CO4 K3


Given an integer n the task is to print the F(n)th term.
Input:
The first line of input contains an integer T denoting the number of
test cases. Then T test cases follow. Each test contains an integer n.
Output:
For each test case print the nth term of the sequence. .
Constraints:
1<=T<=100
20.
1<=N<=10
Example:
Input:
2
5
7
Output:
365527
6006997207
21. Implement the client server programming in a network CO5 K3
environment using python.
Data Abstraction refers to the act of representing important and CO3 K2
special features without including the background details or
explanation about that feature. Data abstraction simplifies database
design. Implement the concept using python programming.

22.

23. Imagine a robotic turtle starting at (0, 0) in the x-y plane. After CO4 K3
an import turtle, give it the command turtle.forward(), and it moves
(on-screen!) 15 pixels in the direction it is facing, drawing a line as
it moves. Give it the command turtle.right(), and it rotates clockwise
(Scenario)
Implement the python code to interact with remote HTML server. CO5 K3
24.
Implement the concept of polymorphism for the below image. CO3 K2

25.

Imagine a robotic turtle starting at (0, 0) in the x-y plane. After CO4 K3
an import turtle, give it the command turtle.forward(), and it moves
(on-screen!)

26.

Implement the drawing using python turtle

Implement the python code to run html based queries. CO5 K3


27.
28. Identify the type of inheritance and implement the identified CO3 K2
inheritance concept for the below image with python coding
Given an array of positive numbers, find the maximum sum of a CO4 K3
subsequence with the constraint that no 2 numbers in the sequence
should be adjacent in the array. So 3 2 7 10 should return 13 (sum
of 3 and 10) or 3 2 5 10 7 should return 15 (sum of 3, 5 and
7).Answer the question in most efficient way.
Examples :
Input : arr[] = {5, 5, 10, 100, 10, 5}
29.
Output : 110
Input : arr[] = {1, 2, 3}
Output : 4
Input : arr[] = {1, 20, 3}
Output : 20
Implement the python code for CGI programming. CO5 K3

30.

31. Implement the concept of inheritance and polymorphism for the CO3 K2
below image with python coding
32. We add a Leap Day on February 29, almost every four years. The CO4 K3
leap day is an extra, or intercalary day and we add it to the shortest
month of the year, February.
In the Gregorian calendar three criteria must be taken into account
to identify leap years:
 The year can be evenly divided by 4, is a leap year, unless:
o The year can be evenly divided by 100, it is NOT a
leap year, unless:
 The year is also evenly divisible by 400. Then
it is a leap year.
This means that in the Gregorian calendar, the years 2000 and 2400
are leap years, while 1800, 1900, 2100, 2200, 2300 and 2500 are
NOT leap years.
Task
You are given the year, and you have to write a function to check if
the year is leap or not.
Note that you have to complete the function and remaining code is
given as template.
Input Format
Read y, the year that needs to be checked.
Constraints
1900<=y<=105
Output Format
Output is taken care of by the template. Your function must return a
boolean value (True/False)
Sample Input 0
1990
Sample Output 0
False
Explanation 0
1990 is not a multiple of 4 hence it's not a leap year.

Implement the python code for simple CGI form CO5 K3


33.
Implement the concept of inheritance and polymorphism for the CO3 K2
below image with python coding

34.

Given an array of positive numbers, find the maximum sum of a CO4 K3


subsequence with the constraint that no 2 numbers in the sequence
should be adjacent in the array. So 3 2 7 10 should return 13 (sum
of 3 and 10) or 3 2 5 10 7 should return 15 (sum of 3, 5 and
7).Answer the question in most efficient way.
Examples :
Input : arr[] = {5, 5, 10, 100, 10, 5}
35.
Output : 110
Input : arr[] = {1, 2, 3}
Output : 4
Input : arr[] = {1, 20, 3}

Output : 20
Implement the python code to run html based queries. CO5 K3
36.
Implement the concept of inheritance and polymorphism for the CO3 K2
below image with python coding

37.

38. Given an array of positive numbers, find the maximum sum of a CO4 K3
subsequence with the constraint that no 2 numbers in the sequence
should be adjacent in the array. So 3 2 7 10 should return 13 (sum
of 3 and 10) or 3 2 5 10 7 should return 15 (sum of 3, 5 and
7).Answer the question in most efficient way.
Examples :
Input : arr[] = {5, 5, 10, 100, 10, 5}
Output : 110
Input : arr[] = {1, 2, 3}
Output : 4
Input : arr[] = {1, 20, 3}

Output : 20
Implement the python code to run html based queries. CO5 K3
39.
Identify the type of inheritance and implement the identified CO3 K2
inheritance concept for the below image with python coding

40.

41. We add a Leap Day on February 29, almost every four years. The CO4 K3
leap day is an extra, or intercalary day and we add it to the shortest
month of the year, February.
In the Gregorian calendar three criteria must be taken into account
to identify leap years:
 The year can be evenly divided by 4, is a leap year, unless:
o The year can be evenly divided by 100, it is NOT a
leap year, unless:
 The year is also evenly divisible by 400. Then
it is a leap year.
This means that in the Gregorian calendar, the years 2000 and 2400
are leap years, while 1800, 1900, 2100, 2200, 2300 and 2500 are
NOT leap years.
Task
You are given the year, and you have to write a function to check if
the year is leap or not.
Note that you have to complete the function and remaining code is
given as template.
Input Format
Read y, the year that needs to be checked.
Constraints
1900<=y<=105
Output Format
Output is taken care of by the template. Your function must return a
boolean value (True/False)
Sample Input 0
1990
Sample Output 0
False
Explanation 0
1990 is not a multiple of 4 hence it's not a leap year.

Implement the python code for simple CGI form CO5 K3


42.
Consider School_bus, bus, Vehicle class, with max_speed and CO3 K2
mileage instance attributes, seeting_capacity and print bus_fees for
the school student, if 1st to 10th standard, Rs.1000 per month and if
43.
11th and 12th standard, Rs. 1500 per month. Write a pthon program
using inheritance.

Imagine a robotic turtle starting at (0, 0) in the x-y plane. After CO4 K3
an import turtle, give it the command turtle.forward(), and it moves
(on-screen!), Implement the drawing using python turtle

44.

Create a web page with the following using HTML CO5 K3


a. To embed a map in a web page
45.
b. To fix the hot spots in that map
c. Show all the related information when the hot spots are clicked.
Define a Car, SUV, Roadster classes and add attributes and CO3 K2
methods as mentioned in the diagram then instantiate its
object and Write the python program to showcase the
polymorphism with inheritance concept.

46.

47. Imagine a robotic turtle starting at (0, 0) in the x-y plane. After CO4 K3
an import turtle, give it the command turtle.forward(), and it moves
(on-screen!), Implement the drawing using python turtle
Implement the python program for downloading a file CO5 K3
48.
Define a class for operator overloading and use magic methods to CO3 K2
do addition operation on complex number.
49.

Imagine a robotic turtle starting at (0, 0) in the x-y plane. After CO4 K3
an import turtle, give it the command turtle.forward(), and it moves
(on-screen!), Implement the drawing using python turtle

50.

Implement the python program to display hostname and IP CO5 K3


51.
address.

Course Handling Faculty Course Coordinator

You might also like