Practical Slip 9 - 2019 Pattern

Core Java:

A) Write a java Program to display following pattern:

1

0 1

0 1 0

1 0 1 0  [15 M]

B) Write a java program to validate PAN number and Mobile Number. If it is invalid then throw user defined Exception “Invalid Data”, otherwise display it.  [25 M]

Python:

A) Write a Python script using class to reverse a string word by word.  [15 M]

B) Write Python GUI program to accept a number n and check whether it is Prime, Perfect or Armstrong number or not. Specify three radio buttons.  [25 M]


Post a Comment

0 Comments