FORMATIVE 1 Flashcards
The _____ is a Boolean attribute that evaluates to TRUE if the most recent SQL statement did not return even one row
SQL%FOUND
SQL&NOTFOUND
SQL%ROWCOUNT
SQL%NOTFOUND
The DDL and DCL SQL statements cannot be used directly in PL/SQL.
True or False
True
The use of INTO clause in PL/SQL select statement is to specify the name of (VARIABLE).
True or False
True
The (SELECT) SQL Rule: queries must retunr only one row.
True or False
True
The (EXPLICIT) cursors are defined by the PL/SQL programmer
True or False
True
Which DML statement make changes to the database?
DELETE
INSERT
All the options
UPDATE
All of the options
The use of INTO clause in PL/SQL select statement is to specify the name of: ____________.
CURSOR
VARIABLE
TABLE
VIEW
VARIABLE
The ______ are automatically declared variables that allow you to evaluate what happened when a cursor was last used.
Explicit attributes
Attributes
Implicit attributes
Cursor attributes
Cursor Attributes
Boolean attribute that evaluates to TRUE if the most recent SQL statement did not return even one row. A.
SQL%FOUND
SQL%ROWCOUNT
SQL%COUNT
SQL%NOTFOUND
SQL%NOTFOUND
Control structures are used to change the logical flow of statements within the PL/SQL block.
True or False
True
A counter variable is an expression that returns true, false, or null
True or False
False
The use of CASE statement to test conditions such as <, >, >=, <= is know as case expression.
True or False
False
Applying the logical operator NOT to a null yields FALSE.
True or False
False
Use the (BASIC) loop when the statement inside the loop must execute at least once.
True or False
True
Without the EXIT statement, the loop would never end (an infinite loop).
True or False
True
In BASIC and WHILE loop, the iteration will terminate when the counter is > than the upper bound.
True or False
False
The BASIC LOOP control structures are statements that enable you to execute statements in a PL/SQL block repeatedly.
True or False
True
The (SQL%ROWCOUNT) is an integer value that represents the number of rows affected by the most recent SQL statement.
True or False
True
The INTO clause occurs between the SELECT and (FROM) clauses
True or False
True
A _______ is an expression with a TRUE or FALSE value that is used to make a decision.
Condition
ELSE
Nested-if
Conditional statement
Condition
The _____ is the symbol used for the assignment operator.
=
:=
:=
An EXIT statement is used in order to come out of from the outer loop within a inner loop.
True
False
False
The lower and upper bound of a for loop must be a numeric literals.
True
False
False
The DML statement: INSERT, DELETE, (UPDATE) make changes to the database.
True
False
True