PYTHON

TYBCA SLIP PYTHON



SLIP 1 




SLIP 2


Sample String: 'The quick Brown Fox' 
Expected Output: 
No. of Upper case characters: 3
No. of Lower case characters: 13


SLIP  3




SLIP 4




SLIP 5




SLIP 6



B) Write a Python GUI program to create a label and change the label font style (font name, bold, size). Specify separate check button for each style.

SLIP 7




SLIP 8




SLIP 9




SLIP 10



B) Write a Python class to find validity of a string of parentheses, '(', ')', '{', '}', '[' ']’. These brackets must be close in the correct order. for example "()" and "()[]{}" are valid but "[)", "({[)]" and "{{{" are invalid.

SLIP 11


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)


SLIP 12



            Sample string: 'thequickbrownfoxjumpsoverthelazydog'
            Expected output: o-4, e-3, u-2, h-2, r-2, t-2 

SLIP 13



 

SLIP 14




SLIP 15



 

SLIP 16



B) Write Python GUI program to add items in listbox widget and to print and delete the selected items from listbox on button click. Provide three separate buttons to add, print and delete

SLIP 17



B) Define a class Date (Day, Month, Year) with functions to accept and display it. Accept date from user. Throw user defined exception “invalid Date Exception” if the date is invalid

SLIP 18




SLIP 19


 
B) Define a class named Shape and its subclass(Square/ Circle). The subclass has an init function which takes an argument (Lenght/redious). Both classes should have methods to calculate area and volume of a given shape. 

SLIP 20


 
Sample Dictionary (n=5) Expected Output: {1:1, 2:4, 3:9, 4:16, 5:25}

SLIP 21



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

SLIP 22


A) Write a python class to accept a string and number n from user and display n repetition of strings by overloading * operator.


SLIP 23

A) Write a Python GUI program to create a label and change the label font style (font name, bold, size) using tkinter module.

B) Create a class circles having members radius. Use operator overloading to add the radius of two circle objects. Also display the area of circle. 

SLIP 24




SLIP 25


Sample String : 'The quick Brow Fox'
Expected Output :
No. of Upper case characters : 3
No. of Lower case Characters : 12

 



SLIP 30






✌GOOD LUCK AND BE FREE TO ASK HELP✌

No comments:

Post a Comment

Write a Java program to display given extension files from a specific directory on server machine.

 DOWNLOAD     SLIP14Q2 /** * STEPS TO RUN CODE * Step 01 compile the code * Step 02 run the code * Step 03 give a file directory locatio...