You are on page 1of 16

Satyam Enterprise Solutions Limited

INDEX
SQL & PLSQL....................................................................................................................2 Reports 2.5..........................................................................................................................7 Forms 4.5..........................................................................................................................12

Instructions:

Page 1 of 16

Satyam Enterprise Solutions Limited A. The maximum time allotted for the answering the paper is 60 minutes. B. Each section contains 25 questions.

SQL & PLSQL


1. If you want to select the data of all employees from EMP table other than employee MIR, which of the following statements you will execute? A. SELECT * FROM EMP WHERE ENAME <> 'MIR'; B. SELECT * FROM EMP WHERE ENAME IS NOT 'MIR'; C. SELECT * FROM EMP WHERE ENAME! = 'MIR'; D. SELECT * FROM EMP WHERE ENAME NOT = 'MIR'; 2.

Which of the following statements can contain a WHERE CURRENT OF clause? (choose all applicable) A. SELECT B. INSERT C. UPDATE D. DELETE

3.

If table EMP has 100 rows and table DEPT has 20 rows, then how many rows are you expected to receive in the result when you execute the following statement: SELECT * FROM EMP, DEPT; A. 120 B. 2000 C. 80 D. 5 E. 1920

4.

You receive a scalar product of the number of rows in each table. How many values can be returned from a subquery that uses a single row comparison operator? A. Only 1 B. Only 2 C. Unlimited D. None of the above

5.

What can limit the number of roles a user can have in their default role set? A. There is no limit. B. The Set role command. C. The max_enabled_roles init.ora parameter. D. The limit is always 256 .

6.

A user can enable as many roles as specified by the initialization parameter MAX_ENABLED_ROLES. All indirectly granted roles enabled as a result of enabling a primary role are included in this count. To audit data, Oracle recommends doing the following: A. Using Security manager

Page 2 of 16

Satyam Enterprise Solutions Limited B. Reading the redo logs C. Using database triggers D. Using the Audit facility 7. Evaluate the following procedure: PROCEDURE price_change (v_quota IN BOOLEAN; v_stock IN BOOLEAN; v_approval IN OUT BOOLEAN) IS BEGIN v_approval := v_stock AND v_quota; END; If the variable v_quota is TRUE and the variable v_stock = TRUE then what is the value of v_approval? A. NULL B. TRUE C. FALSE D. UNDEFINED 8. Evaluate the following procedure: PROCEDURE price_change (v_quota IN BOOLEAN; v_stock IN BOOLEAN; v_approval IN OUT BOOLEAN) IS BEGIN v_approval := v_stock AND v_quota; END; If the variable v_quota is NULL and the variable v_stock = FALSE then what is the value of v_approval? A. NULL B. TRUE C. FALSE D. UNDEFINED 9.

Consider the statement: SELECT * FROM EMP WHERE SAL IN (1000,2000) AND COMM IN (1000,200); Which of the following statements will give the same result as the above statement? A. SELECT * FROM EMP WHERE SAL = 1000 AND SAL = 2000 AND COMM = 1000 AND COMM = 200; B. SELECT * FROM EMP WHERE SAL = 1000 OR SAL = 2000 OR COMM = 1000 OR COMM = 200; C. SELECT * FROM EMP WHERE (SAL = 1000 OR SAL = 2000) AND (COMM = 1000 OR COMM = 200);

Page 3 of 16

Satyam Enterprise Solutions Limited D. SELECT * FROM EMP WHERE (SAL = 1000 AND SAL = 2000) OR (COMM = 1000 AND COMM = 200); [ ]

10. If you have an empty table EMP2 with similar structure as existing EMP table but different column names, and you want to transfer data from EMP to EMP2 which of the following statements would you execute? A. INSERT INTO EMP2 AS SELECT * FROM EMP WHERE 1=2; B. INSERT INTO EMP2 SELECT * FROM EMP WHERE 1=2; C. INSERT INTO EMP2 SELECT * FROM EMP; D. can not transfer rows since column names are different. 11. What does the following command accomplish? DEFINE v_price A. The variable v_price is created but no value is assigned to it. B. The variable v_price is created with the NULL value. C. Variable v_price is displayed with its value and datatype. D. This is not a valid syntax.

12. A user can use the operating system to perform the authentication of a password by using what keyword ? A. O/S B. NOPASSWORD C. Enter a null value for the password D. EXTERNALLY 13. What data type is created with the DEFINE command? A. CHAR B. VARCHAR2 C. DATE D. NUMBER E. LONG

14. What are the two main advantages of using column aliases? (choose all applicable) A. Reasonable headings can be given B. Distinct values are eliminated in columns C. ORDER BY clause can use aliases D. Result is displayed is upper case 15. What SQL command will enable auditing activity? A. Alter B. Begin audit C. Audit D. Update

Page 4 of 16

Satyam Enterprise Solutions Limited 16. For which task can you use the TO_CHAR function? A. B. C. D. Display a date value in 'MM/DD/YY' format Accept 'October 20, 1965' and store it as a date value Accept 'ten' and store it as a number 10 Accept the number 10 and store it as 'ten' ]

[ 17. What is the maximum number of ELSE clauses that can be included in an IF statement? A. B. C. D. Any number One for each conditional statement One None [ 18.Which three commands cause a transaction to end? (Choose all Applicable) A. B. C. D. E. F. ROLLBACK ALTER UPDATE DELETE INSERT GRANT [ 19.Which clause would you use to exclude rows from a group calculation? A. B. C. D. WHERE HAVING ORDER BY INTO [ 20. Which program construct must return a value? A. B. C. D. E. Anonymous Block Stored Procedure Application Procedure Application Function Package [ 21. For which task would you use the BETWEEN operator? A. B. C. D. To query the database for values in a specified list To query the database for a character pattern To query the database for a range of values To query the database for unknown values [

Page 5 of 16

Satyam Enterprise Solutions Limited

22. Which SELECT statement is an equi-join query between two tables? A. SELECT region.region_name, employeeinfo.last_name FROM employee region, employee employeeinfo WHERE employeeinfo.id = region.manager_id; SELECT region.region_name, employee.salary FROM region, employee WHERE region.id = employee.region_no; SELECT region.region_name, employee.salary FROM region, employee WHERE region.id = employee.region_no(+); SELECT region.region_name, employee.salary FROM region, employee WHERE employee.salary BETWEEN region.avg_salary AND region.max_salary; [ 23. How many join conditions are needed in a join query to avoid a Cartesian Product? A. B. C. D. E. Number of tables plus one Number of columns plus one Number of tables minus one Number of columns minus one None [ 24. For which task would it be most appropriate to use a literal character string? A. B. C. D. Indicate a column name in a SELECT statement Assign a column alias in a SELECT statement Display a comma between columns in a SELECT statement Indicate a number variable when using a logical operator [ 25. Which DATATYPE is created with the DEFINE command? A. NUMBER B. VARCHAR2 ] ] ]

B.

C.

D.

Page 6 of 16

Satyam Enterprise Solutions Limited C. CHAR D. DATE [ ]

Reports 2.5
1. What is an external query? A. It is the name of an external query (stored in the database or a file) whose SELECT statement should be used as the query's SELECT statement. B. It is the name of an external query (stored in the file only) whose SELECT statement should be used as the query's SELECT statement. C. It is the name of an external query (stored in the database or a file) whose where clause should be used as the query's SELECT statement. D. None of the above. [ ] 2. Can a report be based on a external query? A. No. B. Yes. C. Not sure. 3. Which on of the following is the popular usage of the hidden field:A. B. C. D. 4. Concatenated display of last name, first name. Display of first name. Display of page no of no of pages format. None of the above.

Which of the following are valid styles of the reports? (Choose all applicable) A. B. C. D. Mails Tabular General Master/Detail

5.

Can you refer a hidden field more than once in the same boiler text? A. Yes. B. No. C. Not sure.

6.

What is a physical page? A. B. C. D. A physical page is the size of a page that will be output by your printer. A physical page is the size of a page that is defined before printing. A physical page is 63 lines. None of the above. [

Page 7 of 16

Satyam Enterprise Solutions Limited 7. What is a logical page? A. Logical page is the size of one page of your actual report (it can be any number of physical pages wide or long). B. Logical page is the size of the physical page. C. Logical page is the size of the page that will be output by your printer. D. None of the above. [ ] 8. Break Order property is available on A. B. C. D. 9. Summary columns Formula columns that depends on a Summary column. Columns retrieved by the query. All of the above.

Which of the following are true: A. Break Order has no effect on columns that belong to the lowest group of a particular query. B. Every group above the lowest child group of a query must have at least one column with Break Order set. C. Break Order cannot be specified for columns of Datatype Long or Long Raw. D. All of above. [ ]

10. Which of the following matches the format mask N.NNEEEE A. B. C. D. 7.37E+03 7367 7368.99E 8.90EEEE

[ :

11. Which of the following matches the format mask Day "the" ddthsp "of" Month A. B. C. D. Mon the fourth of March Monday the fourth of March Monday the 4th of March None of the above.

12. How long can a header or tailer be (in terms of a physical pages)? A. B. C. D. 1,1. 2,1 Depends on the content. None of the above.

13. A master/detail layout requires a master/detail or a control break group structure. (TRUE/FALSE) A. True B. False 14. Which of the following statements about the Summary Column is true. [ ]

Page 8 of 16

Satyam Enterprise Solutions Limited A. Sum, Average, % of Total, Std. Deviation, and Variance can only be applied to fields with a Datatype of Number. B. Oracle Reports sets the Datatype for the summary based on the Datatype of the column being summarized. C. If the column being summarized is changed, the datatype of the summary changes to match. D. All of the above. [ ]

15. Which of the following statements are true about formula columns. A. B. C. D. Formula Column performs a user-defined computation on another column(s) data. Formula Column performs a user-defined computation on data it holds. All of the above. None of the above. [

16. What is the maximum string length of a label? A. B. C. D. 2KB 256 255 None of the Above. [ ]

17. Disabling PL/SQL compilation speeds performance when accepting a property sheet that contains a PL/SQL construct that you have changed. Is the above statement TRUE or FALSE? A. TRUE B. FALSE [ 18. Which of the following statements are true about Horizontal Gap? (Choose all Applicable) A. It is the amount of horizontal space Oracle Reports will leave between objects and the objects that they enclose when creating a default layout. B. Increasing this gap makes your layout easier to read in the Layout editor and adds white space in your output. C. If you want to see exactly how your report would look in character-mode Oracle Reports, you need to set both Horizontal and Vertical Gap to zero. D. It is only used in character-mode Oracle Reports. E. All of the Above [ 19. What are the rules applicable for Page Height property? (Choose all Applicable) ] ]

Page 9 of 16

Satyam Enterprise Solutions Limited A. If you change the Unit of Measurement after you have already specified the Page Height, the Page Height will automatically change to the approximate height in the new Unit of Measurement. B. If you change the width or height of the physical page, the size of the logical page will change accordingly, so that the dimensions of the margin are preserved wherever possible. C. You can override the dimensions of a page by specifying different values for the PAGESIZE parameter on the command line. D. The default top and bottom margin is a half an inch each. [ ]

20. Lines that are not horizontal or vertical will always be converted to horizontal or vertical lines in character mode, regardless of this setting. Similarly, rotated rectangles will be converted to nonrotated rectangles in character mode, regardless of this setting. Is the above statement TRUE or FALSE? A. B. 21. TRUE FALSE [ What are the different types of columns available in Oracle Reports? (Choose all Applicable) A. B. C. D. E. Place Holder Column Summary Column Formula Column Calculation Column None of the Above [ 22. Can you have more than one layout in report? A. It is possible to have more than one layout in a report by using the extra layout option in the layout editor. B. Its not possible to have one more layout. C. It is possible to have more than one layout in a report by using the additional layout option in the layout editor. D. None of the Above. [ ] 23. Which runtime option has to be set for running the report without a Parameter Form? A. B. C. D. E. PARAM = NO PARAMFORM =FALSE PARAM = FALSE PARAMFORM =NO Its not possible to run the report without a parameter form being displayed. [ ] ] ]

Page 10 of 16

Satyam Enterprise Solutions Limited 24. Which of the following is TRUE about confine mode? (Choose all Applicable) A. B. C. D. Confine mode allows you to perform an operation that would cause the layout not to work. Oracle Reports will not allow you to move a field outside of its parent repeating frame. Confine mode is off by default in the Layout editor. To turn confine mode on or off, use the lock tool in the toolbar or the Layout [ ]

25. A. B. C. D.

What is the minimum number of groups required for a nested matrix report? 2 3 4 5 [ ]

Page 11 of 16

Satyam Enterprise Solutions Limited

Forms 4.5
1. What property of the stacked canvas view helps in raising it to the top? A. B. C. D. 2. Set the 'Bevel' property to enabled. Set the 'RAISE_ON_ENTRY' property to True. Set the 'RAISE_ON_ENTRY' property to enabled. Set the 'Bevel' property to True.

Can a Form Application have a window that has only a Stacked Canvas? A. B. C. D. Maybe. Yes. No. Not sure.

3.

Can you change the title of the RUNFORM window, if so how? A. Yes, using the following code in the When-New-Form-Instance trigger SET_WINDOW_PROPERTY (FORMS_MDI_WINDOW, TITLE, 'Your Title'); B. Yes, using the following code in the When-New-Block-Instance trigger SET_WINDOW_PROPERTY (FORMS_MDI_WINDOW, TITLE, 'Your Title'); C. Yes, using the following code in the When-New-Block-Instance trigger SET_WINDOW_PROPERTY (MDI_FORMS_WINDOW, TITLE, 'Your Title'); D. No, It's not possible. [

4.

You have two options. Either create a text item, which is to be used as only a display item (item disabled) or create a display item itself. Which you would you prefer and why? A. Display Item because it requires slightly less memory for their definition, as many of the text item's properties do not apply to the display item. B. Text Item because it requires less memory for their definition, as many of the Display item's properties do not apply to the Text item. C. Text item because it has triggers to control the user's actions. E. None of the Above. [ ]

5.

Can you make a block query only at design time? If so, what property(ies) you set to that functionality? A. B. C. D. Yes, set the INSERT ALLOWED and UPDATE ALLOWED properties to True. No Yes, set the INSERT ALLOWED and UPDATE ALLOWED properties to False. None of the above. [

6.

What do you know about the 'Transactional Triggers' Property of a block? Explain its significance? A. The Transactional Triggers property is set default to False as this property is specifically for applications running against non-ORACLE data sources which will include Transactional triggers. By creating a non-Oracle data source application and setting this property to true, essentially we simulate the functionality of a base table block by creating a transactional control block.

Page 12 of 16

Satyam Enterprise Solutions Limited B. The Transactional Triggers property is set default to True as this property is specifically for applications running against non-ORACLE data sources which will include Transactional triggers. By creating a non-Oracle data source application and setting this property to true, essentially we simulate the functionality of a base table block by creating a transactional control block. C. The Transactional Triggers property controls the form behavior and trigger's execution style. They are specifically for the applications running against ORACLE database. D. There is no such property for a block. [ ] 7. Explain the significance of the ARRAY SIZE property of a block? A. B. C. D. 8. It gives the default number of arrays available in the forms. It gives the maximum array size that can be declared in the forms. It gives the number of records that get fetched each time forms go to the database. It gives the size of records in bytes that get fetched each time the block query gets executed. [ ] Global variables can be ______________ (choose all applicable)? A. B. C. D. 9. CHAR NUMBER DATE BINARY (choose all applicable)?

Parameters can be ______________ A. B. C. D. CHAR NUMBER DATE LONG

10. Can you pass Record Groups from Forms to Reports or Graphics? If so how? Yes, A record group is passed to Reports or Graphics as a TEXT Parameter. No. Yes, A record group is passed to Reports or Graphics as a BINARY Parameter. Yes, A record group is passed to Reports or Graphics as a DATA Parameter. [ ] 11. Can you reference the Form Objects ( Blocks, Items etc.) in Library Procedures? If so How? A. B. C. D. Yes, Prefixing : BLOCK_NAME.ITEM_NAME Yes, Prefixing :FORM_NAME.BLOCK_NAME.ITEM_NAME Yes, Using Copy( ) and Name_In( ) built ins. No. A. B. C. D.

12. A Query is running long and a Timer expired. Does the When-Timer-Expired fire to process the procedure written in it or The Query finish first? What happens if the Timer is a repeating timer? A. The query first finishes, only then Timer is serviced. For a repeating timer, it can never restart until it has been serviced by an appropriate firing of the Timer expired trigger. B. The query is interrupted and the Timer is processed, as the timer event is a priority service. C. The query is interrupted and the Timer is processed, for a repeating timer the program does not respond to the timer. D. The query finishes first and the Timer is processed, for a repeating timer the program hangs. [ ]

Page 13 of 16

Satyam Enterprise Solutions Limited

13. Difference between POST_FETCH and POST_QUERY triggers? A. POST_FETCH fires after each attempt to fetch records from the database and depending upon the BUFFER SIZE. POST_QUERY fires for every record that is brought from the buffer and added to the block's records. B. POST_FETCH fires after each attempt to fetch records from the database and depending upon the ARRAY SIZE. POST_QUERY fires for every record that is brought from the buffer and added to the block's records. C. There is no such trigger as POST_FETCH. D. None of the Above. [ ] 14. Give the sequence of firing for PRE_SELECT and PRE_QUERY? Which fires first? A. B. C. D. PRE_QUERY first and then only PRE_SELECT. PRE_SELECT first and then only PRE_QUERY. There is no such trigger as PRE_SELECT. There is no such trigger as PRE_QUERY.

15. To what value you set the 'LOCKING-MODE' property of the block so as to defer the locking of record until commit time? A. B. C. D. Set it to DEFERRED. Set it to IMMEDIATE. Set it to MANDATORY. Set it to DELAYED.

16. When you create a base table block through the New Block window, Oracle Forms sets the Hint and Auto Hint properties for each item in the block. What is the default value set by Oracle Forms? A. B. C. D. NULL Please Enter a Value for : <item_name> <item_name> Enter a Value for: <item_name> [ ]

17.Oracle Forms has a built-in validation model that makes it easy to validate data in records that have been entered or updated by the operator. Many of the most common validation requirements can be handled by setting the following item-level properties. Which of the following validations can be performed by setting the item level properties :- (choose all applicable) A. B. C. D. Maximum Length Fixed Length Required Range Low Value/Range High Value

Page 14 of 16

Satyam Enterprise Solutions Limited [ ]

18.Choose the sequence of steps to be followed to populate an item with values from another table: A. Create an item of the desired type in the appropriate base table block. B. Set the item's Data Type, Maximum Length, and other properties to be compatible with the type of C. fetched values the item will display. D. Make the item a control item by setting its Base Table property to False. Write the necessary triggers to populate the control item at runtime. [ ]

19. The default query returns a value from each database column for, which there is a corresponding item in the block. By default, the query is: A. B. C. D. Unrestricted, and retrieves all rows from the base table, in no particular order. Restricted, and retrieves all rows from the base table, in no particular order. Unrestricted, and retrieves all rows from the base table, in a particular order. Restricted, and retrieves all rows from the base table, in a particular order. [ 20. Which of the following built-ins are allowed in Enter Query Mode: A. B. C. D. LOGON LOGON_SCREEN LOGOUT NONE OF THE ABOVE [ 21. By using which of the following item properties can you control inserts and updates: (Choose all applicable) A. B. C. D. Update Only if NULL Delete Only if NULL Insert Allowed Update Allowed [ ] ] ]

22 When the Insert Allowed item property is set to False, and the item has the Navigable and/or Enabled properties set to True A. Operators cannot navigate to the item. B. Operators can navigate to the item, and can its value when it is in a new record.

Page 15 of 16

Satyam Enterprise Solutions Limited C. Operators can navigate to the item, but cannot modify its value when it is in a new record. D. None of the Above. [ 23 Which of the following are valid restrictions on GO_ITEM built-in (Choose all Applicable): A. In Enter Query mode, GO_ITEM cannot be used to navigate to an item in a different block. B. You cannot use GO_ITEM to navigate to a non-navigable item, such as a chart item or display item. C. You cannot use GO_ITEM in the WHEN-NEW-ITEM-INSTANCE trigger. D. All of the Above. ]

24.What are the restrictions placed on LOGON built-in (Choose all Applicable): A. B. C. D. Must not already be connected to a database. If you identify a remote database, a SQL*Net connection to that database must exist at runtime. Can connect to Oracle Databases only. Oracle Forms can connect to only one database at a time. However, database links may be used to access multiple databases with a single connection. [ 25.What does NEXT_KEY built-in used for : A. B. C. D. Navigating to next record current item. Navigating to next record primary key item. Navigating to new record. None of the Above. [ ] ]

Page 16 of 16

You might also like