Test Index
CBSE Class 12 Computer Science 2024 Paper Set 4
© examsnet.com
Question : 35 of 35
Marks:
+1,
-0
(A) (i) Define cartesian product with respect to RDBMS.(ii) Sunil wants to write a program in Python to update the quantity to 20 of the records whose item code is 111 in the table named
shop in MySQL database named Keeper.The table shop in MySQL contains the following attributes :• Item_code : Item code (Integer)• Item_name : Name of item (String)• Qty : Quantity of item (Integer)• Price : Price of item (Integer)Consider the following to establish connectivity between Python and MySQL :• Username : admin• Password : Shopping• Host : localhostOR(B) (i) Give any two features of SQL.(ii) Sumit wants to write a code in Python to display all the details of the passengers from the table flight in MySQL database, Travel. The table contains the following attributes :F_code : Flight code (String)F_name : Name of flight (String)Source : Departure city of flight (String)Destination : Destination city of flight (String)Consider the following to establish connectivity between Python and MySQL :• Username : root• Password : airplane• Host : localhost
Go to Question: