12th Standard Syllabus & Materials
12th Standard
TN 12th English Poem - 6 - Incident of the French Camp Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th English Prose - 6 - On the Rule of the Road Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th English Prose - 5 - The Chair Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th English Supplementary - 4 - The Midnight Visitor Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th English Poem - 4 - Ulysses Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th English Prose - 4 - The Summit Sample Question Papers Study Material - QB365 Set A

Published on: 22/08/2026
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.
Which of the following SQL DDL command used to create a table?
CREATE
CREATE TABLE
NEW TABLE
DDL TABLE
2.
Double data type precision may exceed
64
74
54
14
3.
SQL stands for
Standard Query Language
Secondary Query Language
Structured Query Language
Standard Question Language
4.
_______________ command is used to remove a table form the database.
DELETE ALL
DROP TABLE
ALTER TABLE
DELETE
5.
The statement in SQL is used to retrieve data from a table in a database:
SELECT
CREATE
DISTINCT
ORDER BY
6.
The clause used to sort data in a database
SORT BY
ORDER BY
GROUP BY
SELECT
7.
Queries can be generated using
SELECT
ORDER BY
MODIFY
ALTER
8.
The command to delete a table including the structure is
DROP
DELETE
DELETE ALL
ALTER TABLE
9.
Which command lets to change the structure of the table?
SELECT
ORDER BY
MODIFY
ALTER
10.
Which commands provide definitions for creating table structure, deleting relations, and modifying relation schemas.
DDL
DML
DCL
DQL
11.
Differentiate BETWEEN AND NOT BETWEEN keywords.
12.
What are two basic types of DML.
13.
Expand
(i) SQL
(ii) DBMS
(iii) RDBMS
14.
What is the difference between SOL and MySQL?
15.
Which component of SQL lets insert values in tables and which lets to create a table?
16.
Write the difference between table constraint and column constraint.
17.
Differentiate Unique and Primary Key constraint
18.
Write a query that selects all students whose age is less than 18 in order wise.
19.
List the data types used in SQL.
20.
Write the syntax for the following commands.
(i) INSERT
(ii) DELETE
(iii) UPDATE
21.
Compare Delete, Truncate and Drop in SQL.
(or)
What is the use of DELETE, TRUNCATE and DROP commands in SQL?
22.
Write a SQL statement using DISTINCT keyword.
23.
Write the use of Savepoint command with an example.
24.
Write any three DDL commands.
25.
Write a SQL statement to modify the student table structure by adding a new field.
26.
What is a constraint? Write short note on Primary key constraint.
27.
Explain ALTER command in detail.
28.
Write the processing skills of SQL.
29.
Write a SQL statement to create a table for employee having any five fields and create a table constraint for the employee table
30.
Construct the following SQL statements in the student table.
(i) SELECT statement using GROUP BY clause.
(ii) SELECT statement using ORDER BY clause.
31.
What are the components of SQL? Write the commands in each.
1.
(b)
CREATE TABLE
2.
(a)
64
3.
(c)
Structured Query Language
4.
(b)
DROP TABLE
5.
(a)
SELECT
6.
(b)
ORDER BY
7.
(a)
SELECT
8.
(a)
DROP
9.
(d)
ALTER
10.
(a)
DDL
11.
BETWEEN | NOT BETWEEN |
The BETWEEN keyword defines a range of values the record must fall into to make the condition true. | The NOT BETWEEN is reverse of the BETWEEN operator where the records not satisfying the condition are displayed. |
12.
The DML is basically of two types :
(i) Procedural DML Requires a user to specify what data is needed and how to get it.
(ii) Non-Procedural DML - Requires a user to specify what data is needed without specifying how to get it.
13.
(i) SQL -Structured Query Language
(ii) DBMS-Database Management System
(iii) RDBMS- Relational Database Management System.
14.
SQL | MySQL |
|---|---|
Structured Query Language is a language used for | MySQL is a database management system, like SQL Server, Oracle, Informix, Postgres, etc. |
SQL is a DBMS | MySQL is a RDBMS |
15.
Command | Description | Component |
|---|---|---|
Insert | Inserts data into a table | DML |
Create | To create tables in the database | DDL |
16.
Table constraint | Column constraint |
Table constraint is apply to a group of one or more | Column constraint apply only to individual column |
17.
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 applied only to fields that have also been declared as NOT NULL. | The Primary Key does not allow NULL values. |
18.
Query : SELECT * FROM student WHERE Age < 18 ORDERBY Name;
19.
(i) char (Character)
(ii) varchar
(iii) dec (Decimal)
(iv) numeric
(v) int (Integer)
(vi) smallint
(vii) float
(viii) real
(ix) double
20.
(i) INSERT:
INSERT INTO <table-name> [column-list] VALUES (values);
(ii) DELETE :
DELETE FROM table-name WHERE condition;
(iii) UPDATE :
UPDATE SET column-name = value, column-name = value,.. WHERE condition;
21.
Delete | Truncate | Drop |
The DELETE command permanently removes one or more records from the table. It removes the entire row, not individual fields of the row. so no field arguments is needed. Syntax : DELETE FROM table name WHERE condition; | The TRUNCATE command is used to delete all the rows from the table, the structure remains and the space is freed from the table. Syntax: TRUNCATE TABLE table-name; | The DROP TABLE command is used to remove a table from the database. once a table is dropped we cannot get it back. so be careful while using DROP TABLE command. Syntax : DROP TABLE table-name; |
22.
(i) The DISTINCT keyword is used along with the SELECT command to eliminate duplicate rows in the table. This helps to eliminate redundant data.
Admno | Name | Gender | Place |
|---|---|---|---|
100 | Ashish | M | Chennai |
101 | Adarsh | M | Delhi |
102 | Akshith | M | Bangalore |
103 | Ayush | M | Delhi |
(ii) For Example: SELECT DISTINCT PIace FROM Student;
Will display the following data as follows:
Place
Chennai
Bangalore
Delhi
23.
The SAVEPOINT Command is used to temporarily save a transaction so that you can rollback to the point whenever required.
Example: SAVEPOINT savepoint_name;
UPDATE Student SET Name = Mini WHERE Admno=105;
SAVEPOINT A;
24.
Data Definition Language :
(i) Create Command : To create tables in the database.
(ii) Alter Command : The ALTER command is used to alter the table.
(iii) Drop Command : The DROP TABLE command is used to remove a table from the database.
25.
ALTER TABLE <table-name> ADD <column-name><data type><size>;
Example :ALTER TABLE Student ADD Address
CHAR (25)
26.
(i) 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 value.
27.
ALTER Command:
(i) The ALTER Command is used to alter the table structure like adding a column, renaming the existing column, change the data type of
any column or size of the column or delete the column from the table. It is used in the following way :
ALTER TABLE <Table-name> ADD
<column-name><data type><size>;
(ii) To add a new column "Address" of type char to the Student table, the command is used as
ALTER TABLE Student ADD Address char;
(ii) To modify existing column of table, the ALTER TABLE command can be used with MODIFY clause like wise:
ALTER <table-name> MODIFY
<column-name><data type><size>;
ALTER TABLE Student MODIFY Address char (25);
(iv) The ALTER command can be used to rename an existing column in the following way:
ALTER TABLE <table-name> CHANGE old column-name new-column name new column definition;
(v) The ALTER command can also be used to remove a column or all columns,
ALTER TABLE DROP COLUMN <column-names>;
28.
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.
29.
CREATE TABLE employee
(
eempcode INTEGER NOT NULL,
name CHAR(20),
desig CHAR(20),
pay INTEGER,
allowance INTEGER,
PRIMARY KEY (empcode)
);
30.
(i) GROUP BY clause :
• The GROUP BY clause is used with the SELECT statement to group the students on rows or columns having identical values or divide the table in to groups.
• For example to know the number of male students or female students of a class, the GROUP BY clause may be used.
• The syntax for the GROUP BY clause is
• SELECT <column-names> FROM <table-name> GROUP BY <column-name>
HAVING condition];
• To apply the above command on the student table:
• SELECT Gender FROM Student GROUP BY Gender;
• The following command will give the below given result:
Gender |
|---|
M |
F |
• SELECT Gender, count(*) FROM Student GROUP BY Gender;
Gender | count(*) |
|---|---|
M | 5 |
F | 3 |
(ii) ORDER BY clause :
• The ORDER BY clause in SQL is used to sort the data in either ascending
or descending based on one or more columns.
(a) By default ORDER BY sorts the data in ascending order.
(b) We can use the keyword DESC to sort the data in descending order and the keyword ASC to sort in ascending order.
• The ORDER BY clause is used as :
• SELECT <column-name> [,<column-name>....] FROM <table-name>ORDER BY<column1>,<column2>,....ASC| DESC;
• Example:
To display the students in alphabetical order of their names, the command is used as
• SELECT * FROM Student ORDER BY Name;
The above student table is arranged as follows :
Admno | Name | Gender | Age | Place |
|---|---|---|---|---|
104 | Abinandh | M | 18 | Chennai |
101 | Adarsh | M | 18 | Delhi |
102 | Akshith | M | 17 | Bangalore |
100 | Ashish | M | 17 | Chennai |
103 | Ayush | M | 18 | Delhi |
106 | Devika | F | 19 | Bangalore |
107 | Hema | F | 17 | Chennai |
105 | Revathi | F | 19 | Chennai |
31.
Components of SQL: 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) SQL commands which comes under Data Definition Language are :
Create | To create tables in the database. |
|---|---|
Alter | Alters the structure of the |
Drop | Delete tables from database. |
Truncate | Remove all records from a table, also release the space |
Data Manipulation Language :
(i) A Data Manipulation Language (DML) is a query language used for adding (inserting), removing (deleting). and modifying (updating) data in a database.
(ii) SQL commands which comes under Data Manipulation Language are :
Insert | Inserts data into a table |
|---|---|
Update | Updates the existing data |
Delete | Deletes all records from a table, |
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) SQL commands which come under Data Control Language are :
Grant | Grants permission to one or |
|---|---|
Revoke | Withdraws the access permission given by the GRANT statement. |
Transactional Control Language :
(i) 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.
(ii) SQL command which come under Transfer Control Language are :
Commit | Saves any transaction in to the |
|---|---|
Roll back | Restores the database to last |
Save point | Temporarily save a transaction so that you can |
Data Query Language :
(i) The Data Query Language consist of commands used to query or retrieve data from a database.
(ii) One such SQL command in Data Query Language is
Select | It displays the records from the table. |
|---|
12th Standard Syllabus & Materials
12th Standard
TN 12th English Supplementary - 3 - The Hour of Truth (Play) Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th English Poem - 3 - All the World’s a Stage Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th English Prose - 3 - In Celebration of Being Alive Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th English Supplementary - 2 - Life of Pi 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