InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What Are The Three Basic Sections Of A Pl/sql Block? |
| Answer» | |
| 2. |
State Some Features Or Programming Constructs Supported By Pl/sql. |
| Answer» | |
| 3. |
Name Few Schema Objects That Can Be Created Using Pl/sql? |
| Answer» | |
| 4. |
State Few Notable Characteristics Of Pl/sql. |
Answer»
|
|
| 5. |
What Does The Colon Sign (: ) Implies In The Following Statement? :deficit := Balance – Loan; |
|
Answer»
|
|
| 6. |
What Is The Purpose Of %type Data Type? Explain With Example. |
|
Answer» It assigns a variable the same data TYPE USED by the COLUMN, for which the variable is created. For EXAMPLE, It assigns a variable the same data type used by the column, for which the variable is created. For example, |
|
| 7. |
What Is The Purpose Of %rowtype Data Type? Explain With Example. |
|
Answer» It DECLARES a composed variable that is EQUIVALENT to the row of a table. After the variable is created, the FIELDS of the table can be ACCESSED, using the name of this variable. It declares a composed variable that is equivalent to the row of a table. After the variable is created, the fields of the table can be accessed, using the name of this variable. |
|
| 8. |
What Is A Pl/sql Package? |
|
Answer» A PACKAGE is a file that groups FUNCTIONS, cursors, STORED PROCEDURES, and variables in one place. A package is a file that groups functions, cursors, stored procedures, and variables in one place. |
|
| 9. |
What Are The Pl/sql Cursors? |
|
Answer» Oracle uses workspaces to EXECUTE the SQL COMMANDS. In other words, when Oracle processes a SQL command, it opens an area in the memory CALLED Private SQL Area. A cursor is an identifier for this area. It ALLOWS programmers to name this area and access it’s INFORMATION. Oracle uses workspaces to execute the SQL commands. In other words, when Oracle processes a SQL command, it opens an area in the memory called Private SQL Area. A cursor is an identifier for this area. It allows programmers to name this area and access it’s information. |
|
| 10. |
What Is Returned By The Cursor Attribute Sql%rowcount? |
|
Answer» It returns the NUMBER of ROWS that are PROCESSED by a SQL STATEMENT. It returns the number of rows that are processed by a SQL statement. |
|
| 11. |
What Is Returned By The Cursor Attribute Sql%found? |
|
Answer» It returns the Boolean value TRUE if at least one ROW was PROCESSED. It returns the Boolean value TRUE if at least one row was processed. |
|
| 12. |
What Is Returned By The Cursor Attribute Sql%notfound? |
|
Answer» It returns the BOOLEAN VALUE TRUE if no ROWS were PROCESSED. It returns the Boolean value TRUE if no rows were processed. |
|
| 13. |
Which Command/commands Allow Iteration A Use Of Loops In A Pl/sql Block? |
|
Answer» LOOP COMMAND, FOR.. LOOP command, WHILE command. LOOP command, FOR.. LOOP command, WHILE command. |
|
| 14. |
What Is The Difference In Execution Of Triggers And Stored Procedures? |
|
Answer» A TRIGGER is automatically EXECUTED without any action required by the user, whereas, a STORED procedure needs to be explicitly INVOKED. A trigger is automatically executed without any action required by the user, whereas, a stored procedure needs to be explicitly invoked. |
|
| 15. |
What Are The Uses Of Triggers? |
|
Answer» Basically triggers are used to create consistencies, access RESTRICTION and implement SECURITIES to the database. Triggers are also used for −
Basically triggers are used to create consistencies, access restriction and implement securities to the database. Triggers are also used for − |
|
| 16. |
What Is The Use Of A When Clause In A Trigger? |
|
Answer» A WHEN clause specifies the condition that MUST be true for the TRIGGER to be TRIGGERED. A WHEN clause specifies the condition that must be true for the trigger to be triggered. |
|
| 17. |
What Is The Purpose Of The Optional Argument [or Replace] In A Create Trigger Command? |
|
Answer» The optional ARGUMENT [OR REPLACE] in a CREATE TRIGGER command re-creates an EXISTING trigger. Using this option allows changing the definition of an existing trigger without having to DELETE it FIRST. The optional argument [OR REPLACE] in a CREATE TRIGGER command re-creates an existing trigger. Using this option allows changing the definition of an existing trigger without having to delete it first. |
|
| 19. |
Write A Statement To Disable A Trigger Named Update_marks. |
|
Answer» ALTER TRIGGER update_marks DISABLE;
ALTER TRIGGER update_marks DISABLE;
|
|
| 20. |
What Is The Difference Between A Function And A Stored Procedure? |
|
Answer» A FUNCTION returns a VALUE and a STORED PROCEDURE doesn’t return a value. A function returns a value and a stored procedure doesn’t return a value. |
|
| 21. |
How Do You Declare A User-defined Exception? |
|
Answer» User defined exceptions are declared under the DECLARE section, with the keyword EXCEPTION. SYNTAX − User defined exceptions are declared under the DECLARE section, with the keyword EXCEPTION. Syntax − |
|
| 22. |
What Do You Understand By Explicit Cursors? |
|
Answer» Explicit cursors are defined explicitly USING the CURSOR statement, with a general SYNTAX − Explicit cursors are defined explicitly using the CURSOR statement, with a general syntax − |
|
| 23. |
What Are The Steps That Need To Be Performed To Use An Explicit Cursor? Discuss Briefly. |
|
Answer» The steps that need to be performed on explicit cursor are −
The steps that need to be performed on explicit cursor are −
|
|
| 24. |
Pl/sql Packages Usually Have Two Parts. What Are These Two Parts? |
|
Answer» PL/SQL packages have TWO parts −
PL/SQL packages have two parts −
|
|
| 25. |
Which Command(s) Are Used For Creating Pl/sql Packages? |
|
Answer» CREATE PACKAGE COMMAND is used for CREATING the SPECIFICATION part. CREATE PACKAGE BODY command is used for creating the body part. CREATE PACKAGE command is used for creating the specification part. CREATE PACKAGE BODY command is used for creating the body part. |
|
| 26. |
How Do You Refer To The Types, Objects And Sub Programs Declared Within A Package? |
|
Answer» The types, objects, and SUBPROGRAMS DECLARED within a PACKAGE are referred to using the dot NOTATION as −
The types, objects, and subprograms declared within a package are referred to using the dot notation as − |
|
| 27. |
Which Command Is Used To Delete A Package? |
|
Answer»
The DROP PACKAGE command.
|
|
| 28. |
What Is The Difference Between Implicit And Explicit Cursors? |
|
Answer» Oracle IMPLICITLY declares a cursor to all the DDL and DML COMMANDS that return only one row. For QUERIES returning MULTIPLE rows, an explicit cursor is created.
Oracle implicitly declares a cursor to all the DDL and DML commands that return only one row. For queries returning multiple rows, an explicit cursor is created.
|
|
| 29. |
What Is The Purpose Of The Pl/sql Language? |
|
Answer» PL/SQL is an extension of SQL. SQL is non-PROCEDURAL. PL/SQL is a procedural language DESIGNED by ORACLE to overcome the LIMITATIONS that exist in SQL. PL/SQL is an extension of SQL. SQL is non-procedural. PL/SQL is a procedural language designed by oracle to overcome the limitations that exist in SQL. |
|
| 30. |
Which Files Are Created During The Session Rums By Informatics Server? |
|
Answer» During SESSION runs, the files CREATED are NAMELY Errors log, Bad file, Workflow LOW and session log. During session runs, the files created are namely Errors log, Bad file, Workflow low and session log. |
|
| 31. |
What Are The Prerequisite Tasks To Achieve The Session Partition? |
|
Answer» In order to perform session PARTITION one need to configure the session to partition source data and then installing the Informatica SERVER MACHINE in multifold CPU's.
In order to perform session partition one need to configure the session to partition source data and then installing the Informatica server machine in multifold CPU's.
|
|
| 32. |
What Is Surrogate Key? |
|
Answer» Surrogate key is a REPLACEMENT for the natural prime key. It is a unique identification for each row in the table. It is very beneficial because the natural primary key can change which eventually makes update more difficult. They are ALWAYS used in form of a DIGIT or integer.
Surrogate key is a replacement for the natural prime key. It is a unique identification for each row in the table. It is very beneficial because the natural primary key can change which eventually makes update more difficult. They are always used in form of a digit or integer.
|
|
| 33. |
What Is The Scenario Which Compels Informatica Server To Reject Files? |
|
Answer» This happens when it faces DD_Reject in UPDATE STRATEGY transformation. Moreover it disrupts the database constraint filed in the ROWS was CONDENSED. This happens when it faces DD_Reject in update strategy transformation. Moreover it disrupts the database constraint filed in the rows was condensed. |
|
| 34. |
What Does Update Strategy Mean, And What Are The Different Option Of It? |
|
Answer» Row by row processing is done by informatica. Every row is inserted in the target table because it is MARKED as default. Update strategy is USED whenever the row has to be updated or inserted based on some sequence. Moreover the CONDITION MUST be SPECIFIED in update strategy for the processed row to be marked as updated or inserted. Row by row processing is done by informatica. Every row is inserted in the target table because it is marked as default. Update strategy is used whenever the row has to be updated or inserted based on some sequence. Moreover the condition must be specified in update strategy for the processed row to be marked as updated or inserted. |
|
| 35. |
Briefly Define Reusable Transformation? |
|
Answer» Reusable TRANSFORMATION is used numerous TIMES in mapping. It is different from other mappings which use the transformation SINCE it is stored as a metadata. The TRANSFORMATIONS will be nullified in the mappings whenever any change in the reusable transformation is MADE. Reusable transformation is used numerous times in mapping. It is different from other mappings which use the transformation since it is stored as a metadata. The transformations will be nullified in the mappings whenever any change in the reusable transformation is made. |
|
| 36. |
What Is The Difference Between A Connected Look Up And Unconnected Look Up? |
|
Answer» When the inputs are taken directly from other transformations in the pipeline it is called CONNECTED LOOKUP. While unconnected lookup doesn't TAKE inputs directly from other transformations, but it can be used in any transformations and can be RAISED as a function using LKP expression. So it can be said that an unconnected lookup can be called multiple times in mapping.
When the inputs are taken directly from other transformations in the pipeline it is called connected lookup. While unconnected lookup doesn't take inputs directly from other transformations, but it can be used in any transformations and can be raised as a function using LKP expression. So it can be said that an unconnected lookup can be called multiple times in mapping.
|
|
| 37. |
What Do You Mean Incremental Aggregation? |
|
Answer» Option for incremental aggregation is ENABLED WHENEVER a session is created for a MAPPING aggregate. Power CENTER performs incremental aggregation through the mapping and historical cache data to perform new aggregation CALCULATIONS incrementally. Option for incremental aggregation is enabled whenever a session is created for a mapping aggregate. Power center performs incremental aggregation through the mapping and historical cache data to perform new aggregation calculations incrementally. |
|
| 38. |
How Union Transformation Is Used? |
|
Answer» It is a diverse input group transformation which can be USED to combine DATA from different sources. It WORKS LIKE UNION All STATEMENT in SQL that is used to combine result set of two SELECT statements. It is a diverse input group transformation which can be used to combine data from different sources. It works like UNION All statement in SQL that is used to combine result set of two SELECT statements. |
|
| 39. |
What Is Lookup Transformation? |
|
Answer» It is used for looking up data in a relational table through mapping. LOOKUP DEFINITION from any relational database is imported from a SOURCE which has tendency of CONNECTING client and server. ONE can use multiple lookup transformation in a mapping. It is used for looking up data in a relational table through mapping. Lookup definition from any relational database is imported from a source which has tendency of connecting client and server. One can use multiple lookup transformation in a mapping. |
|
| 40. |
What Is Joiner Transformation? |
|
Answer» JOINER transformation combines two AFFILIATED heterogeneous sources living in different locations while a source QUALIFIER transformation can combine data EMERGING from a common source. Joiner transformation combines two affiliated heterogeneous sources living in different locations while a source qualifier transformation can combine data emerging from a common source. |
|
| 41. |
What Do You Mean By Filter Transformation? |
|
Answer» It is a MEDIUM of filtering ROWS in a mapping. Data needs to be TRANSFORMED through filter transformation and then filter condition is applied. Filter transformation contains all ports of input/output, and the rows which MEET the condition can only pass through that filter. It is a medium of filtering rows in a mapping. Data needs to be transformed through filter transformation and then filter condition is applied. Filter transformation contains all ports of input/output, and the rows which meet the condition can only pass through that filter. |
|
| 42. |
Describe Expression Transformation? |
|
Answer» VALUES can be calculated in single ROW before writing on the target in this form of TRANSFORMATION. It can be used to perform non aggregate CALCULATIONS. Conditional statements can also be tested before output results go to target TABLES. Values can be calculated in single row before writing on the target in this form of transformation. It can be used to perform non aggregate calculations. Conditional statements can also be tested before output results go to target tables. |
|
| 43. |
Briefly Explain The Aggregator Transformation? |
|
Answer» It allows ONE to do AGGREGATE calculations such as SUMS, averages etc. It is unlike expression TRANSFORMATION in which one can do calculations in GROUPS.
It allows one to do aggregate calculations such as sums, averages etc. It is unlike expression transformation in which one can do calculations in groups.
|
|
| 44. |
How Can You Validate All Mappings In The Repository Simultaneously? |
|
Answer» All the MAPPINGS cannot be VALIDATED SIMULTANEOUSLY because each time only ONE MAPPING can be validated.
All the mappings cannot be validated simultaneously because each time only one mapping can be validated.
|
|
| 45. |
Explain The Code Page Compatibility? |
|
Answer» When DATA moves from one CODE page to another provided that both code pages have the same character sets then data loss cannot occur. All the CHARACTERISTICS of SOURCE page must be available in the target page. MOREOVER if all the characters of source page are not present in the target page then it would be a subset and data loss will definitely occur during transformation due the fact the two code pages are not compatible. When data moves from one code page to another provided that both code pages have the same character sets then data loss cannot occur. All the characteristics of source page must be available in the target page. Moreover if all the characters of source page are not present in the target page then it would be a subset and data loss will definitely occur during transformation due the fact the two code pages are not compatible. |
|
| 46. |
What Are The Types Of Metadata That Stores In Repository? |
|
Answer» The TYPES of METADATA includes SOURCE definition, Target definition, MAPPINGS, Mapplet, TRANSFORMATIONS. The types of metadata includes Source definition, Target definition, Mappings, Mapplet, Transformations. |
|
| 47. |
How Can Repository Reports Be Accessed Without Sql Or Other Transformations? |
|
Answer» Repositoryreports are established by METADATA reporter. There is no NEED of SQL or other transformation since it is a WEB app.
Repositoryreports are established by metadata reporter. There is no need of SQL or other transformation since it is a web app.
|
|
| 48. |
What Does Role Playing Dimension Mean? |
|
Answer» The dimensions that are utilized for playing DIVERSIFIED ROLES while remaining in the same database DOMAIN are called role playing dimensions. The dimensions that are utilized for playing diversified roles while remaining in the same database domain are called role playing dimensions. |
|
| 49. |
Briefly Describe Lookup Transformation? |
|
Answer» Lookup transformations are those transformations which have admission right to RDBMS based data SET. The server makes the access FASTER by using the lookup TABLES to look at explicit table data or the DATABASE. Concluding data is achieved by matching the look up CONDITION for all look up ports delivered during transformations. Lookup transformations are those transformations which have admission right to RDBMS based data set. The server makes the access faster by using the lookup tables to look at explicit table data or the database. Concluding data is achieved by matching the look up condition for all look up ports delivered during transformations. |
|
| 50. |
Explain The Use Of Aggregator Cache File? |
|
Answer» Aggregator transformations are handled in chunks of instructions during each run. It STORES transitional VALUES which are found in local buffer memory. Aggregators provides extra cache FILES for storing the transformation values if extra memory is required. Aggregator transformations are handled in chunks of instructions during each run. It stores transitional values which are found in local buffer memory. Aggregators provides extra cache files for storing the transformation values if extra memory is required. |
|