12th Standard Syllabus & Materials
12th Standard
TN 12th Computer Applications மின்னணு தரவு பரிமாற்றம் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications மின் - வணிக பாதுகாப்பு அமைப்புகள் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications மின்னணு செலுத்தல் முறைகள் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications மின் - வணிகம் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications திறந்த மூல கருத்துருக்கள் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications வலையமைப்பு வடமிடல் Sample Question Papers Study Material - QB365 Set A

Published on: 03/02/2021
12th Standard Computer Science English Medium Structured Query Language Reduced Syllabus Important Questions With Answer Key 2021
Download Tamil Nadu 12th Standard Computer Science question papers, model tests, one-mark questions, important questions, and public exam papers in PDF format. Free study materials and answer keys for TN State Board students.
Questions + Answers key
Take MCQ Computer Science Test

1.
List the SQL DML commands.
2.
List the SQL DDL commands. Explain each.
3.
What is the use of WAMP?
4.
Expand
(i) DDL
(ii) DML
(iii) WAMP
5.
List few RDBMS packages.
6.
What is the difference between SQL and MYSQL?
7.
8.
Write the difference between table constraint and column constraint?
9.
Differentiate Unique and Primary Key constraint
10.
Write a query that selects all students whose age is less than 18 in order wise.
11.
Write the different categories of SQL commands.
12.
How will you generate queries and retrieve data from the table? Explain?
13.
How will set a primary key for more than one field? Explain with example.
14.
How will you frame the commands to work on database?
15.
Write the syntax for the following commands.
(i) INSERT
(ii) DELETE
(iii) UPDATE
16.
How the data in RDBMs is stored? Explain.
17.
Write a SQL statement using DISTINCT keyword.
18.
Write the use of Savepoint command with an example.
19.
Write a SQL statement to modify the student table structure by adding a new field.
20.
What is a constraint? Write short note on Primary key constraint.
21.
Explain TCL commands in detail.
22.
Write a note on
(i) TRUNCATE command.
(ii) DROP TABLE command.
23.
Write the processing skills of SQL.
24.
Write a SQL statement to create a table for employee having any five fields and create a table constraint for the employee table.
25.
Construct the following SQL statements in the student table-
(i) SELECT statement using GROUP BY clause.
(ii) SELECT statement using ORDER BY clause.
26.
What are the components of SQL? Write the commands in each.
27.
28.
The _______ keyword defines a range of values the record must fall into make the condition true.
BETWEEN
RANGE
IN
WHERE
29.
The _______ keyword is used along with the SELECT command to eliminate duplicate rows in the table?
DUPLICATE
DISTINCT
ELIMINATE
a ro b
30.
The __________ command is used to modify the table structure (schema)
ALTER
CHANGE
REPLACE
MODIFY
31.
The Primary key constraint is similar to ___________ constraint.
Unique
Check
Default
none of the these
32.
____________ is a condition application on a field or set of fields?
Class
Control structure
Constraint
Arguments
33.
How many types of database integrity constraints are there?
4
5
3
Multiple
34.
Double data type precision may exceed
64
74
54
14
35.
The data in a database is stored based on the kind of value stored is known as
language
function
record
datatype
36.
The SQL DCL command withdraws the access permission given by the GRANT statement is
WITHDRAWN
REMOVE
DELETE
REVOKE
37.
Which DML requires a user to specify what data is needed without specifying how to get it?
Produced DML
Non-Procedural DML
Programmable DML
PRocedural DQL
38.
DQL Stands for
Database Query Language
Data Query Language
Defined Query Language
Dynamic Query Language
39.
TCL stands for
Transmission Control Language
Transfer Communication Language
Transaction Communication Language
Transaction control Language
40.
WAMP stands for
Windows, Android, MySQL, PHP
Windows, Apache, MySQL, Python
Windows, APL, MySQL, PHP
Windows, Apache, MySQL, PHP
41.
Latest SQL standard as of now is
SQL 2008
SQL 2009
SQL 2018
SQL 2.0
42.
SQL originally called as
DBMS
RDBMS
SQL
SQLITE
1.
(i) Insert: Inserts data into a table
(ii) Update: Updates the existing data within a table.
(iii) Delete: Deletes all records from a table, but not the space occupied by them.
2.
(i) Create: To create tables in the database.
(ii) AIter: Alters the structure of the database.
(iii) Drop: Delete tables from database.
(iv) Truncate: Remove all records from a table, also release the space occupied by those records.
3.
WAMP stands for "Windows, Apache, MySQL and PHP" It is often used for web development and internal testing, but may be also be used to serve live websites.
4.
(i) DDL - Data Definition Language
(ii) DML - Data Manipulation Language
(iii) WAMP - Windows, Apache, MySQL, PHP
5.
Oracle, MySQL, MS SQL Server, IBM DB2 and Microsoft Access are RDBMS packages.
6.
| SQL | MYSQL |
| Structured Query Language is a language used for accessing database | MySQL is a database | accessing databases. management system, like SQL Server, Oracle, Informix,postgres,etc. |
| SQL is a DBMS | MySQL is a RDBMS |
7.
8.
| Table Constraints | column constraints |
| Table constraint is apply to a group of one or more columns. | Column constraint can be apply only to individual columns. |
9.
| S.No | Unique Key Constraint | Primary Key Constraint |
|---|---|---|
| (i) | This constraint ensures that no two rows have the same value in the specified columns. | This constraint declares a field as a Primary Key which helps to uniquely identify a record. |
| (ii) | The UNIQUE constraint can be Create applied only to fields that have also been declared as NOT NULL. | The Primary Key does not allow NULL values. |
10.
SELECT * FROM Student WHERE Age <= 18 ORDER BY Name;
11.
(i) DDL - Data Definition Language
(ii) DML - Data Manipulation Language
(iii) DCL - Data Control Language
(iv) TCL - Transaction Control Language
(v) DQL - Data Query Language
12.
One of the most important tasks when working with SQL is to generate Queries and retrieve data. A Query is a command given to get a desired result from the database table. The SELECT command is used to query or retrieve data from a table in the database. It is used to retrieve a subset of records from one or more tables. The SELECT command can be used in various forms:
Syntax of SELECT command:
SELECT < column-list > FROM < table-name > ;
(i) Table-name is the name of the table from which the information is retrieved.
(ii) Column-list includes one or more columns from which data is retrieved.
13.
Table Constraint: When the constraint is applied to a group of fields of the table, it is known as Table constraint. The table constraint is normally given at the end of the table definition. Let us take a new table namely Student with the following fields Admno, Firstname, Lastname, Gender, Age, Place:
Create Table Student 1
(
Admno integer NOT NULL,
Firstname char(20),
Lastname char(20),
Gender char(1),
Age integer,
Place char(10),
PRIMARY KEY (Firstname, Lastname) ⟶ Table constraint
);
In the above example, the two fields, Firstname and Lastname are defined as Primary key which is a Table constraint.
14.
The SQL provides a predetermined set of commands to work on databases.
| Keywords | They have a special meaning in SQL. They are understood as instructions. |
| Commands | They are instructions given by the user to the database also known as statements. |
| Clauses | They begin with a keyword and consist of keyword and argument. |
| Arguments | They are the values given to make the clause complete. |
15.
(i) INSERT:
INSERT INTO <table-name>
[column-list] VALUES (values);
(ii) DELETE:
DELETE FROM table-name WHERE condition;
(iii) UPDATE:
UPDATE <table-name > SET column-name = value, column-name = value, ... WHERE condition;
16.
(i) The data in RDBMS, is stored in database objects, called Tables. A table is a collection of related data entries and it consist of rows and columns.
(ii) A field is a column in a table that is designed to maintain specific related information about every record in the table. It is a vertical entity that contains all information associated with a specific field in a table. The fields in a student table may be of the type AdmnNo, StudName, StudAge, StudClass, Place etc
(iii) A Record is a row, which is a collection of related fields or columns that exist in a table. A record is a horizontal entity in a table which represents the details of a particular student in a student table
17.
(i) The DISTINCT keyword is used along with the SELECT command to eliminate duplicate rows in the table. This helps to eliminate redundant data.
(ii) For Example: SELECT DISTINCT Place FROM Student;
Will display the following data as follows:
Place
Chennai
Banglore
Delhi
18.
(i) The SAVEPOINT command is used to temporarily save a transaction so that you can rollback to the point whenever required.
(ii) The different states of our table can be saved at any time using different names and the rollback to that state can be done using the ROLLBACK command.
(iii) SAVEPOINT savepoint_name:
UPDATE student SET Name = 'Mini' WHERE Admno=105;
SAVEPOINT A;
19.
ALTER TABLE <table-name> ADD <column- name><data type><size>;
Example: ALTER TABLE Student MODIFY Address char (25)
20.
Constraint:
Constraints are used to limit the type of data that can go into a table. This ensures the accuracy and reliability of the data in the database. Constraints could be either on a column level or a table level. Constraint is a condition applicable on a field or set of fields.
Primary key constraint:
(i) This constraint declares a field as a Primary key which helps to uniquely identify a record.
(ii) It is similar to unique constraint except that only one field of a table can be set as primary key.
(iii) The primary key does not allow NULL values.
21.
TCL commands:
(i) COMMIT command: The COMMIT command is used to permanently save any transaction to the database. When any DML commands like INSERT. UPDATE. DELETE commands are used. the changes made by these commands are not permanent. It is marked permanent only after the COMMIT command is given from the SQL prompt. Once the COMMIT command is given. the changes made cannot be rolled back. The COMMIT command is used as COMMIT;
(ii) ROLLBACK command:
The ROLLBACK command restores the database to the last committed. state. It is used with SAVEPOINT command to jump to a particular savepoint location. The syntax for the ROLLBACK command is: ROLLBACK TO save point name;
(iii) SAVEPOINT command:
The SAVEPOINT command is used to temporarily save a transaction so that you can rollback to the point whenever required. The different states of our table can be saved at anytime using different names and the rollback to that state can be done using the ROLLBACK command.
SAVEPOINT savepoint_name;
22.
(i) TRUNCATE command: The TRUNCATE command is used to delete all the rows from the table. the structure remains and the space is freed from the table. The syntax for TRUNCATE command is:
TRUNCATE TABLE table-name;
For example to delete all the records of the student table and delete the table the SQL statement is given as follows:
TRUNCATE TABLE Student;
The table Student is removed and the space is freed.
(ii) DROP TABLE command: The DROP TABLE command is used to remove a table from the database. If you drop a table. all the rows in the table is deleted and the table structure is removed from the database. Once a table is dropped we cannot get it back. so be careful while using DROP TABLE command. But there is a condition for dropping a table; it must be an empty table.
Remove all the rows of the table using DELETE command. The DELETE command is already explained.
To delete all rows, the command is given as;
DELETE * FROM Student;
Once all the rows are deleted. the table can be deleted by DROP TABLE command in the following way:
DROP TABLE table-name;
For example to delete the Student table:
DROP TABLE Student;
23.
The various processing skills of SQL are:
(i) Data Definition Language (DDL): The SQL DDL provides commands for defining relation schemas (structure), deleting relations, creating indexes and modifying relation schemas.
(ii) Data Manipulation Language (DML): The SQL DML includes commands to insert, delete, and modify tuples in the database.
(iii) Embedded Data Manipulation Language: The embedded form of SQL is used in high level programming languages.
(iv) View Definition: The SQL also includes commands for defining views of tables.
(v) Authorization: The SQL includes commands for access rights to relations and views of tables.
(vi) Integrity: The SQL provides forms for integrity checking using condition.
(vii) Transaction control: The SQL includes commands for file transactions and control over transaction processing.
24.
Table constraint:
Table constraint apply to a group of one or more columns. The Syntax tor a table created with Constraint is given as below:
CREATE TABLE <table_name>
(<column name> <datatype>[<size>]
<column constraint>,
(<column name> <data type> [<size>]
<column constraint).....
<table constraint>(<column name>, [<column name>..........])............);
Following is an example for employee table with "NOT NULL' column constraint. This constraint enforces a field to always contain a value.
CREATE TABLE employee (No int NOT NULL PRIMARY KEY,
NAME varchar(50), Age int (10), Address varchar(50)
PhoneNo int(10), Pincode int (6) PRIMARY KEY (NAME, PhoneNo);
The above command creates a table "employee" in which the field No of integer type is defined NOT NULL, which means this field must have values. The field NAME is of char type. The fields NAME, PhoneNo, have table constraint.
25.
1. SELECT * FROM student WHERE gender = Male GROUP BY gender;
2. SELECT * FROM student WHERE Age > 18 ORDER BY DESC;
26.
SQL commands are divided into five categories:
Data Definition Language:
(i) The Data Definition Language (DDL) consist of SQL statements used to define the database structure or schema.
(ii) It simply deals with descriptions of the database schema and is used to create and modify the structure of database objects in databases.
(iii) The DDL provides a set of definitions to specify the storage structure and access methods used by the database system.
DDL performs the following functions:
(i) It should identify the type of data division such as data item, segment, record and database file.
(ii) It gives a unique name to each data item type, record type, file type and data base.
(iii) It should specify the proper data type.
(iv) It should define the size of the data item.
(v) It may define the range of values that a data item may use.
(vi) It may specify privacy locks for preventing unauthorized data entry.
Commands:
| CREATE | To create tables in the database. |
| ALTER | Alters the structure of the database |
| DROP | Data tables from database. |
| TRUNCATE | Remove all records from a table, also release the space occupied bv those records. |
Data Manipulation Language:
This is a computer programming language used for adding, removing and modifying data in a database. This language comprises the SQL-data change statements, which modify stored data but not the schema of the database table
Data Manipulation includes
(i) Insertion of new information into the database
(ii) Retrieval of information stored in a database
(iii) Deletion of information from the database.
(iv) Modification of data stored in the database
The DML is basically of two types:
Procedural DML - Requires a user to specify what data is needed and how to get it.
Non-Procedural DML - Requires a user to specify what data is needed without Specifying how to get it.
Commands:
| INSERT | Inserts data into a table |
| UPDATE | Updates the existing data within a table |
| DELETE | Deletes all records from a table, but not the space occupied by them. |
Data Control Language:
(i) A Data Control Language (DCL) is a programming language used to control the access of data stored in a database. It is used for controlling privileges in the database (Authorization).
(ii) The privileges are required for performing all the database operations such as creating sequences, views of tables etc.
Commands:
| GRANT | Grants permission to one or more users to perform specific tasks. |
| REVOKE | Withdraws the access permission given by the GRANT statement. |
Transactional Control Language:
Transactional control language (TCL) commands are used to manage transactions in the database. These are used to manage the changes made to the data in a table by DML statements.
Commands:
| COMMIT | Saves any transaction into the database permanently. |
| ROLL BACK | Restores the database to last commit state. |
| SAVE POINT | Temporarily save a transaction so that you can rollback. |
Data query language:
The Data Query Language consist of commands used to query or retrieve data from a database. One such SQL command in Data Query Language is
| SELECT | It displays the records from the table. |
27.
28.
(a)
BETWEEN
29.
(b)
DISTINCT
30.
(a)
ALTER
31.
(a)
Unique
32.
(c)
Constraint
33.
(a)
4
34.
(a)
64
35.
(d)
datatype
36.
(d)
REVOKE
37.
(b)
Non-Procedural DML
38.
(b)
Data Query Language
39.
(b)
Transfer Communication Language
40.
(d)
Windows, Apache, MySQL, PHP
41.
(a)
SQL 2008
42.
(c)
SQL
12th Standard Syllabus & Materials
12th Standard
TN 12th Computer Applications களப்பெயர் முறைமை (DNS) Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications வலையமைப்பு எடுத்துக்காட்டுகள் மற்றும் நெறிமுறைகள் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications கணினி வலையமைப்பு ஓர் அறிமுகம் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications PHP-உடன் MySQL-ஐ இணைத்தல் Sample Question Papers Study Material - QB365 Set A
Tamilnadu Stateboard 12th Standard Subjects

Maths

Chemistry

Physics

Biology

Computer Science

Business Maths and Statistics

Economics

Commerce

Accountancy

History

Computer Applications

Biology

Computer Technology

Computer Applications

Computer Science

Business Maths and Statistics

Commerce

Economics

Maths

Chemistry

Physics

Computer Technology

History

Accountancy

Tamil

English

French
Tamilnadu Stateboard Standards