Important Questions (Assginment)
Important Questions (Assginment)
Important Questions (Assginment)
THEORY -ASSIGNMENTS
Assignment No. 1
COMPUTER NETWORKING
Assignment No. 2
OPEN SOURCE CONCEPTS
2. What characteristics make a standard an open standard? Discuss some advantages of Open
standard over Proprietary standard.
3. How phonetic text entry is different from key map based text entry?
1.
INTRODUCTION TO XML
Assignment No. 3
12. Consider the Empl table and write SQL command to get the following.
a. Write a query to display EName and Sal of employees whose salary are greater than or equal to
2200?
b. Write a query to display details of employs who are not getting commission?
c. Write a query to display employee name and salary of those employees who don’t have their
salary in range of 2500 to 4000?
d. Write a query to display the name, job title and salary of employees who don’t have manager?
e. Write a query to display the name of employee whose name contains “A” as third alphabet?
Class XII- Informatics Practices (065)
f. Write a query to display the name of employee whose name contains “T” as last alphabet?
g. Write a query to display the name of employee whose name contains ”M” as First and “L” as third
alphabet?
h. Write a query to display details of employs with the text “Not given”, if commission is null?
13. Write SQL command for the following in the basis of given table (Club)?
16. Write SQL commands for the following on the basis of given table relation Teacher.
e) In the added column Grade, assign grade as follows. if sal is in range 0-2000 then Grade is 1
If sal is in range 2001-3000 then Grade is 2
If sal is in range 3001 or higher then Grade is 3
f) Display the details of employees who are working under the employee named AMIR.
g) Modify the definition of column Grade. Increase its size to 2.
h) Drop the table Empl.
19. Create the table Employee based on the following table instance Chart.
Column name ID FirstName LastName DeptID
Data Type NUMBER VARCHAR VARCHAR NUMBER
Length 8 25 25 8
20. Write the command for the following-
a) Create table CUSTOMER as per following Table structure.
Column Name CustID CustName CustAdd1 CustAdd2 CustPhone
Data Type NUMBER VARCHAR VARCHAR VARCHAR VARCHAR
Length 7 30 20 30 10
b) Add one column Email of data type VARCHAR and size 30 to table Customer.
c) Add one more column CustIncomeGroup of data type VARCHAR(10).
d) Insert few records with relevant information in the Customer table.
e) Drop the column CustomerIncomeGroup from table Customer.
Assignment No. 4
DATABASE TRANSACTIONS
TYPE A: VERY SHORT ANSWER QUESTION
1. What is a Transaction?
2. Define the following-
a) Atomicity b) Consistency c) Isolation d) Durability
3. What are two way in which multiple transactions can be executed?
4. What is Savepoint? What is the role of Savepoint in the Transaction?
5. Describe the following command –
a) COMMIT b) ROLLBACK c) SAVEPOINT
Assignment No. 5
SQL- GROUPING AND JOINING TABLES
TYPE A: VERY SHORT ANSWER QUESTION
1. What are Single Row and Multiple row functions?
2. What is significance of GROUP BY clause in a SQL query?
3. What is difference between Where and Having clause in SQL select command?
4. Write a query to find out Sum, Average, lowest and highest Marks in Student table?
5. Write a query to find out Sum, Average, lowest and highest Marks of the students in STUDENT
table grouped by STREAM?
6. Write a query to find out number of student in each Stream in STUDENT table?
7. What is a Join? How many types of join can you create in MySQL?
8. Can you join two tables without using Join keyword?
9. What id difference between ON and USING join-clause?
10. How is natural join different from an Equi-join?
TYPE B: SHORT ANSWER QUESTION
1. Consider the following EMP and DEPT table -
Table: Emp
EmpNo EmpName City Designation DOJ Sal Comm DeptID
8369 SMITH Mumbai CLERK 1990-12-18 800.00 NULL 20
Table: DEPT
DeptID DeptName MgrID Location
10 SALES 8566 Mumbai
Table: STUDENT
StdID Name FName Stream TeacherID
Assignment No. 6
TABLES & INTEGRITY CONSTRAINTS
TYPE A: VERY SHORT ANSWER QUESTION
1. What are constraints? Name the different constraints that can apply on a table?
2. Can you have multiple Primary key in a table?
3. Can you have multiple foreign keys in a table?
4. What do mean by Column level and Table level constraints?
5. Which command is used to delete the constraints from the table?
6. Which command is used to see the structure of a table along with Constraints?
7. Which constraint is used to implement user defined policies or conditions?
8. How is Unique constraints different from Primary Key constraints?
9. What is the role of NOT NULL constraints?
10. How you can disable Foreign Key constraints in a table?
TYPE B: SHORT ANSWER QUESTION
1. What are Referential Integrity? Which constraint is used to implement this integrity rule?
2. How you define a Foreign Key constraint? Explain with an example.
3. How you can add a constraint? Explain with an example.
4. What do the following actions do with foreign key constraint:
a. ON DELETE CASCADE
b. ON UPDATE RESTRICT
c. ON DELETE SET NULL
5. Write the command for the following-
a. Create table CUSTOMER as per following Table structure.
Column Name CustID CustName CustAdd1 CustAdd2 CustPhone
Data Type NUMBER VARCHAR VARCHAR VARCHAR VARCHAR
Length 7 30 20 30 10
b. Add one column Email of data type VARCHAR and size 30 to table Customer.
c. Add one more column CustIncomeGroup of data type VARCHAR(10).
d. Insert few records with relevant information in the Customer table.
e. Drop the column CustomerIncomeGroup from table Customer.
6. Write the commands for the followings:
a. Create table CUSTOMER as per following Table structure
Col. name EmpID EmpName EmpAdd EmpPhone EmpSal DeptID
Key type Primary Foreign
Nulls /Unique NOT NULL
Fk Table Department
Fk Column Dept_ID
Datatype NUMBER VARCHAR VARCHAR VARCHAR NUMBER VARCHAR
Length 6 20 30 10 9,2 2
b. Delete the Primary key constraints from the CUSTOMER table.
Class XII- Informatics Practices (065)
Assignment No. 7
IT APPLICATIONS
TYPE A: VERY SHORT ANSWER QUESTION
1. Define the following-
b) E-Governance b) E-Business c) E-Learning
2. List any five web portal with their purposes involved in E-Governance.
3. List any five web portal with their purposes involved in E-Commerce or Business.
4. List any five web portal with their purposes involved in E-Learning
5. Define the followings-
1. Entity 2. Attribute 3. Relation 4. Relationship