Practical Slip 11 - 2019 Pattern

Core Java:

A) Write a menu driven java program using command line arguments for the following: 

1. Addition

2. Subtraction

3. Multiplication

4. Division.  [15 M]

B) Write an applet application to display Table lamp. The color of lamp should get

change randomly.  [25 M]


Python:

A) Write a Python program to compute element-wise sum of given tuples. 

Original lists: (1, 2, 3, 4) (3, 5, 2, 1) (2, 2, 3, 1) 

Element-wise sum of the said tuples: (6, 9, 8, 6)  [15 M]

B) Write Python GUI program to add menu bar with name of colors as options to change the background color as per selection from menu option.  [25 M]

Post a Comment

0 Comments