Sie sind auf Seite 1von 3

1.) Which of the following are valid identifiers? (Choose two.

#students
v$testresult(*)
yesterday's date
yesterday(*)
number_of_students_in_the_class

2.) Which statements about lexical units are true? (Choose two.)

They are the building blocks of every PL/SQL program(*)


They are named objects stored in the database
They are sequences of characters including letters, digits, tabs, returns and
symbols(*)
They are optional but can make a PL/SQL block execute faster

2.) Valid identifiers begin with a _____.

Letter (*)
Number
Special character

3.) Which of the following should NOT be used as the name of a variable?

A table column name.


A PL/SQL reserved word.
Neither should be used. (*)

4.) Which of the following is NOT a good guideline for declaring variables?

Use NOT NULL when the variable must have a value


Declare one identifier per line
Use column names as identifiers (*)

5.) Examine the following variable declarations:


DECLARE
v_number NUMBER := 10;
v_result NUMBER;

Which of the following correctly assigns the value 50 to V_RESULT?

v_result := v_number * 5;
All of these are correct (*)
v_result := ROUND(49.77);
v_result := 100 / 2;

6.) Variables may be reused. True or False?

True (*)
False

6. Two variables with the same name can be declared in an outer block and an inner
block. True or False

True (*)
False

7.) If a variable definition is not found in an inner block where it is being


referenced, where does it look for it?

This will result in an error.


It looks upward in the parent blocks. (*)
It downward in any other inner blocks.

8.) If an outer block is labeled, the inner block must be labeled also. True or
False?
Mark for Review

True
False (*)

9.) Which of the following are valid assignment statements? (Choose two.)

v_string := Hello;
v_string = 'Hello';
v_number := 17 + 34; (*)
v_string := 'Hello'; (*)
v_date := 28-Dec-2006;

10.) PL/SQL can implicitly convert a CHAR to a NUMBER, provided the CHAR contains a
numeric value, for example '123'. True or False?

True (*)
False

11.) TO_NUMBER, TO_CHAR, and TO_DATE are all examples of:

Operators
Implicit conversion functions
Explicit conversion functions (*)
Character functions

12.) Which of the following are scalar data types? (Choose three.)

Date (*)
Array
Character (*)
Boolean (*)
Table

13.) Which of the following are PL/SQL data types? (Choose three.)

Lexical
Delimiter
Large Objects (LOB) (*)
Scalar (*)
Composite (*)

14. Comments change how a PL/SQL program executes, so an unsuitable comment can
cause the program to fail. True or False?

True
False (*)

15. What symbol is used to comment a series of lines?

* * before and after the comment


/* */ before and after the comment (*)
/ / before and after the comment

Das könnte Ihnen auch gefallen