APACHE SOLR QUIZ DESCRIPTION Total Questions −30 00 Max Time − 15:00 Which of the following is not an Oracle DML function? DECODE TRUNCATE TO_CHAR NVL For which task is it best to use a character string enclosed by double quotes? Please select the best answer. Referring to a column in the database Using a reserved word to declare an identifier Using a hyphen to concatenate two columns Referring to a number variable by using a logical operator Select invalid variable types CHAR VARCHAR1 VARCHAR2 INTEGER For the purposes of …………, null values are considered equal to other nulls and are grouped together into a single result row. Having Group By Both of above None of above The default storage level of cache() is? MEMORY_ONLY MEMORY_AND_DISK DISK_ONLY MEMORY_ONLY_SER Which of the following statements is true about implicit cursors? Implicit cursors are used for SQL statements that are not named. Developers should use implicit cursors with great care. Implicit cursors are used in cursor for loops to handle data processing. Implicit cursors are no longer a feature in Oracle. What command can you use to see the errors from a recently created view or stored procedure? SHOW MISTAKES; DISPLAY MISTAKES; DISPLAY ERRORS; SHOW ERRORS; You want all dates when any employee was hired. Multiple employees were hired on the same date and you want to see the date only once. Query – 1 Select distinct hiredate From hr.employee Order by hiredate; Query – 2 Select hiredate From hr.employees Group by hiredate Order by hiredate; Which of the above query is valid? Query – 1 Query – 2 Both None of the above In the context of MS SQL SERVER, with the exception of ………… column(s), any column can participate in the GROUP BY clause. bit text ntext image Which of the following is not a grouping function. COUNT SUM DISTINCT MIN What are the three parameter modes for procedures? IN, OUT, IN OUT R(ead), W(rite), A(ppend) CONSTANT, VARIABLE, DEFAULT COPY, NOCOPY, REF A developer would like to use referential datatype declaration on a variable. The variable name is EMPLOYEE_LASTNAME, and the corresponding table and column is EMPLOYEE, and LNAME, respectively. How would the developer define this variable using referential datatypes? Use employee.lname%type. Use employee.lname%rowtype. Look up datatype for EMPLOYEE column on LASTNAME table and use that. Declare it to be type LONG. List the correct sequence of commands to process a set of records when using explicit cursors INITIALIZE, GET, CLOSE CURSOR, GET, FETCH, CLOSE OPEN, FETCH, CLOSE CURSOR, FETCH, CLOSE Select the best answer. Which listed attribute is an invalid attribute of an Explicit cursor. %NOTFOUND %FOUND %ROWCOUNT None of the above. All of these are valid. What is the maximum number of exception handlers processed before the PL/SQL block is exited, provided an exception occurs? Please select the best answer. None All exceptions that are referenced in the block One All exceptions that apply Which line in the following statement will produce an error? cursor action_cursor is select name, rate, action into action_record from action_table; If left out, which of the following would cause an infinite loop to occur in a simple loop? LOOP END LOOP IF-THEN EXIT Which of the following is not a valid Oracle PL/SQL exception. NO_DATA_FOUND ORA-01403 TWO_MANY_ROWS ORA-01422 DUP_VAL_ON_INDEX ORA-00001 OTHERS If you SELECT attributes and use an aggregate function, you must GROUP BY the non_aggregate attributes. TRUE FAlSE Below query is run in SQL Server 2012, is this query valid or invalid: Select count(*) as X from Table_Name Group by () Valid Invalid Which of the following can be used as an argument for a procedure parameter? The name of a variable. A literal value. An expression. All of the above. List the correct sequence of commands to process a set of records when using explicit cursors INITIALIZE, GET, CLOSE CURSOR, GET, FETCH, CLOSE OPEN, FETCH, CLOSE CURSOR, FETCH, CLOSE When modifying procedure code, the procedure must be re-executed to validate and store it in the database. True or False? True False Assuming the date and time is 09/09/2009 09:09:09, what value will the following statement return SELECT TO_CHAR(TRUNC(SYSDATE),’MM/DD/YYYY HH24:MI:SS’) FROM dual; 09/09/2009 09:09:09 09/09/2009 09:09:09AM 09/09/2009 09/09/2009 00:00:00 Select the invalid PL/SQL looping construct. A. WHILE LOOP … END LOOP; B. FOR rec IN some_cursor LOOP … END LOOP; C. LOOP … UNTIL ; END LOOP; D. LOOP … EXIT WHEN ; END LOOP; E. None of the above. All are valid. Answers are option A and C Answers are option A and B Answers are option A and D Answers are option C and D Where do you declare an explicit cursor in the PL/SQL language? In the PL/SQL working storage section In the PL/SQL declaration section In the PL/SQL body section In the PL/SQL exception section Which kind of parameters cannot have a DEFAULT value? OUT IN CONSTANT R(ead) Which of the following is not a feature of a cursor FOR loop? Record type declaration. Opening and parsing of SQL statements. Fetches records from cursor. Requires exit condition to be defined. Which functions can be used with any datatype? Please select all the correct answers. A.SUM B. MIN C. MAX D. AVG correct answers is B correct answers is A correct answers is D The correct answers are B and C. Which identifier is valid? customer_12 loop customer@orgA 12customer Previous Next Total Question16 Wrong Answer13 Right Answer13