Practical Slip 21 - 2019 Pattern

Core Java:

A) Write a java program to display each word from a file in reverse order.   [15 M]

B) Create a hashtable containing city name & STD code. Display the details of the hashtable. Also search for a specific city and display STD code of that city. [25 M]


Python:

A) Define a class named Rectangle which can be constructed by a length and width. The Rectangle class has a method which can compute the area and Perimeter.  [15 M]

B) Write a Python program to convert a tuple of string values to a tuple of integer values. 

Original tuple values: (('333', '33'), ('1416', '55'))

New tuple values: ((333, 33), (1416, 55)) [25 M]

Post a Comment

0 Comments