Survey
* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project
Unit 1 Section A (Multiple Choice question) 1. A ______ is an organized collection of data (1) database (2) DBMS (3) Management System 2. A ______ is a collection of programs which provide management of databases (1) DBMS (2) RDBMS (3) DATA BASE 3. DBMS provides data ______ (1) integrity (2) security (3) accuracy 4. A relational database consists of a collection of (1) tables (2) fields (3) records 5. A ________ in a table represents a relationship among a set of values. (1) field (2) row (3) column 6. The term _______ is used to refer to a row. (1) tuple (2) attribute (3) field 7. The term attribute refers to a ___________ of a table (1) record (2) column (3) row 8. The tuples of the relations can be of ________ order (1) same (2) sorted (3) any 9. The different classes of relations created by the technique for preventing modification anomalies are called: (1) normalization (2) functional dependencies (3) referential integrity constraints 10. A relation is in this form if it is in BCNF and has no multivalued dependencies (1) first (2) third (3) fourth 11. Row is synonymous with the term (1) Record (2) Field (3) Column 12. The primary key is selected from the (1) composite keys (2) candidate keys (3) foreign keys 13. Which of the following is a group of one or more attributes that uniquely identifies a row? (1) key (2) tuple (3) relation 14. A key: (1) must always be composed of two or more columns (2) can only be one column (3) identifies a row. 15. An attribute is a(n) (1) column of a table (2) two dimensional table (3) row of a table 16. ______is a powerful relational database management syst (1) Oracle (2) Sybase (3) MSAccess 17. A database connection,a ______ and its client software communicate with each other (1) database (2) user (3) database server 18. The data in RDBMS is stored in database objects called ____ (1) tables (2) relations (3) database 19. Constraints are the ____ enforced on data columns on table (1) procedures (2) rules (3) policies 20. Constraints could be column level or ____ (1) row level (2) table level (3) field level 21. _________ constraint ensures that all values in a column are different (1) NOT NULL (2) DEFAULT (3) UNIQUE 22. Which is the Standard language for querying and manipulating data? (1) Structured Query Language (2) Standard Query Language (3) Procedural Language 23. DDL Stands for (1) Data Deriving Language (2) Data Declaration Language (3) Data Definition Language 24. Insert/delete/modify rows in tables is accomplished by (1) Data Definition Language (2) Data Manipulation Language (3) Data Transmission Language 25. _____ command modifies one or more attributes in a table (1) INSERT (2) MODIFY (3) UPDATE Section B (5 Marks Questions) 1. 2. 3. 4. 5. What is the difference between DBMS & RDBMS? Explain the Data types in ORCALE. Define RDBMS. What is mean by primary key & foreign key? What is mean by key? Section C (8 Mark Questions) 1. What is normalization & explain its types. 2. Write a brief note on DDL. 3. Explain about types of keys. Unit II Section A (Multiple Choice question) 1. ________ command in SQL is used to create a new table (1) CREATE (2) NEW (3) ALTER 2. _________________ is used to modify the records in the database (1) Data Transmission Language (2) Data Definition Language (3) Data Manipulation Language 3. The ______________ statement is used to add new records (rows) in a table (1) INSERT (2) ADD (3) INSERT ROW 4. The ___________ clause contains the name of the table where the record needs to be inserted (1) INTO (2) UPTO (3) INSERT 5. The ______________ statement is used to remove specific rows in a table with conditions (1) REMOVE (2) DELETE (3) CLEAR 6. The command to remove rows from a table 'CUSTOMER' is: (1) REMOVE FROM CUSTOMER ... (2) DROP FROM CUSTOMER ... (3) DELETE FROM CUSTOMER WHERE ... 7. The SQL WHERE clause: (1) limits the column data that are returned. (2) limits the row data are returned. (3) Both A and B are correct. 8. Which of the following is the original purpose of SQL? (1) To specify the syntax and semantics of SQL data definition language (2) To specify the syntax and semantics of SQL manipulation language (3) Both A and B 9. SQL data definition commands make up a(n) ________ . (1) DDL (2) DML (3) TCL 10. We must specify the ___________ for storing the data (1) data type (2) data name (3) table space 11. _______ datatype is used when a fixed length character string is required (1) CHAR (2) VARCHAR2 (3) LONG 12. _______ datatype is used when a variable length character string is required (1) CHAR (2) VARCHAR2 (3) LONG 13. _________ statements that specify and modify database schemas. (1) data definition language (DDL) (2) data manipulation language (DML), (3) Data Control Language(DCL) 14. The most commonly used SQL command is ______ statement (1) SELECT (2) UPDATE (3) INSERT 15. To select all fields from one table ___ symbol is used with SELECT Statement (1) * (2) + (3) # 16. To view the structure of a table ______ command is used (1) DESC (2) DESCRIBE (3) DES 17. The __________ command is used to make all transaction changes permanent to the data base (1) Roll back (2) Commit (3) Save point 18. A __________ is a virtual table, through which a selective portion of the data from one or more tables can be seen (1) VIEW (2) SEQUENCE (3) TABLES 19. A view is stored as a ________statement in the database (1) SELECT (2) INSERT (3) UPDATE 20. The ________ option allows a view to be created even if a base table that the view references does not exist (1) NO FORCE (2) FORCE (3) REPLACE 21. If the DBA omits the _______ clause, Oracle will automatically assign the constraint (1) CONSTRAINT (2) NOT-NULL CONSTRAINT (3) PRIMARY KEY 22. A_________ is an alias, that is, a form of shorthand used to simplify the task of referencing a database object (1) view (2) synonym (3) structures 23. A _______ synonym can be accessed by any system user (1) private (2) public (3) both a and b 24. Oracle provides the capability to generate sequences of unique numbers are called __________ (1) views (2) synonyms (3) sequences 25. The RENAME SYNONYM command only works for ______ synonyms (1) private (2) public (3) sequential Section B (5 Marks Questions) 1. 2. 3. 4. 5. How will you alter a table? Explain with example. Write a note on column constrains. Explain commit & save statement. Write a query for inserting & deleting data in a table. Explain about table Section C (8 Mark Questions) 1. Write a brief note on data manipulation language. 2. Explain about transaction control statements. 3. What is mean by constrains and explain its types. Unit III Section A (Multiple Choice question) 1. The _____ function is used to search a character string for a character substring (1) SUBSTR (2) INSTR (3) INSTRING 2 LENGTH() returns the length of a string in ___ (1) bytes (2) bits (3) characters 3 ______ string function removes leading spaces (1) RTRIM() (2) LTRIM() (3) TRIM() 4 ________returns the numeric value of the leftmost character of the string str (1) BYTE() (2) ASCII(char) (3) ASCII(str) 5 _________ returns number of characters in argument (1) CHAR_LENGTH() (2) CHAR() (3) CHARACTER_LENGTH() 6 ____ returns the current date as a value in 'YYYY-MM-DD' or YYYYMMDD format (1) DATE() (2) CURDATE() (3) CURRENTDATE() 7 CURTIME() returns the current time as a value in ________ format (1) HH:MM:SS (2) MM:HH:SS (3) HH:MM:SS 8 _______ returns the year for date, in the range 1000 to 9999 (1) YEAR(dte) (2) YEAR(date) (3) YEAR() 9 _______ returns the time between two dates (1) DATEDIFF() (2) DATEDIFFERENCE() (3) DATEBETWEEN() 10 ______ returns the current date and time as a value in 'YYYY-MM-DD HH:MM:SS' (1) NOW() (2) CURR() (3) CURTIME() 11 ___________ accept numeric input and return numeric values (1) number functions (2) alphanumeric functions (3) character functions 12 What is the output of following query SELECT ROUND(23.124586,4) FROM DUAL; (1) 23.1245 (2) 23.13458 (3) 23.124586 13 Write the output for the following query SELECT MOD(13,3) FROM DUAL; (1) 2 (2) 1 (3) 3 14 _______ number function retrurns the absolute value of n (1) ABSOLUTE(n) (2) ABS(n) (3) ABSOL(n) 15 Write the output of the following query SELECT CEIL(134.78) FROM DUAL; (1) 135 (2) 134.78 (3) 134.8 16 ____________ is used to prevent invalid data entry to the database (1) integrity constraints (2) security constraints (3) entity constraints 17 Entity integrity constraints are used to enforce ____ in the database (1) integrity (2) consistency (3) security 18 To enforce an integrity rule based os a logical or boolean expression,we can use _________constraint (1) not null (2) primary (3) check 19 The NOT null costraint can be given only at ________ level (1) row (2) column (3) table 20 ________ key is used to identify each row in the table uniquely (1) foreign (2) primary (3) composite 21 An _____ is a pointer to data in a table (1) integrity (2) index (3) table 22 A _____ index does not allow any duplicate values to be inserted into the table (1) not null (2) check (3) unique 23 A __________ index is an index on two or more columns of a table (1) composite (2) unique (3) implicit 24 Indexes are automatically created for _______ key constraints and unique constraints (1) primary (2) foreign (3) secondary 25 Indexes should not be used on columns that contain a high number of ___ values (1) NUMERIC (2) ALPHANUMERIC (3) NULL Section B (5 Marks Questions) 1. 2. 3. 4. 5. Write about single row function. Explain any five numeric functions with example What is mean by group function? What is the use of having clause? Write a short note on conversion function Section C (8 Mark Questions) 1. Explain in details about built-in-functions 2. What it is mean by grouping data? Explain with example 3. Write in details about nesting group function Unit IV Section A (Multiple choice Question) 1. _________ functions operate on groups of rows and return one value for the entire group (1) Group (2) number (3) date 2 _______ function returns the number of rows in the table (1) NUMBER() (2) COUNT() (3) CNT() 3 A _________ operation retrieves columns from two or more tables (1) join (2) inner join (3) outer join 4 _________type of join is used when a table has a foreign key that references its own primary key (1) equi join (2) self-join (3) outer-join 5 An SQL join clause combines records from two or more _____ in a database (1) databases (2) queries (3) tables 6 A table (base table, view, or joined table) can JOIN to itself is a __________ (1) self-join (2) outer-join (3) equi-join 7 In SQL, a ____ is a virtual table based on the result-set of an SQL statement (1) sequences (2) view (3) synonyms 8 The fields in a view are fields from one or more real______ in the database. (1) tables (2) databases (3) queries 9 The ____ option allows a view to be created even if a base table that the view references does not already exist (1) FORCE (2) NO FORCE (3) OR REPLACE 10 The ____ option allows creation of a view that is read-only (1) READ-ONLY (2) READ (3) WITH READ ONLY 11 A _____ is an alias, that is, a form of shorthand used to simplify the task of referencing a database object (1) Synonyms (2) sequences (3) views 12 A_________ synonym can be accessed by any system user (1) private (2) public (3) user 13 To create synonyms, you will need to have the ________ privilege (1) SYNONYM (2) UPDATE SYNONYM (3) CREATE SYNONYM 14 The RENAME SYNONYM command only works for _________ synonyms (1) private (2) public (3) none of the above 15 _____ synonyms can be renamed with the RENAME SYNONYM command (1) public (2) private (3) user 16 In Oracle,sequences of unique numbers are called ________ (1) sysnonyms (2) views (3) seqences 17 A sequence is a type of database ______ (1) view (2) object (3) value 18 The sequence of numbers can be generated in either __________ order (1) ascending (2) descending (3) ascending or descending 19 Sequence values are generated through the use of two ________ (1) database objects (2) pseudocolumns (3) pseudorows 20 In the case of a descending sequence, the MAXVALUE should be _____ than the MINVALUE (1) greater (2) less (3) equal 21 The clause in view allows rows that can be selected through the view to be _______________updated (1) WITH READ ONLY OPTION (2) WITH CONSTRAINT (3) WITH CHECK OPTION 22 There are _____________ types of synonyms available (1) 3 (2) 2 (3) 1 23 views, indexes, and synonyms, a sequence is a type of database __________ (1) tablespaces (2) table (3) object 24 When data from more than one table in the database is required ________ a condition is used (1) join (2) insert (3) add 25 A foreign key constraint also known as ___________ integrity contraint (1) referential (2) address (3) composite Section B (Five Mark Question) 1. 2. 3. 4. 5. List out the set operators in Oracle How to alter an existing View? Define table indexes. How the drop the sequence that created? Mention the uses of the View & Sequence Section c (Eight mark question) 1. What is mean by joins? Explain its types. 2. Write a brief note on Views. 3. Explain in detail about table indexes Unit V Section A (Multiple choice question) 1. PL/SQL Stands for ___________ Language/SQL (1) Procedural (2) Programming (3) Practical 2 PL/SQL Supports the declaration and ____ of object types (1) definition (2) manipulation (3) conclusion 3 Applicaitons written in PL/SQL are ______ to any OS (1) applicable (2) adoptable (3) portable 4 A PL/SQL block can be divided into __________ parts (1) 1 (2) 2 (3) 3 5 In PL/SQL procedursl statements are included between the ____________ statements (1) BEGIN and END (2) START and END (3) START and EXIT 6 In PL/SQL, ________ are used to name objects (1) literals (2) constants (3) identifiers 7 An identifier must begin with ________ (1) alphabet (2) symbol (3) comments 8 ________ is an explicitly specified number,character,string or boolean value (1) identifiers (2) literals (3) constants 9 ___________ statements are the non-executable statements (1) delimiters (2) symbols (3) comments 10 LOB stands for ___________ data (1) Least Object Data (2) Long Object Data (3) Large Object 11 Which of the following datatype is used for character objects? (1) BLOB (2) CLOB (3) BFILE 12 A _________ is a sub program that performs a specifies action (1) Functions (2) Packages (3) Procedures 13 A ___________ is a handle or pointer to the context area (1) cursor (2) procedure (3) object 14 A ________ is a database object that groups logically related PL/SQL objects (1) Procedure (2) Function (3) Packages 15 ___________ cursor's select statements are known ar compile time (1) implicit (2) static (3) dynamic 16 ____________ named as PL/SQL blocks that can accept parameters (1) sub programs (2) sub procedures (3) sub modules 17 __________ is a stored procedure that is fixed, when an insert,update or delete statement is issued (1) packages (2) triggers (3) functions 18 The trigger statements specify the _______ statements (1) DDL (2) DML (3) TCL 19 By default,triggers are ______ (1) enabled (2) disabled (3) created 20 PL/SQL variables are declared in the ________ part of a PL/SQL block (1) executable (2) declarative (3) accessible 21 The function specification begins with the keyword _____ (1) fun (2) function (3) begin function 22 A _________ item can be accessed from any program and Pl/SQL block (1) private (2) public (3) new 23 A trigger can be disabled using the _________ trigger statement (1) alter (2) disable (3) insert 24 A trigger can be dropped from the database using ______ command (1) delete (2) drop (3) alter 25 The Trigger ________ is an optional part (1) statement (2) body (3) restriction Section B (Five Mark Question) 1. 2. 3. 4. 5. What is mean by reserved words? What are conditions to define user defined identifier? Define stored procedures. List out the uses of triggers. Write a short note functions Section C (Eight Mark Questions) 1. What is block structure? Explain in details. 2. Write a brief note about cursors and explain its types 3. Explain in detail about triggers