Data Triggs Round 1

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By Alekhya_Kondapur
A
Alekhya_Kondapur
Community Contributor
Quizzes Created: 1 | Total Attempts: 156
Questions: 22 | Attempts: 156

SettingsSettingsSettings
Data Triggs Round 1 - Quiz

.


Questions and Answers
  • 1. 

    Who proposed the relational model?

    • A.

      Herman Hollerith

    • B.

      Raymond F Boyce

    • C.

      Charles Babbage

    • D.

      Edgar F Codd

    Correct Answer
    D. Edgar F Codd
    Explanation
    Edgar F Codd proposed the relational model. The relational model is a database model that organizes data into tables, each consisting of rows and columns. Codd introduced this model in his seminal paper "A Relational Model of Data for Large Shared Data Banks" in 1970. This model revolutionized the field of database management systems and laid the foundation for the development of modern relational databases.

    Rate this question:

  • 2. 

    Who proposed the relational model?

    • A.

      Herman Hollerith

    • B.

      Raymond F Boyce

    • C.

      Charles Babbage

    • D.

      Edgar F Codd

    Correct Answer
    D. Edgar F Codd
    Explanation
    Edgar F Codd proposed the relational model. This model is a database model that organizes data into tables, with each table consisting of rows and columns. It is based on the concept of mathematical relations and provides a structured and efficient way to store and retrieve data. Codd's proposal revolutionized the field of database management systems and laid the foundation for the development of relational databases that are widely used today.

    Rate this question:

  • 3. 

    Who proposed the relational model?

    • A.

      Herman Hollerith

    • B.

      Raymond F Boyce

    • C.

      Charles Babbage

    • D.

      Edgar F Codd

    Correct Answer
    D. Edgar F Codd
    Explanation
    Edgar F Codd is the correct answer because he is widely recognized as the proposer of the relational model. In the 1970s, Codd developed the relational model for database management, which revolutionized the field of data organization and retrieval. His model introduced the concept of tables with rows and columns, and the use of relational algebra to manipulate and query data. Codd's work laid the foundation for modern relational database systems and has had a significant impact on the field of computer science.

    Rate this question:

  • 4. 

    With SQL, how do you select all the records from a table named "Persons"  from the column  "FirstName" starting with  "a"?

    • A.

      SELECT * FROM Persons WHERE FirstName='a';

    • B.

      SELECT * FROM Persons WHERE FirstName LIKE 'a%';

    • C.

      SELECT * FROM Persons WHERE FirstName LIKE '%a';

    • D.

      SELECT * FROM Persons WHERE FirstName LIKE'%a'%;

    Correct Answer
    B. SELECT * FROM Persons WHERE FirstName LIKE 'a%';
    Explanation
    The correct answer is "SELECT * FROM Persons WHERE FirstName LIKE 'a%';". This query uses the "LIKE" operator with the pattern 'a%' to select all records from the "Persons" table where the "FirstName" column starts with the letter 'a'. The '%' symbol acts as a wildcard, allowing for any characters to follow the 'a'.

    Rate this question:

  • 5. 

    Which of the following is true regarding NULL?

    • A.

      NULL=0

    • B.

      NULL

    • C.

      NULL>0

    • D.

      NULL0

    Correct Answer
    D. NULL0
    Explanation
    The given correct answer is "NULL0". In programming, "NULL" represents a value that indicates the absence of a valid or meaningful data. In this case, "NULL0" is a combination of the "NULL" value and the number "0". This expression does not have any specific meaning or behavior in most programming languages. It is important to note that "NULL" and "0" are not equivalent in programming, as "NULL" represents the absence of a value while "0" is a specific numeric value.

    Rate this question:

  • 6. 

    ____________ was adopted as a national standard by ANSI in 1992?

    • A.

      Oracle

    • B.

      SQL

    • C.

      DBase

    • D.

      Microsoft Access

    Correct Answer
    B. SQL
    Explanation
    SQL (Structured Query Language) was adopted as a national standard by ANSI in 1992. SQL is a programming language used for managing and manipulating relational databases. It provides a standardized way to interact with databases, allowing users to create, retrieve, update, and delete data. The adoption of SQL as a national standard by ANSI in 1992 further solidified its importance and widespread use in the field of database management.

    Rate this question:

  • 7. 

    Which of the following is a group of one or more attributes that uniquely identify a row?

    • A.

      Key

    • B.

      Determinant

    • C.

      Tuple

    • D.

      Relation

    Correct Answer
    A. Key
    Explanation
    A key is a group of one or more attributes that uniquely identify a row in a database table. It is used to ensure the uniqueness of each row and to establish relationships between tables. A key can be a single attribute or a combination of multiple attributes. The key allows for efficient searching and retrieval of data within the database.

    Rate this question:

  • 8. 

    Which of the following is NOT a unary operation?

    • A.

      SELECT

    • B.

      UNION

    • C.

      RENAME

    • D.

      PROJECT

    Correct Answer
    B. UNION
    Explanation
    A unary operation is an operation that takes only one input. The SELECT, RENAME, and PROJECT operations are all examples of unary operations as they each operate on a single relation or table. However, UNION is a binary operation that combines two relations or tables into a single result. Therefore, UNION is not a unary operation.

    Rate this question:

  • 9. 

    What output will the following query produce?SELECT NVL2(NULL, 'NOT NULL', NULL) FROM DUAL;

    • A.

      NULL

    • B.

      NOT NULL

    • C.

      Function NVL2 is not defined

    • D.

      None of the Above

    Correct Answer
    A. NULL
    Explanation
    The query will produce the output "NULL". The NVL2 function is used to check if the first argument is null or not. In this case, the first argument is NULL, so the function returns the second argument, which is 'NOT NULL'. However, since the first argument is NULL, the function returns NULL. Therefore, the output of the query is NULL.

    Rate this question:

  • 10. 

    What are ACID properties of transactions?

    • A.

      Atomicity, Consistency, Isolation, Database

    • B.

      Atomicity, Consistency, Isolation, Durability

    • C.

      Atomicity, Concurrency, Inconsistent, Durability

    • D.

      Atomicity, Concurrency, Isolation, Durability

    Correct Answer
    B. Atomicity, Consistency, Isolation, Durability
    Explanation
    The ACID properties of transactions refer to a set of characteristics that ensure the reliability and integrity of database transactions. Atomicity means that a transaction is treated as a single, indivisible unit of work, ensuring that either all the changes made by the transaction are committed or none of them are. Consistency ensures that a transaction brings the database from one consistent state to another, adhering to predefined rules. Isolation ensures that concurrent transactions do not interfere with each other, maintaining data integrity. Durability guarantees that once a transaction is committed, its changes are permanent and will survive any subsequent system failures.

    Rate this question:

  • 11. 

    The SQL -92 wildcards are __________ and __________.

    • A.

      Asterisk(*) ; percent sign(%)

    • B.

      Percent sign(%) ; underscore(_)

    • C.

      Underscore(_) ; question mark(?)

    • D.

      Question mark(?) ; asterisk(*)

    Correct Answer
    B. Percent sign(%) ; underscore(_)
    Explanation
    The SQL -92 wildcards are the percent sign (%) and the underscore (_). These wildcards are used in SQL queries to represent unknown or variable characters in a search pattern. The percent sign (%) is used to match any sequence of characters, while the underscore (_) is used to match any single character. These wildcards are helpful in performing flexible and dynamic searches in a database.

    Rate this question:

  • 12. 

    Which of the following is considered as DBMS?

    • A.

      Access

    • B.

      Oracle

    • C.

      FoxPro

    • D.

      All of these

    Correct Answer
    D. All of these
    Explanation
    All of the options listed (Access, Oracle, and FoxPro) are considered as DBMS (Database Management Systems). DBMS is a software that allows users to create, manage, and manipulate databases. Access, Oracle, and FoxPro are popular examples of DBMS that provide tools and functionalities for storing, retrieving, and organizing data efficiently. Therefore, all of these options can be considered as DBMS.

    Rate this question:

  • 13. 

    Which of the following locks the item from change but not from read?

    • A.

      Implicit Lock

    • B.

      Explicit Lock

    • C.

      Exclusive Lock

    • D.

      Shared Lock

    Correct Answer
    D. Shared Lock
    Explanation
    A shared lock allows multiple users to read the item simultaneously, but it prevents any user from making changes to the item. This means that while the item is locked with a shared lock, it can be accessed for reading by multiple users, but no user can modify it. This type of lock is commonly used in scenarios where data integrity is important, and it ensures that multiple users can access and view the item without interfering with each other's operations.

    Rate this question:

  • 14. 

    What is the result of the following query?select case when null = null then 'Yup' else 'Nope' end as Result; 

    • A.

      Yup

    • B.

      Nope

    • C.

      Null

    • D.

      Error

    Correct Answer
    B. Nope
    Explanation
    The result of the given query is "Nope". This is because the comparison "null = null" evaluates to false, so the "else" part of the case statement is executed, which is "Nope".

    Rate this question:

  • 15. 

    Which of the following is NOT a DDL statement?

    • A.

      UPDATE

    • B.

      ALTER

    • C.

      CREATE

    • D.

      RENAME

    Correct Answer
    A. UPDATE
    Explanation
    UPDATE is not a DDL (Data Definition Language) statement because it is used to modify the data within a table, rather than defining or altering the structure of the database. DDL statements are used to create, alter, or drop database objects such as tables, views, indexes, and schemas. UPDATE is a DML (Data Manipulation Language) statement that is used to modify the data within a table by changing the values of existing rows.

    Rate this question:

  • 16. 

    Which of the following is an example for network database?

    • A.

      Unify

    • B.

      Ingress

    • C.

      IDMS

    • D.

      None of the above

    Correct Answer
    C. IDMS
    Explanation
    IDMS (Integrated Database Management System) is an example of a network database. It is a hierarchical database management system that organizes data in a network-like structure, allowing multiple relationships between records. In a network database, data is represented using sets and subsets, and each record can have multiple parent and child records. IDMS is designed to efficiently manage complex data relationships and provide fast access to data. Unify and Ingress are examples of relational databases, not network databases. Therefore, the correct answer is IDMS.

    Rate this question:

  • 17. 

    Which of the following query would display names of all the students whose email ids are not provided?

    • A.

      Select name from students where email = 0;

    • B.

      Select name from students where email = ' ';

    • C.

      Select name from students where email is null;

    • D.

      Select name from students where email = 'null';

    Correct Answer
    C. Select name from students where email is null;
    Explanation
    The correct answer is "select name from students where email is null;". This query selects the names of all students where the email column is null, meaning that no email address is provided for those students.

    Rate this question:

  • 18. 

    Transactions are initiated by BEGIN TRANSACTION and terminated by:

    • A.

      COMMIT TRANSACTION

    • B.

      ROLLBACK TRANSACTION

    • C.

      Either by COMMIT TRANSACTION or by ROLLBACK TRANSACTION

    • D.

      NONE

    Correct Answer
    C. Either by COMMIT TRANSACTION or by ROLLBACK TRANSACTION
    Explanation
    Transactions in a database are initiated using the BEGIN TRANSACTION command. Once the necessary operations are performed, the transaction can be terminated either by committing the changes using COMMIT TRANSACTION or by rolling back the changes using ROLLBACK TRANSACTION. This allows the user to either permanently save the changes made during the transaction or discard them completely. Therefore, the correct answer is that transactions can be terminated either by COMMIT TRANSACTION or by ROLLBACK TRANSACTION.

    Rate this question:

  • 19. 

    Which SQL statement is used to extract data from a database?

    • A.

      FROM

    • B.

      GET

    • C.

      CHOOSE

    • D.

      SELECT

    Correct Answer
    D. SELECT
    Explanation
    The SQL statement used to extract data from a database is SELECT. This statement is used to retrieve specific data from one or more tables in a database. It allows you to specify the columns you want to retrieve and apply conditions to filter the data. By using the SELECT statement, you can extract the desired information from the database based on your criteria.

    Rate this question:

  • 20. 

    Mathematically row is referred to as ___________

    • A.

      Relation

    • B.

      Attribute

    • C.

      Tuple

    • D.

      Domain

    Correct Answer
    C. Tuple
    Explanation
    In mathematics, a row is commonly referred to as a tuple. A tuple is an ordered list of elements, which can be numbers, variables, or any other mathematical objects. In the context of a relation or a table, a tuple represents a single row of data. Therefore, the correct answer for this question is "Tuple".

    Rate this question:

  • 21. 

    Which statement allows conditional update or insertion of data into a table simultaneously?

    • A.

      INSERT

    • B.

      MERGE

    • C.

      UPDATE

    • D.

      None of the above

    Correct Answer
    B. MERGE
    Explanation
    The MERGE statement allows conditional update or insertion of data into a table simultaneously. It combines the functionality of both INSERT and UPDATE statements, allowing you to specify conditions to determine whether to update existing rows or insert new rows into the table. This is useful when you want to perform an "upsert" operation, where you update a row if it exists or insert a new row if it does not. The MERGE statement is particularly helpful in scenarios where you need to synchronize data between two tables or databases.

    Rate this question:

  • 22. 

    Which of the following is an SQL query to get third maximum salary of an employee from a table named employee_table?

    • A.

      SELECT TOP 1 SALARY FROM ( SELECT TOP 3 SALARY FROM employee_table ORDER BY SALARY ASC) AS EMP ORDER BY SALARY DESC;

    • B.

      SELECT TOP 1 SALARY FROM ( SELECT TOP 3 SALARY FROM employee_table ORDER BY SALARY DESC) AS EMP ORDER BY SALARY ASC;

    • C.

      SELECT TOP 3 SALARY FROM ( SELECT TOP 1 SALARY FROM employee_table ORDER BY SALARY DESC) AS EMP ORDER BY SALARY ASC;

    • D.

      SELECT TOP 3 SALARY FROM ( SELECT TOP 1 SALARY FROM employee_table ORDER BY SALARY ASC) AS EMP ORDER BY SALARY DESC;

    Correct Answer
    B. SELECT TOP 1 SALARY FROM ( SELECT TOP 3 SALARY FROM employee_table ORDER BY SALARY DESC) AS EMP ORDER BY SALARY ASC;
    Explanation
    The given SQL query selects the top 3 salaries from the employee_table in descending order and then selects the top 1 salary from that result in ascending order. This will give us the third maximum salary from the employee_table.

    Rate this question:

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Jan 04, 2024
    Quiz Edited by
    ProProfs Editorial Team
  • Feb 15, 2017
    Quiz Created by
    Alekhya_Kondapur
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.