XII CS Term2 Model10
XII CS Term2 Model10
General Instructions
Section -A
Each question carries 2 marks
Q. Question Marks
No
1. Give any two characteristics of Queue. (2)
(ii) Out of the following, which is the fastest wired and wireless mediumof (1)
transmission?
3. Differentiate between int and date data types with respect to databases. (2)
4. A result set is extracted from the database using the cursor object (that has (2)
been already created) by giving the following statement.
Mydata=cursor.fetchone()
Table: Grocery
ID NAME DATEOFPURCHASE COST DISCOUNT
TD01 Daal 03-Jan-2022 1500 10
R10 Rice 10-Mar-2021 1200 5
MD04 Moong 01-Dec-2021 800 0
Daal
M03 Maida 07-Dec-2021 500 3
Give one point of difference between an equi-join and a natural join. (1)
For Example:
If the sample Content of the list is as follows:
N=[12, 13, 34, 56, 21, 79, 98, 22, 35, 38]
9. (i) A table, Employee has been created in a database with the (1)
following fields:
EmployeeID, NAME, Age, Salary
Give the SQL command to add a new field, Increment (of typeInteger)
to the Employee table.
(ii) Categorize following commands into DDL and DML commands? (2)
Section C
Each question carries 4 marks
11. (i) Give two advantages and two disadvantages of star topology (2)
Table: stock
Pid PName Category Qty Price
1 Keyboard IO 15 450
2 Mouse IO 10 350
3 Wifi-router NW 5 2600
4 Switch NW 3 3000
5 Monitor O 10 4500
6 Printer O 4 17000