Oracle SQL Fundamentals Quiz! Test

Approved & Edited by ProProfs Editorial Team
At ProProfs Quizzes, our dedicated in-house team of experts takes pride in their work. With a sharp eye for detail, they meticulously review each quiz. This ensures that every quiz, taken by over 100 million users, meets our standards of accuracy, clarity, and engagement.
Learn about Our Editorial Process
| Written by Everest Emenike
E
Everest Emenike
Community Contributor
Quizzes Created: 1 | Total Attempts: 429
Questions: 10 | Attempts: 442

SettingsSettingsSettings
Oracle SQL Fundamentals Quiz! Test - Quiz

.


Questions and Answers
  • 1. 

    Which operator will be evaluated first in the following SELECT statement? SELECT (2+3*4/2-5) FROM dual;

    • A. 

      +

    • B. 

      *

    • C. 

      /

    • D. 

      -

    Correct Answer
    A. +
    Explanation
    The correct answer is +. In the given SELECT statement, the expression (2+3*4/2-5) is evaluated from left to right, following the order of operations. The multiplication and division operators (*) and (/) have higher precedence than the addition and subtraction operators (+) and (-), so they will be evaluated first. Therefore, 3*4/2 will be evaluated first, resulting in 6. Then, the addition and subtraction operators will be evaluated in the order they appear, so 2+6-5 will be calculated, resulting in 3.

    Rate this question:

  • 2. 

    Oracle Database 11g offers extensive features across the following focus areas except 

    • A. 

      Manageability    

    • B. 

      Search Option

    • C. 

      High availability    

    • D. 

      Security

    Correct Answer
    C. High availability    
    Explanation
    Oracle Database 11g offers extensive features in the areas of manageability, search option, and security. However, it does not offer extensive features in the area of high availability. High availability refers to the ability of a system to remain operational and accessible even in the event of hardware or software failures. While Oracle Database 11g does offer some features for high availability, it may not provide as extensive options as it does in the other focus areas mentioned.

    Rate this question:

  • 3. 

    Each row of data in a table is uniquely identified by a:

    • A. 

      Unique key

    • B. 

      Foreign keys

    • C. 

      Primary key

    • D. 

      Universal key

    Correct Answer
    C. Primary key
    Explanation
    A primary key is a column or a set of columns in a table that uniquely identifies each row of data. It ensures that each row has a unique identifier, which helps in distinguishing between different rows. Other keys like unique keys and foreign keys may also be used in a table, but they serve different purposes. A unique key ensures that each value in a column is unique, while a foreign key establishes a relationship between two tables. However, only a primary key guarantees the uniqueness of each row in a table.

    Rate this question:

  • 4. 

    _________ identifies the columns to be displayed and ______________ identifies the table containing  columns.

    • A. 

      From and select

    • B. 

      Where and select

    • C. 

      Select    from

    • D. 

      From and table

    • E. 

      Option 5

    Correct Answer
    A. From and select
    Explanation
    The first part of the statement, "from," is used to identify the columns to be displayed in a query. The second part, "select," is used to identify the table containing the columns.

    Rate this question:

  • 5. 

    Which of this is not correct about Column Alias?

    • A. 

      Renames a column heading

    • B. 

      Is useful with calculations    

    • C. 

      Requires double quotation marks if it contains spaces or special characters or if it is case-sensitive

    • D. 

      Is Oracle vendor specific

    Correct Answer
    D. Is Oracle vendor specific
    Explanation
    The statement "Is Oracle vendor specific" is not correct about Column Alias. Column Alias is not specific to any particular database vendor like Oracle. It is a feature available in most relational database management systems, including Oracle, that allows users to give a temporary or alternative name to a column in a query result.

    Rate this question:

  • 6. 

    Which of the clauses restricts the query to rows that meet a condition?

    • A. 

      Where    

    • B. 

      Order by

    • C. 

      Distinct

    • D. 

      Describe

    Correct Answer
    A. Where    
    Explanation
    The clause that restricts the query to rows that meet a condition is the "Where" clause. This clause is used to specify the conditions that the rows must meet in order to be included in the query result. It allows for filtering of the data based on specific criteria, such as selecting only rows where a certain column value is equal to a certain value or falls within a certain range.

    Rate this question:

  • 7. 

    Which statement is true regarding operators used with subqueries?

    • A. 

      The NOT IN operator is equivalent to IS NULL.    

    • B. 

      The <ANY operator means less than the maximum.     

    • C. 

      =ANY and =ALL operators have the same functionality.    

    • D. 

      The IN operator cannot be used in single-row subqueries.

    Correct Answer
    B. The <ANY operator means less than the maximum.     
    Explanation
    The

    Rate this question:

  • 8. 

    The relational model consists of the following except:

    • A. 

      Collection of objects or relations

    • B. 

      Data integrity for accuracy and consistency

    • C. 

      Coding java with Oracle easily    

    • D. 

      Set of operators to act on the relations

    Correct Answer
    C. Coding java with Oracle easily    
    Explanation
    The correct answer is "Coding java with Oracle easily". This answer is correct because the relational model does not involve coding in a specific programming language such as Java. The relational model focuses on the organization and manipulation of data through relations (tables) and the use of operators to perform operations on these relations. It also emphasizes data integrity to ensure accuracy and consistency. However, coding in Java with Oracle is not a fundamental component of the relational model.

    Rate this question:

  • 9. 

    Grant and revoke belongs to?

    • A. 

      Data manipulation language (DML)    

    • B. 

      Data definition language (DDL)

    • C. 

      Data control language (DCL)

    • D. 

      Transaction control

    Correct Answer
    C. Data control language (DCL)
    Explanation
    Grant and revoke are commands used to control access and permissions in a database. These commands are used to grant or revoke privileges such as SELECT, INSERT, UPDATE, and DELETE on database objects like tables, views, and procedures. This falls under the category of Data Control Language (DCL) which is specifically designed to manage and control access to the database. DCL commands are used to grant or revoke permissions, define roles, and manage security in a database system. Therefore, the correct answer is Data Control Language (DCL).

    Rate this question:

  • 10. 

    Keywords cannot be abbreviated or split across lines.    

    • A. 

      True

    • B. 

      False

    Correct Answer
    A. True
    Explanation
    This statement means that keywords cannot be shortened or divided into multiple parts when writing code. In programming languages, keywords have specific meanings and functions, and they must be written exactly as specified. Abbreviating or splitting keywords can lead to syntax errors and make the code difficult to understand and debug. Therefore, the statement is true.

    Rate this question:

Back to Top Back to top
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.