Multiple Choice Questions: 18CSC303J
Multiple Choice Questions: 18CSC303J
UNIT-3
MULTIPLE CHOICE QUESTIONS
1. Select which is not true for SQL
A. It is common language for all database
B. It is non procedural language
C. It is case sensitive
D. The commands are like an english statements
2. The statement to create the employee table with attributes of employee number, emp
name, job is …………
A. CREATE TABLE EMP (EMP_NO Varchar2(10),ENAME Varchar2(10),JOB
Varchar2(9))
B. CREATE TABLE EMP (EMP_NO Number(4),ENAME Varchar2(10),JOB
Varchar2(9))
C. CREATE TABLE EMP (EMP_NO Varchar2(10),ENAME Number(4),JOB
Varchar2(9))
D. CREATE TABLE EMP (EMP_NONumber(4),E_NAME Number(4),JOB
Varchar2(9))
3. The sql command to insert emp name Jack with ID_no 500 with job type clerk is:
A. INSERT INTO EMP VALUES (500,’JACK’,’CLERK’)
B. INSERT EMP VALUES (500,’JACK’,’CLERK’)
C. INSERT INTO EMP (500,’JACK’,’CLERK’)
D. INSERT INTO EMP VALUES (500,JACK,CLERK)
4. The sql statement to retrieve all the record from emp table called “emp” whose salary is
greater than 5000:
A. SELECT * FROM EMP WHERE sal>5000
B. SELECT * FROM EMP sal>5000
C. SELECT FROM EMP WHERE sal>5000
D. SELECT * EMP WHERE sal>5000
6. To find average salary of employee from the employee table the command is:
A. SELECT avg(sal) FROM EMP;
B. SELECT avg(sal) EMP;
C. SELECT avg(sal);
D. avg(sal) FROM EMP;
7. Which is not true for union operator:
A. Union operator retrieves the records from both queries without duplication.
B. Union operator retrieves the records from both queries with duplication.
C. Column heading will be selected from the prior query statement.
D. Intersect operators retrieve the common records from both query statements.