Practical Slip 18 - 2019 Pattern

Core Java:

A) Write a Java program to calculate area of Circle, Triangle & Rectangle.(Use Method Overloading)  [15 M]

B) Write a java program to copy the data from one file into another file, while copying change the case of characters in target file and replaces all digits by ‘*’ symbol.  [25 M]


Python:

A) Create a list a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89] and write a python program that prints out all the elements of the list that are less than 5.  [15 M]

B) Write a python script to define the class person having members name, address. Create a subclass called Employee with members staffed salary. Create 'n' objects of the Employee class and display all the details of the employee. [25 M]

Post a Comment

0 Comments