IP Practice Questions
IP Practice Questions
2. Write a Python code to get the following bar chart. Save the chart in png format.
Bharti a class XII (IP) student has to fill in the blanks in Python programs that generate a bar chart. This
bar chart calculates subject wise result analysis.
4. Write a Python code to get the following line chart. Save the chart in png format.
Bharti a class XII (IP) student has to fill in the blanks in Python programs that generate a line chart. This
line chart display day wise temperature of Delhi.
i) To show all information of those clothes whose color either Gray or Blue.
ii) To list cloth name and price ascending order of price Name start with ‘T’.
iii) Write a query to display size-wise number of clothes.
iv) Write a query to set price as Rs 999 for CCode C003
v) Rename column DOP to Date_of_Purch date.
vi) Write SQL command to add primary key using alter table.
SELECT * FROM CLOTHS WHERE COLOR IN (‘GREY’,’BLUE’);
SELECT CNAME,PRICE FROM CLOTHS WHERE CNAME LIKE ‘T%’ ORDER BY PRICE;
SELECT SIZE,COUNT(*) FROM CLOTHS GROUP BY TYPE;
UPDATE CLOTHS SET PRICE=999 WHERE CCODE=’C003’;
ALTER TABLE CLOTHS CHANGE DOP Date_of_Purch date;
ALTER TABLE CLOTHS ADD PRIMARY KEY(CCODE);
6. Create table and Write SQL commands on the basis of given table BOOKING