Practical Slip 5 - 2019 Pattern

 Core Java:

A) Write a java program to display following pattern:

5

4 5

3 4 5

2 3 4 5

1 2 3 4 5     [15 M]

B) Write a java program to accept list of file names through command line. Delete the files having extension .txt. Display name, location and size of remaining files. [25 M]

Python:

A) Write a Python script using class, which has two methods get_String and print_String. get_String accept a string from the user and print_String print the string in upper case.   [15 M]

B) Write a python script to generate Fibonacci terms using generator function.  [25 M]


Post a Comment

0 Comments