Python Lab Test Pca1
Python Lab Test Pca1
Roll No. --- --- --- --- --- --- --- --- ---
1. Create a text box
Accept a string in the first text box
Accept a word in the second text box
Create a List box in python as follow
Heading : “String”
List Items : ADD, DELETE
Action : on Selection , the first text box will show the string with or without the word as selected
…………………………………………………………………………………………………………………
PYTHON II (PCCAIML492)
Time Allotted : 2 Hours Full Marks : 25
Distribution of Marks
Design 10, Program implementation 12, Result Analysis 3
Roll No. --- --- --- --- --- --- --- --- ---
2. Create two text boxes
Create a Combo box in python as follow
Heading : “Calculate”
List Items : ADD, SUBTRACT, MULTIPLY
Action : on Selection , the answer will be given accordingly for the data put in the text boxes
Add DIVISION to list with its function
………………………………………………………………………………………………………………….
PYTHON II (PCCAIML492)
Time Allotted : 2 Hours Full Marks : 25
Distribution of Marks
Design 10, Program implementation 12, Result Analysis 3
Roll No. --- --- --- --- --- --- --- --- ---
3 . a) Create a List Box with Option Red , Blue and Green
b) Show the selected colors / color
…………………………………………………………………………………………………………………
PYTHON II (PCCAIML492)
Time Allotted : 2 Hours Full Marks : 25
Distribution of Marks
Design 10, Program implementation 12, Result Analysis 3
Roll No. --- --- --- --- --- --- --- --- ---
4 . a) Accept 10 unique numbers from the user
b) Draw a pie chart with corresponding number in each segment
………………………………………………………………………………………………………………….
PYTHON II (PCCAIML492)
Time Allotted : 2 Hours Full Marks : 25
Distribution of Marks
Design 10, Program implementation 12, Result Analysis 3
Roll No. --- --- --- --- --- --- --- --- ---
5. a) Accept 8 numbers to create two lists having 4 numbers each
b) Create a bar chart from those two lists
……………………………………………………………………………………………………………….
PYTHON II (PCCAIML492)
Time Allotted : 2 Hours Full Marks : 25
Distribution of Marks
Design 10, Program implementation 12, Result Analysis 3
Roll No. --- --- --- --- --- --- --- --- ---
6. Create three text boxes
Accept a string in first text box.
Accept a word in second text box which is available in first string.
Write the third string in the third text box deleting the word from the first string
…………………………………………………………………………………………………………………
PYTHON II (PCCAIML492)
Time Allotted : 2 Hours Full Marks : 25
Distribution of Marks
Design 10, Program implementation 12, Result Analysis 3
Roll No. --- --- --- --- --- --- --- --- ---
7. Create three text boxes
Accept a string in first text box.
In second text box show reverse of the string
In third text box show number of vowels in the string
………………………………………………………………………………………………………………….
PYTHON II (PCCAIML492)
Time Allotted : 2 Hours Full Marks : 25
Distribution of Marks
Design 10, Program implementation 12, Result Analysis 3
Roll No. --- --- --- --- --- --- --- --- ---
8 . a) Accept four values for X and Y each
b) Draw a line graph using those values
…………………………………………………………………………………………………………………