New ! Computer Science MCQ Practise Tests



Data Manipulation Through SQL Three and Five Marks Questions

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 00:45:00 Hrs
Total Marks : 40
    5 x 3 = 15
  1. What is SQLite?What is it advantage?

  2. Mention the difference between fetchone() and fetchmany()

  3. What is the use of Where Clause.Give a python statement Using the where clause.

  4. Read the following details. Based on that write a python script to display department wise records
    database name:- organization.db
    Table name:- Employee
    Columns in the table:- Eno, EmpName, Esal, Dept

  5. Read the following details.Based on that write a python script to display records in desending order of
    Eno
    database name :- organization.db
    Table name :- Employee
    Columns in the table :- Eno, EmpName, Esal, Dept

  6. 5 x 5 = 25
  7. Write in brief about SQLite and the steps used to use it.

  8. Write the Python script to display all the records of the following table using fetchmany()

    Icode ItemName Rate
    1003 Scanner 10500
    1004 Speaker 3000
    1005 Printer 8000
    1008 Monitor 15000
    1010 Mouse 700
  9. hat is the use of HAVING clause. Give an example python script

  10. Write a Python script to create a table called ITEM with following specification.
    Add one record to the table.
    Name of the database :- ABC
    Name of the table :- Item
    Column name and specification :-

    I code :- Integer and act as primary key
    Item Name :- Character with length 25
    Rate :- Integer
    Record to be added :- 1008, Monitor, 15000
  11. Consider the following table Supplier and item .Write a python script for (i) to (ii)

    SUPPLIER
    Suppno Name City Icode SuppQty
    S001 Prasad Delhi 1008 100
    S002 Anu Bangalore 1010 200
    S003 Shahid Bangalore 1008 175
    S004 Akila Hydrabad 1005 195
    S005 Girish Hydrabad 1003 25
    S006 Shylaja Chennai 1008 180
    S007 Lavanya Mumbai 1005 325

    i) Display Name, City and Itemname of suppliers who do not reside in Delhi.
    ii) Increment the SuppQty of Akila by 40

*****************************************

Reviews & Comments about 12th Computer Science - Data Manipulation Through SQL Three and Five Marks Questions

Write your Comment