You are on page 1of 2

1. The Relational Model of database was introduced by: a) Dr. J. Morgan c) Dr. E.F.Codd b) Dr. K.

V Roger d) None of Above 2. The last buffered command can be executed using: a) RUN c) / b) Both of above d) none of above 3. In oracle, ORDER BY clause can arrange data using one column only a) TRUE c) FALSE b) Cannot say d) none of above 4. The IN operator returns TRUE when: a) All values match c) No value match b) Any value match d) more than one value match 5. Total number of primary key in the table: a) 0 (Zero) c) one b) Both of above none of above 6. The option ON DELETE CASCADE can be defined with: a) Foreign key c) primary key b) UNIQUE key d) all of above 7. The check constraint condition returns NULL, then: a) Constraints is not violated c) constraints is violated b) Condition result cannot be NULL d) undetermined 8. Which one is the TCL statement: a) Commit c) savepoint b) Both of above d) none of above 9. When three or more AND and OR conditions are combined, it is easier to use the SQL keyword(s): a) LIKE only c) IN only b) NOT IN only d) Both IN and NOT IN 10. Which of the following is the original purpose of SQL? a) To specify the syntax and semantics of SQL data definition language b) To specify the syntax and semantics of SQL data manipulation language c) To define the data structures d) All of above 11. The default extension for an oracle SQL*PLUS file is: a) .txt c) .ora b) .pls d) .sql 12. Which of the following queries are legal? a) SELECT deptno, count(deptno) FROM emp GROUP BY ename b) SELECT deptno, count(deptno) FROM emp GROUP BY ename c) SELECT deptno, avg(sal) FROM emp; d) SELECT deptno, avg(sal) FROM emp GROUP BY deptno 13. SQL is: a) A programming language c) an operating system b) A data sublanguage d) a DBMS

14. With SQL, how can you insert a new record into the persons table? a) INSERT(jimmy,jackson) INTO persons; b) INSERT VALUES ('Jimmy', 'Jackson') INTO persons c) INSERT INTO persons VALUES ('Jimmy', 'Jackson') d) None of above 15. With SQL, how can you return the number of records in the persons table? a) SELECT columns(*) FROM persons; b) SELECT count(*) FROM persons; c) SELECT count() FROM persons; d) SELECT columns() FROM persons; 16. Which of the following SQL operations demands the use of wild cards comparisons? a) IN c) BETWEEN b) EXISTS d) LIKE 17. Which SQL statement is used to extract data from a database? a) SELECT c) GET b) OPEN d) EXTRACT 18. The OR operator displays a record if ANY conditions listed are true. The AND operator displays a record if ALL of the conditions listed are true a) FALSE b) TRUE 19. DISTINCT option may be used to: a) Remove duplicate columns c) remove duplicate rows b) Remove duplicate tables d) remove duplicate constraints 20. In RDBMS, the absence of information is represented by: a) Zero (0) c) Blank b) NULL d) All of above

You might also like