1.
SQL stands for__
Correct Answer
A. Structured query language
Explanation
SQL stands for Structured Query Language. It is a programming language that is used to manage and manipulate relational databases. It is designed to communicate with databases and retrieve, insert, update, and delete data. SQL is widely used in the field of database management and is considered the standard language for relational database management systems.
2.
Which of these stores and manages SQL triggers?
Correct Answer
D. DMBS
Explanation
A Database Management System (DBMS) is responsible for storing and managing SQL triggers. Triggers are database objects that are associated with a table and are executed automatically when a specific event occurs, such as an insert, update, or delete operation on the table. The DBMS is responsible for storing and managing these triggers, ensuring that they are executed correctly and at the appropriate times.
3.
Data which are updated in a view are__ in a table
Correct Answer
D. Updated
Explanation
When data is updated in a view, it means that the information in the view has been changed or modified. This updated data is not physically stored in the view itself, but rather it reflects the changes made to the underlying table. Therefore, the correct answer is "Updated" because the data in the view is updated based on the changes made in the table.
4.
Which of the following is not true?
Correct Answer
A. The result of using a view are permanently stored in the database
Explanation
Views are not permanently stored in the database. They are virtual tables that are created based on the result of a query, and the data in the view is not physically stored. Instead, the view is dynamically generated each time it is queried. This allows for efficient data retrieval and manipulation without the need to store redundant data.
5.
Which of these is a physical structure containing pointers to a data?
Correct Answer
C. Index
Explanation
An index is a physical structure that contains pointers to data. It is used to improve the efficiency of data retrieval operations by allowing quick access to specific data records based on certain criteria. The index contains key values and corresponding pointers to the actual data location, making it easier and faster to locate and retrieve specific data.
6.
What are the two parts of SQL?
Correct Answer
C. DDL and DML
Explanation
The two parts of SQL are DDL (Data Definition Language) and DML (Data Manipulation Language). DDL is used to define and modify the structure of the database, including creating tables, altering table structures, and defining constraints. DML is used to manipulate the data within the database, including inserting, updating, and deleting records. DML is often used in conjunction with programming languages like Java to interact with the database.
7.
Why is truncate faster than delete in SQL? Because
Correct Answer
A. It deletes only from the database
Explanation
Truncate is faster than delete in SQL because it only deletes data from the database, whereas delete changes data instead of deleting it. Truncate does not generate any rollback data, making it faster as it does not need to write deleted records into rollback. On the other hand, delete moves data out of the database instead of deleting it, which can be a slower process.
8.
All of these are queries and commands on the DML part of SQL except__
Correct Answer
C. Drop table
Explanation
The correct answer is "Drop table." The other options, Select, Update, and Delete, are all valid queries and commands in the Data Manipulation Language (DML) part of SQL. The Drop table command, on the other hand, is a Data Definition Language (DDL) command used to delete a table from the database.
9.
In what objects are the data stored in RDBMS?
Correct Answer
B. Tables
Explanation
In an RDBMS (Relational Database Management System), data is stored in tables. Tables consist of rows and columns, with each row representing a record and each column representing a specific attribute or field of the data. Tables provide a structured and organized way to store and retrieve data in a relational database.
10.
What processe is used optimize databases to remove potential for redundancy?
Correct Answer
A. Nomination
Explanation
Normalization is the process used to optimize databases and remove potential redundancy. It involves organizing data in a database to minimize duplication and improve efficiency. By breaking down data into smaller, logical units and eliminating redundant information, normalization helps to ensure data integrity and consistency. This process helps in reducing data redundancy, improving data consistency, and enhancing database performance.