click below
click below
Normal Size Small Size show me how
PL/SQL
| Question | Answer |
|---|---|
| The memory area allocated by Oracle server to store the SQL statement and the data that it uses in known as __________. | implicit cursor. 1/1 |
| The DML statement: INSERT, DELETE, ________ make changes to the database. | UPDATE |
| DECLARE v_deptno copy_emp.department_id%TYPE := 50; BEGIN DELETE FROM copy_emp WHERE _____________ = v_deptno; DBMS_OUTPUT.PUT_LINE(SQL%ROWCOUNT || ' rows deleted.'); | DEPARTMENT_ID |
| The use of INTO clause in PL/SQL select statement is to specify the name of: ____________. Group of answer choices TABLE VARIABLE CURSOR VIEW | VARIABLE 1/1 |
| What is missing in the given code below? DECLARE v_salary employees.salary%TYPE; BEGIN SELECT salary INTO ________ FROM employees where employee_id = 100; DBMS_OUTPUT.PUT_LINE(' Salary is : ' || v_salary); END; | V_SALARY |
| What could be the possible error of the given code below? DECLARE v_sal_increase employees.salary%TYPE = 800; BEGIN UPDATE copy_emp SET salary = salary + v_sal_increase WHERE job_id = 'ST_CLERK'; END; | WHERE section (sabi ni gpt no error) |
| What could be the possible error of the given code below? DECLARE v_sal_increase employees.salary%TYPE := 800; BEGIN UPDATE copy_emp SET salary = salary + v_sal_increase WHERE job_id = 'ST_CLERK'; END; | no error (kilitiin ko lang si gpt) |
| Refer to M1S2-code reference#3, data type for vmesg variable must be CHAR. Group of answer choices True False | false |
| The use of CASE statement to test conditions such as <, >, >=, <= is know as case expression. Group of answer choices True False | true |
| Applying the logical operator NOT to a null yields FALSE. Group of answer choices True False | false 1/1 |
| Refer to M1S2-code reference#2, the missing condition in (2) is vpop = 0. Group of answer choices True False | true |
| Refer to M1S2-code reference#3, what is the missing element in the where clause? (UPPER) Group of answer choices VARIABLE Nothing is missing Not in the options UPPER | UPPER |
| Refer to M1S2-code reference#2, what is the missing part of the condition in (1) ?_______ Group of answer choices TRUE 0 NULL FALSE | NULL |
| The ______ is the symbol used for the assignment operator. Group of answer choices = := | = 1/1 |
| You can change the logical flow of statements within the PL/SQL block by using: Group of answer choices Control structures Subprograms Conditional statements Looping statements | CONTROL STRUCTURES 1/1 |
| Refer to M1S2-code reference#3, what is missing in the creation of the implicit cursor? Group of answer choices Airport Airports Country_name Country_code | Airports |
| Refer to M1S3-code reference#1, what should be the initial value of vctr? | BASIC LOOP |
| The type of loop where the statement inside the loop must execute at least once. | IN |
| Refer to M1S3-code reference#1, what is missing in the creation of the implicit cursor inside the loop body? _______ | V_LOC_ID? |
| The BASIC LOOP control structures are statements that enable you to execute statements in a PL/SQL block repeatedly. Group of answer choices True False | true |
| All counter variables must be declared at the declaration section. Group of answer choices True False | false |
| Refer to M1S3-code reference #4, the ā>ā is the missing operator in the EXIT section. Group of answer choices True False | true 1/1 |
| In BASIC and WHILE loop, the iteration will terminate when the counter is < than the upper bound. Group of answer choices True False | false |
| Refer to M1S3-code reference#1, the loop body will be performed 5 times. Group of answer choices True False | true |
| 25/30 | |
| The _______cursor are automatically defined by Oracle. | IMPLICIT |
| The use of INTO clause in PL/SQL select statement is to specify the name of ________. | VARIABLE 1/1 |
| The ______ is a Boolean attribute that evaluates to TRUE if the most recent SQL statement did not return even one row. | %NOTFOUND |
| The INTO clause occurs between the _______ and FROM clauses. | SELECT |
| The _______ statement selects rows from one table to update and/or insert into another table. Group of answer choices MERGE SELECT, INSERT, UPDATE COMBINE DML | MERGE |
| DECLARE v_deptno copy_emp.department_id%TYPE := 50; BEGIN DELETE FROM copy_emp WHERE _____________ = v_deptno; DBMS_OUTPUT.PUT_LINE(SQL%ROWCOUNT || ' rows deleted.'); END; | DEPARTMENT_ID |
| v_deptno copy_emp.department_id%TYPE := 50; BEGIN DELETE FROM copy_emp WHERE department_id = v_deptno; DBMS_OUTPUT.PUT_LINE(SQL%ROWCOUNT || ' rows deleted.'); Print the number of rows deleted Print all the deleted records | Print the number of rows deleted |
| The memory area allocated by Oracle server to store the SQL statement and the data that it uses in known as: Group of answer choices Explicit Cursor View Implicit Cursor Cursor | CURSOR |
| Consider the given code fragment below. The condition will return a true value. A:=null; B:=null; If A = B then . . . . . Group of answer choices True False | FALSE |
| A condition is an expression that returns true, false, or null. Group of answer choices True False | TRUE |
| Is there something missing in the given code? DECLARE v_myage NUMBER := 31; BEGIN IF v_myage < 11 DBMS_OUTPUT.PUT_LINE('I am a child'); END IF; END; Group of answer choices True False | TRUE |
| Refer to M1S2-code reference#2, what is the missing condition in (2)? Group of answer choices vpop >= 0 vpop <= 0 vpop < 0 vpop = 0 | VPOP = 0 |
| Refer to M1S2-code reference#3, what is the correct data type for vmesg? | VARCHAR |
| The _______ are used to change the logical flow of statements within the PL/SQL block. Group of answer choices CASE statement Control Structures Conditional statement Looping statement | CONTROL STRUCTURES |
| Refer to M1S3-code reference#1, what type of looping is used in the code? ________ | SIMPLE LOOP |
| In for loop, counter variable is declared _______. | IMPLICITLY |
| Refer to M1S3-code reference#1, what is missing in the creation of the implicit cursor inside the loop body? _______ | VCTR |
| In for loop, counter must be explicitly declared. Group of answer choices True False | FALSE |
| An EXIT statement is used in order to come out of from the outer loop within an inner loop. Group of answer choices True False | TRUE |
| In BASIC and WHILE loop, the iteration will terminate when the counter value meets the upper bound value. Group of answer choices True False | FALSE |
| 23 |