XIIComp SC PT3451
XIIComp SC PT3451
XIIComp SC PT3451
SECTION – A
Each question carries one mark
1. Expand: a) PPP b) VoIP 1
3. ………… command is used to modify the attribute data type or size in a table 1
structure.
4. What is the data type of the result set extracted from the database using 1
the cursor object when we use the following methods?
a) fetchone() b) fetchall()
5. To include integrity constraint in an existing relation, we should use …………… 1
statement.
9. ______ command is used to remove primary key from the table in SQL. 1
12. Which of the following commands will delete the table from MYSQL 1
database?
(a) DELETE TABLE (b) DROP TABLE (c) REMOVE TABLE (d) ALTER TABLE
13. _________ is a non-key attribute, whose values are derived from the 1
primary key of some other table.
(a) Primary Key (b) Foreign Key (c) Candidate Key(d) Alternate key
14. The SELECT statement when combined with __________ clause, returns 1
records without repetition.
16. Which function is used to display the total number of records from table in a 1
database?
(a) Both A and R are true and R is the correct explanation for A
(b) Both A and R are true and R is not the correct explanation for A
17. Assertion: create, delete and alter commands are DDL commands 1
18. Assertion: Aggregate functions take multiple values as input and product 1
single output
SECTION – B
19. Write two points of difference between Circuit Switching and Packet 2
Switching.
23. Differentiate between count () and count (*) functions in SQL with 2
appropriate example.
25. A resultset is extracted from the database using the cursor object (that has 2
been already created) by giving the following statement.
Mydata=cursor.fetchone()
(b) What will be the datatype of Mydata object after the given command is
executed?
SECTION – C
26. Charu has to create a database named MYEARTH in MYSQL. She now needs (3)
to create a table named CITY in the database to store the records of various
cities across the globe. The table CITY has the following structure:
Table: CITY
SIZE INTEGER
AVGTEMP INTEGER
POLLUTIONRATE INTEGER
POPULATION INTEGER
27. (a) Consider the following tables – Bank_Account and Branch: 1+2
Table: Bank_Account
Table: Branch
Acode City
A01 Delhi
A02 Mumbai
A01 Nagpur
(b) Write the output of the queries (i) to (iv) based on the table,
TECH_COURSE given below:
Table: TECH_COURSE
Emp_name varchar 20
age int
dob date
aadhar int
designation varchar 20
Salary int
30. Consider the below table Movie write down the query (a) to (c) 3
SECTION – D
Block Distance
Number of computers
App development 75
Web designing 50
Movie editing 80
32. Sri Vijay Group of institution is planning to start their schools in four major 5
cities in Tamil nadu to provide Education. The institution has planned to
setup their head office in Dharmapuri in three location and have name their
Dharmapuri office as “Main Office”, “Cbse” and “Matric”. The institutions
other schools are loacated in “Hosur”, “Tiruppattur”, and “Thiruvanamalai”.
A rought layout of the same is as follows.
Dharmapuri
TamilNadu
In continuation of the above, the company expert has planned to install the
following number of computers in each of their offices:
Institutions Number of computers
Main Office 25
Cbse 125
Matric 75
Hosur 70
Tiruppattur 40
Tiruvanamalai 30
33. Consider the Department and Teachers tables, write down the query (a) to 5
(e)
Table: Department
101 Physics 45
102 chemistry 24
103 Mathematics 27
104 Computer 11
Science
Table: Teachers
SECTION – E
34. Write queries (a) to (d) based on the tables EMPLOYEE and 4
DEPARTMENT given below:
Table: EMPLOYEE
Table: DEPARTMENT
D001 Personal 4
D002 Admin 10
D003 Production 1
D004 Sales 3
alphabetical order.
35. BeHappy Corporation has set up its new centre at Noida, Uttar 4
Pradesh for its office and web-based activities. It has 4 blocks of
buildings.
BEHAPPPY CORPORATION
BLOCK B
BLOCK A
BLOCK D
BLOCK C
A to B 40 m
B to C 120m
C to D 100m
A to D 170m
B to D 150m
A to C 70m
Block A - 25
Block B - 50
Block C - 125
Block D - 10
justification
i. Repeater
ii. Hub/Switch
(c) Which kind of network (PAN/LAN/WAN) will be formed if the