PL/SQL MOCK TEST PL/SQL MOCK TEST IV

Similar documents
DB2 MOCK TEST DB2 MOCK TEST I

C# MOCK TEST C# MOCK TEST II

DESIGN PATTERNS MOCK TEST DESIGN PATTERNS MOCK TEST III

DESIGN PATTERNS MOCK TEST DESIGN PATTERNS MOCK TEST II

PYTHON MOCK TEST PYTHON MOCK TEST III

PERL MOCK TEST PERL MOCK TEST II

JAVA MOCK TEST JAVA MOCK TEST II

Question Bank PL/SQL Fundamentals-I

JAVA MOCK TEST JAVA MOCK TEST IV

JAVA MOCK TEST JAVA MOCK TEST III

MAVEN MOCK TEST MAVEN MOCK TEST I

EJB MOCK TEST EJB MOCK TEST IV

COBOL MOCK TEST COBOL MOCK TEST III

C# MOCK TEST C# MOCK TEST I

JDBC MOCK TEST JDBC MOCK TEST IV

MAVEN MOCK TEST MAVEN MOCK TEST IV

PROCEDURAL DATABASE PROGRAMMING ( PL/SQL AND T-SQL)

HIBERNATE MOCK TEST HIBERNATE MOCK TEST IV

GO MOCK TEST GO MOCK TEST I

ORACLE: PL/SQL Programming

CICS MOCK TEST CICS MOCK TEST I

HIVE MOCK TEST HIVE MOCK TEST III

Oracle PLSQL. Course Summary. Duration. Objectives

HIBERNATE MOCK TEST HIBERNATE MOCK TEST I

Manipulating Data. Copyright 2004, Oracle. All rights reserved.

ANGULARJS - MOCK TEST ANGULARJS MOCK TEST II

Database Programming with SQL

Data Manipulation Language

JSP MOCK TEST JSP MOCK TEST III

NODE.JS MOCK TEST NODE.JS MOCK TEST IV

JAVASCRIPT MOCK TEST JAVASCRIPT MOCK TEST I

Táblák tartalmának módosítása. Copyright 2004, Oracle. All rights reserved.

Table of Contents. PDF created with FinePrint pdffactory Pro trial version

HBASE MOCK TEST HBASE MOCK TEST III

EXAM PGCES-02. PostgreSQL CE 8 Silver Exam.

MAVEN MOCK TEST MAVEN MOCK TEST III

Business Analytics. SQL PL SQL [Oracle 10 g] P r i n c e S e t h i w w w. x l m a c r o. w e b s. c o m

SQL Interview Questions

Oracle Database 11g: SQL and PL/SQL Fundamentals

HTML5 MOCK TEST HTML5 MOCK TEST I

PL/SQL Block structure

RDBMS-Day3. SQL Basic DDL statements DML statements Aggregate functions

HIBERNATE MOCK TEST HIBERNATE MOCK TEST II

QC MOCK TEST QC MOCK TEST

Transaction Management Chapter 11. Class 9: Transaction Management 1

Oracle Database: SQL and PL/SQL Fundamentals NEW

Introduction to Computer Science and Business

Oracle Database: SQL and PL/SQL Fundamentals Ed 2

JSP MOCK TEST JSP MOCK TEST IV

Contents I Introduction 1 Introduction to PL/SQL iii

Oracle. SQL(Structured Query Language) Introduction of DBMS. Build In Function. Introduction of RDBMS. Grouping the Result of a Query

CSS MOCK TEST CSS MOCK TEST III

Weak Levels of Consistency

LECTURE11: TRANSACTION CONTROL LANGUAGE DATA CONTROL LANGUAGE

5. Single-row function

Oracle SQL & PL SQL Course

INTRODUCTION TO DATABASE

Oracle Database: Introduction to SQL/PLSQL Accelerated

NODE.JS MOCK TEST NODE.JS MOCK TEST I

OVERVIEW OF THE TYPES OF PL/SQL BLOCKS:

2 PL/SQL - fundamentals Variables and Constants Operators SQL in PL/SQL Control structures... 7

GWT MOCK TEST GWT MOCK TEST I

Database Programming with PL/SQL

II B.Sc(IT) [ BATCH] IV SEMESTER CORE: RELATIONAL DATABASE MANAGEMENT SYSTEM - 412A Multiple Choice Questions.

Module 9: Managing Schema Objects

Edition-Based Redefinition

Introduction to SQL/PLSQL Accelerated Ed 2

JCL MOCK TEST JCL MOCK TEST IV

SPRING MOCK TEST SPRING MOCK TEST I

VB.NET MOCK TEST VB.NET MOCK TEST III

G64DBS Database Systems. Lecture 7 SQL SELECT. The Data Dictionary. Data Dictionaries. Different Sections of SQL (DDL) Different Sections of SQL (DCL)

M.C.A. (CBCS) Sem.-III Examination November-2013 CCA-3004 : Database Concepts and Tools. Faculty Code: 003 Subject Code:

More RDBMS(Relational Database Management System) Summary

Database Management Systems

Database Programming with PL/SQL

Creating and Managing Tables Schedule: Timing Topic

VB.NET MOCK TEST VB.NET MOCK TEST I

CS6312 DATABASE MANAGEMENT SYSTEMS LABORATORY L T P C

Database Management Systems Paper Solution

Table of Contents. Oracle SQL PL/SQL Training Courses

PLSQL Interview Questions :

Question: Which statement would you use to invoke a stored procedure in isql*plus?

Topics Fundamentals of PL/SQL, Integration with PROIV SuperLayer and use within Glovia

EDUVITZ TECHNOLOGIES

Introduction. Introduction to Oracle: SQL and PL/SQL

Review -Chapter 4. Review -Chapter 5

Oracle 1z z0-146 Oracle Database 11g: Advanced PL/SQL. Practice Test. Version QQ:

Oracle PLSQL Training Syllabus

Oracle Syllabus Course code-r10605 SQL

COBOL - TABLE PROCESSING

COMPUTER MCQs. 1. DOS floppy disk does not have 1) a boot record 2) a file allocation table 3) a root directory

Basant Group of Institution

Mahathma Gandhi University

Lecture11: Transaction Control Language Data Control Language

Chapter 7. Introduction to Structured Query Language (SQL) Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel

ANDROID MOCK TEST ANDROID MOCK TEST IV

COWLEY COLLEGE & Area Vocational Technical School

Chapter 9: Working with MySQL

Topic 3 Object Relational Database

1Z0-144 Q&As Oracle Database 11g: Program with PL/ SQL

Transcription:

http://www.tutorialspoint.com PL/SQL MOCK TEST Copyright tutorialspoint.com This section presents you various set of Mock Tests related to PL/SQL. You can download these sample mock tests at your local machine and solve offline at your convenience. Every mock test is supplied with a mock test key to let you verify the final score and grade yourself. PL/SQL MOCK TEST IV Q 1 - Which of the following statement will create the specification for a package named cust_sal A - CREATE PACKAGE BODY cust_sal AS B - CREATE PACKAGE cust_sal AS C - CREATE PACKAGE SPECIFICATION cust_sal AS D - PACKAGE cust_sal AS Q 2 - Which of the following syntax will be used to access a package element? A - package_name element_name; B - element_name.package_name; C - package_name.element_name;

Q 3 - Which of the following is not true about PL/SQL collections? A - A collection is an ordered group of elements having the same data type. B - A collection is an ordered group of elements having different data type. C - Each element is identified by a unique subscript that represents its position in the collection. D - Nested tables and Varrays are types of PL/SQL collections. Q 4 - Which of the following is a PL/SQL collection types? A - Index-by tables or Associative array B - Nested table C - Variable-size array or Varray Q 5 - Which of the following is true about PL/SQL index-by tables? A - It is a set of key-value pairs. B - Each key is unique and is used to locate the corresponding value. C - The key can be either an integer or a string. Q 6 - Which of the following code is the correct syntax for creating an index-by table named salary that will store integer values along with names and the name field will be the key? A - TYPE salary IS TABLE OF NUMBER INDEX BY VARCHAR220; B - CREATE TABLE salary OF NUMBER INDEX BY VARCHAR220; C - TYPE salary IS INDEXED TABLE OF NUMBER INDEX BY VARCHAR220; Q 7 - Which of the following is true about PL/SQL nested tables? A - Nested tables are like one-dimensional arrays with arbitrary number of elements. B - Unlike arrays a nested table doesn t have declared number of elements. The size of a nested table can increase dynamically. C - Initially a nested array has consecutive subscripts or dense, but it can become sparse when elements are deleted from it. Q 8 - Which of the following is not true about PL/SQL nested tables?

A - Declaration of a nested table is similar to declaration of an index-by table along with the INDEX BY clause. B - A nested table can be stored in a database column. C - Elements of a nested table could be a %ROWTYPE of any database table. D - Elements of a nested table could also be %TYPE of any database table field. Q 9 - Which of the following code is the correct syntax for creating a nested table named salary that will store integer values? A - TYPE salary IS TABLE OF INTEGER; B - TYPE salary IS NESTED TABLE OF INTEGER; C - TABLE salary IS NESTED BY INTEGER; D - TABLE salary IS INDEXED BY INTEGER; Q 10 - The collection method LIMIT A - Returns the last largest index numbers in a collection that uses integer subscripts. B - Returns the number of elements that a collection currently contains. C - Checks the Maximum Size of a Collection. Q 11 - The collection method LAST A - Returns the last largest index numbers in a collection that uses integer subscripts. B - Returns the number of elements that a collection currently contains. C - Checks the Maximum Size of a Collection. Q 12 - The collection method COUNT A - Returns the last largest index numbers in a collection that uses integer subscripts. B - Returns the number of elements that a collection currently contains. C - Checks the Maximum Size of a Collection. Q 13 - Which of the following is not true about database transactions? A - A database transaction is an atomic unit of work. B - It may consist of one or more related SQL statements. C - A successfully executed SQL statement and a committed transaction are not same.

Q 14 - Which of the following is true about database transactions? A - The SQL statements that constitute a transaction can collectively be either committed, i.e., made permanent to the database or rolled back undone from the database. B - A transaction has a beginning and an end. C - None of the above. D - Both of the above. Q 15 - A transaction starts when A - The first SQL statement is performed after connecting to the database. B - At each new SQL statement issued after a transaction is completed. C - None of the above. D - Both of the above. Q 16 - A transaction ends when A - A COMMIT or a ROLLBACK statement is issued. B - A DDL statement, like CREATE TABLE statement, is issued; because in that case a COMMIT is automatically performed. C - A DCL statement, such as a GRANT statement, is issued; because in that case a COMMIT is automatically performed. Q 17 - Savepoints are set to A - Help in splitting a long transaction into smaller units. B - Help in rolling back to some checkpoint, within a long transaction. C - To execute a COMMIT automatically. D - Answer a. and b. Q 18 - What will be the output of the following code? DECLARE lines dbms_output.chararr; num_lines number; BEGIN dbms_output.enable; dbms_output.put_line('hello!' dbms_output.put_line('hope you are doing well!' num_lines := 2; dbms_output.get_lines(lines, num_lines FOR i IN 1..num_lines LOOP dbms_output.put_line(lines(i) END LOOP;

END; A - Hello! Hope you are doing well! B - He Ho C - Hello! Hope you D - Hello! Q 19 - Which of the following is not true about object oriented PL/SQL? A - It helps in designing object-oriented database in Oracle. B - An object type allows you to crate composite types. C - Objects are created using the CREATE [OR REPLACE] CLASS statement. Q 20 - Which of the following code will create an object type named local_address with two field house_no and street? A - CREATE OR REPLACE OBJECT local_address B - CREATE OR REPLACE TYPE local_address AS OBJECT C - CREATE OR REPLACE OBJECT local_address AS D - CREATE OR REPLACE CLASS local_address Q 21 - Which of the following is true about member methods? A - Member methods are used for manipulating the attributes of the object.

B - Declaration of a member method is provided while declaring the object type. C - The object body defines the code for the member methods. Q 22 - Which of the following is not true about the Constructors? A - These are functions that return a new object as its value. B - Every object has a system defined constructor method. C - The name of the constructor is same as the object type. Q 23 - Which of the following is not true about the comparison methods? A - These are used for comparing objects. B - The Map method is a function implemented in such a way that its value doesn t depend upon the value of the attributes. C - The Order methods implement some internal logic for comparing two objects. Q 24 - Which of the following is true about the inheritance for PL/SQL Objects? A - PL/SQL allows creating object from existing base objects. B - To implement inheritance, the base objects should be declared as NOT FINAL. C - The NOT INSTANTIABLE clause allows you to declare an abstract object. Q 25 - The following code tries to create a base object named rectangle, which will be inherited. What is wrong in the code? CREATE OR REPLACE TYPE rectangle AS OBJECT (length number, width number, member function enlarge( inc number) return rectangle, NOT FINAL member procedure display) A - The declaration should read as CREATE OR REPLACE OBJECT rectangle AS B - The base object should not have any member attribute or functions. C - The base object rectangle should be declared as NOT FINAL. D - None of the above ANSWER SHEET

Question Number Answer Key 1 B 2 C 3 A 4 D 5 D 6 A 7 D 8 A 9 A 10 C 11 A 12 B 13 D 14 D 15 D 16 D 17 D 18 A 19 C 20 B 21 D 22 D 23 B 24 D 25 C Loading [MathJax]/jax/output/HTML-CSS/jax.js