Home      Tests New!      Polls      Discussion Forums     Take a Quiz     Make a Quiz     Login     Contact QuizMoz Go to Home Page  


   
  Find a quiz.
  Example: Harry Potter Quiz


Create your own Poll
Create a Test
Make a Trivia Quiz
Make a Quiz about Yourself
Make Free Personality Test
Recommend QuizMoz
  Personal Injury Law Quizzes






 
Hottest Quizzes
Valentine Quiz
 

Featured Quizzes
 Michael Jackson Quiz
 English Language Test
 Does He Love You Quiz
 Business Phone Etiquette Quiz
 Impossible Quiz
 Personality Quiz
 Free Quizzes
 Tiger Woods Wife Cheating Quiz
 Keira Knightley Quiz
 Rage Against The Machines Quiz
 FIFA World Cup 2010
 Are you in Love Quiz
 Skeletal System Quiz
 Love Personality Quiz
 NFL Quiz



 



      Home > Quizzes and Fun Tests > Oracle OCP Practice Tests > Free Oracle OCP Practice Test - Oracle 9i SQL OCP Test

Hottest Quizzes
  Valentine Quiz
 
 Free Oracle OCP Practice Test - Oracle 9i SQL OCP Test

Welcome to the QuizMoz Free Oracle OCP Practice Test - Oracle 9i SQL OCP Test. QuizMoz offers one of the Internet's largest collection of quizzes for you to tease your brain and pit your wits against the experienced QuizMoz quiz masters. Go ahead and find out what you know about yourself and the world around you. Best of luck!!

 Free Oracle OCP Practice Test - Oracle 9i SQL OCP Test Facts
 Average Score for this quiz: 43.5%
 No of times this quiz has been taken: 228
 No of people passing this quiz: 103
 No of people failing this quiz: 125
 Maximum score for this quiz: 100%

Coverage
:
  • Creating Views
  • Manipulating Data
  • Including Constraints
  • Creating Other Database Objects
  • Controlling User Access
  • Creating and Managing Tables
  •  Free Oracle OCP Practice Test - Oracle 9i SQL OCP Test Discussion Forum
    1. Examine the structure of the EMPLOYEES table:

    EMPLOYEE_ID                 NUMBER                 Primary Key
    FIRST_NAME                 VARCHAR2 (25)
    LAST_NAME                 VARCHAR2 (25)
    HIRE_DATE                 DATE

    Which UPDATE statement is valid?
    a.UPDATE employees SET first_name = 'John' SET last_name='Smith' WHERE employee_id = 180;
    b.UPDATE employees SET first_name = 'John', SET last_name ='Smith' WHERE employee_id = 180;
    c.UPDATE employees SET first_name = 'John' AND last_name ='Smith' WHERE employee_id = 180;
    d.UPDATE employees SET first_name = 'John', last_name ='Smith' WHERE employee_id = 180;
    2. What does the TRUNCATE statement do?
    a.Removes the table
    b.Removes all rows from a table
    c.Shortens the tale to 10 rows
    d.Removes all columns from a table
    3. Which statement will user KING use to create a private synonym when referencing the EMPLOYEE table existing in user JOHN's schema?
    a.CREATE SYNONYM emp
    FOR John.employee;
    b.CREATE PUBLIC emp SYNONYM
    FOR John.employee;
    c.CREATE PUBLIC SYNONYM emp
    FOR John.KING;
    d.CREATE PRIVATE SYNONYM emp
    FOR John.employee;
    4. The following statement was issued:

    REVOKE REFERENCES
    ON ITEMS
    FROM John
    CASCADE CONSTRAINTS;

    Which of the following tasks were accomplished by executing this statement?
    a.The ability to create a FOREIGN KEY constraint on the ITEMS table was revoked from user John
    b.The ability to create a PRIMARY KEY constraint was revoked from user John
    c.All the FOREIGN KEY constraints on the ITEMS table created by user John were removed
    d.All the PRIMARY KEY constraints created by user John were removed
    e.The ability to create any constraints was revoked from user John
    f.All the constraints created by user John were removed
    5. Which statement regarding DML statement functionality is true?
    a.UPDATE can update multiple columns in one table
    b.INSERT must contain a VALUES clause
    c.MERGE will delete rows that do NOT exist in either table
    d.UPDATE will add rows to a table if an INTO clause is specified
    6. With which three constructs could a view be created that would prevent a user from deleting rows in the base table on which the view is based?
    a.Inline view
    b.Subquery
    c.group function
    d.GROUP BY clause
    e.DISTINCT keyword
    7. Evaluate the following SQL script:

    CREATE USER hr IDENTIFIED BY hr01;
    CREATE ROLE manager;
    CREATE ROLE clerk;
    GRANT clerk TO manager;
    CREATE ROLE director;
    GRANT manager TO director;
    GRANT director TO hr
    /

    How many roles will the HR users have access to?
    a.1
    b.0
    c.2
    d.3
    8. A SQL SELECT statement containing the ROWNUM pseudocolumn, an ORDER BY clause, and a subquery was created. What construct was created?
    a.A Complex View
    b.A Top-n Query
    c.A Materialized View
    d.A Hierarchical Report
    9. A view was created containing groups of data, it does NOT allow DML operations, and does not contain a subquery. Which type of view was created?
    a.Inline
    b.Simple
    c.Complex
    d.Explicit
    10. Which privilege can only be granted to a user and NOT to a role?
    a.DELETE
    b.ALTER
    c.INSERT
    d.EXECUTE
    e.REFERENCES
    11. Examine the structure of the EMPLOYEES and NEW_EMPLOYEES tables:

    EMPLOYEES:
    ---------------------
    EMPLOYEE_ID         NUMBER                 Primary Key
    FIRST_NAME      VARCHAR2 (25)
    LAST_NAME       VARCHAR2 (25)
    HIRE_DATE       DATE

    NEW_EMPLOYEES:
    ---------------------------
    EMPLOYEE_ID         NUMBER                 Primary Key
    NAME                 VARCHAR2 (60)

    Which MERGE statement is valid?
    a.MERGE INTO new_employees c USING employees e ON (c.employee_id = e.employee_id) WHEN MATCHED THEN UPDATE SET c.name = e.first_name ||','|| e.last_name WHEN NOT MATCHED THEN INSERT VALUES (e.employee_id, e.first_name ||', '||e.last_name);
    b.MERGE new_employees c USING employees e ON (c.employee_id = e.employee_id) WHEN EXISTS THEN UPDATE SET c.name = e.first_name ||','|| e.last_name WHEN NOT MATCHED THEN INSERT VALUES (e.employee_id, e.first_name ||', '||e.last_name);
    c.MERGE INTO new_employees c USING employees e ON (c.employee_id = e.employee_id) WHEN EXISTS THEN UPDATE SET c.name = e.first_name ||','|| e.last_name WHEN NOT MATCHED THEN INSERT VALUES(e.employee_id, e.first_name ||', '||e.last_name);
    d.MERGE new_employees c FROM employees e ON (c.employee_id = e.employee_id) WHEN MATCHED THEN UPDATE SET c.name = e.first_name ||','|| e.last_name WHEN NOT MATCHED THEN INSERT INTO new_employees VALUES (e.employee_id, e.first_name ||', '||e.! last_name);
    12. Evaluate the following DELETE statement:

    DELETE employee_id, salary, job_id FROM employees
    WHERE dept_id = 40;

    Why does the DELETE statement fail when executed?
    a.There is no row with dept_id 90 in the EMPLOYEES table
    b.The JOB_ID column cannot be deleted  because it is a NOT NULL column
    c.Column names were not specified in the DELETE clause of the DELETE statement
    d.The EMPLOYEE_ID column cannot be deleted because it is the primary key of the table
    Think you know more about this quiz!

     
    Please enter your Name and what you would like to tell everyone about Free Oracle OCP Practice Test - Oracle 9i SQL OCP Test
     Name:
    Think you know more about Free Oracle OCP Practice Test - Oracle 9i SQL OCP Test and would like others to know too? Whether its a great fact, a joke, a personal experience or an interesting anecdote, please share it with all the human beings on planet earth. Your contribution will help keep QuizMoz a free site for all.

       (Optional)
     (average submission size - 5 to 10 lines)


    Free Oracle OCP Practice Test - Oracle 9i SQL OCP Test Discussion Forum
    Know the Latest News about Free Oracle OCP Practice Test - Oracle 9i SQL OCP Test!


    What others think about Free Oracle OCP Practice Test - Oracle 9i SQL OCP Test
    By: Quinn on Dec 4, 2009
      Good Stuff
    By: saikat on Nov 3, 2009
      help a bit. more question can help much.
    By: Thapelo on May 19, 2009
      good test to prepare.
    By: Mike Masembe on May 12, 2009
      Great. Thanks
    By: BHUTWALA on Mar 23, 2009
      good test
    By: sriya on Mar 23, 2009
      its good :)
    By: Naveed Ali 923214935853 on Feb 11, 2009
      Good help for pre test.
      



    Hot Links
     

     
    Hottest Quizzes
    Valentine Quiz
     

    Most Popular Quizzes
     Free IQ Test
     Big Brother 2010
     Kids General Knowledge Quiz
     2009 General Knowledge Quiz
     NBA 2010 Quiz
     Science Quiz for Kids
     Medical Terminology Quiz
     Career Quiz for Kids
     Home And Away Quiz
     Harry Potter Quiz
     US History Quiz
     Am I Pregnant Quiz
     Dating Etiquette Quiz
     Email Etiquette Quiz




     
    Home     About Us      Advertise     Terms of Service     Privacy Policy     Contact QuizMoz    FAQ     SiteMap
    Copyright © 2007.www.quizmoz.com. All rights are reserved.