Practical Slip 3 - 2019 Pattern

 Core Java:

A) Write a ‘java’ program to check whether given number is Armstrong or not. (Use static keyword)  [15 M]

B) Define an abstract class Shape with abstract methods area () and volume (). Derive abstract class Shape into two classes Cone and Cylinder. Write a java Program to calculate area and volume of Cone and Cylinder.(Use Super Keyword.)  [25 M]

Python:

A) Write a Python program to check if a given key already exists in a dictionary. If key exists replace with another key/value pair.    [15 M]

B) Write a python script to define a class student having members roll no, name, age, gender. Create a subclass called Test with member marks of 3 subjects. Create three objects of the Test class and display all the details of the student with total marks. [25 M]

Post a Comment

0 Comments