Save
Upgrade to remove ads
Busy. Please wait.
Log in with Clever
or

show password
Forgot Password?

Don't have an account?  Sign up 
Sign up using Clever
or

Username is available taken
show password


Make sure to remember your password. If you forget it there is no way for StudyStack to send you a reset link. You would need to create a new account.
Your email address is only used to allow you to reset your password. See our Privacy Policy and Terms of Service.


Already a StudyStack user? Log In

Reset Password
Enter the associated with your account, and we'll email you a link to reset your password.
focusNode
Didn't know it?
click below
 
Knew it?
click below
Don't Know
Remaining cards (0)
Know
0:00
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.

  Normal Size     Small Size show me how

DBSA FA3

QuestionAnswer
The purpose of the OR REPLACE clause is to ______ an existing procedure. OVERWRITE
In the given Procedure header, the ________clause is optional. CREATE OR REPLACE PROCEDURE name [parameters] IS|AS OR REPLACE
The _____ are named PL/SQL blocks that are compiled and stored in the database. SUBPROGRAMS
The block structure of the subprograms is similar to the structure of anonymous blocks. True
A procedure is a PL/SQL block containing local variables, a BEGIN, and an END. The procedure_name after the END keyword is mandatory. False
The actual is a special form of a variable, whose input values are initialized by the calling environment when the subprogram is called, and whose output values are returned to the calling environment when the subprogram returns control to the caller. True
The symbol >> is used for association operator? False
The code below is a correct example of passing parameters by combination notation. add_dept (p_loc=>1400, 'EDUCATION' ); False
The positional parameter passing uses the associate operator. False
The Named parameter passing is the common method of passing parameters. False
Given the procedure below, how many parameters will return a value to the calling environment? CREATE OR REPLACE PROCEDURE show_emps (p_emp_id NUMBER, p_department_id OUT number, p_hiredate IN OUT DATE) IS begin . . . . . . End; 2
Which parameter mode can be assigned a default value? IN OUT IN OUT IN
Given the procedure below, what is the correct way of invoking the procedure? CREATE OR REPLACE PROCEDURE show_emps (p_emp_id IN NUMBER, p_department_id IN number, p_hiredate IN DATE) IS begin . . . . . . End; Show_emps(101, 10, ’01-dec-2006’); show_emps(p_department_id => 10, p_hiredate => ’01-dec-1007’, p_emp_id => 101) All the options show_emps(101, p_hiredate => ’01-dec-2007’, p_department_id = 10) ANSWER: ALL
What missing in the given function construct? CREATE [OR REPLACE] function_name [(parameter1 [mode1] datatype1, ...)] RETURN datatype IS|AS [local_variable_declarations; …] BEGIN actions; RETURN expression; END [function_name]; FUNCTION
The functions used in SQL statements cannot use OUT or _____ modes. IN OUT
A function must have a _______ clause in the header and at least one RETURN statement in the executable section. RETURN
A function can be called as a part of: Both options
Which of the statement below is valid? Assuming that get_sal function exists with parameter. get_sal() + 50;
In Procedure, the default parameter mode is _______. IN
The executable section of the procedure body requires a minimum of _____ statement. ONE
Subprograms become the building blocks of packages and triggers. True
In Procedure, the default parameter mode is IN. True
If Combination notation is used, the positional parameters must come first before the named parameters. True
To invoke a procedure from another procedure, use a direct call inside an executable section of the block. True
The IN parameters can only be read within the procedure and cannot be modified. True
The formal parameters can be literal values, variables, or expressions that are sent to the parameter list of a called subprogram. False
A procedure can be invoked in another procedure. True
Howmnyparameter CREATE or replace procedure raise_sal (empid my_employees.employee_id%TYPE := 1234, emp_raise number) IS BEGIN update employees set salary = salary + (salary * (emp_raise/100) where employee_id = emp; END; 2
The operator => is called _______. Association operator
What is the symbol used for association operator? =>
If Combination notation is used, the _______ parameters must come first. POSITIONAL
Three ways of passing parameters from the calling environment: POSITIONAL, NAMED, COMBINATION
A function must have a _______ clause in the header and at least one RETURN statement in the executable section. RETURN
A ______ is a named PL/SQL block that returns exactly one value. FUNCTIONS
What is missing in the code below? create or replace function sample return number is num number(2); begin num := 5+5; end; No return value
What is missing in the code below? create or replace function sample return number is begin return 5+5; end; Nothing is missing
Subprograms are implicitly shared. Group of answer choices True False False, explicitly
The OUT parameter mode supplies an input value, which can be returned (output) as a modified value. Group of answer choices True False False The OUT parameter mode is used to return a value from a procedure to the calling environment, but it does not take an input value from the caller when the procedure begins execution.
Which parameter mode can be assigned a default value? IN OUT IN OUT IN The IN mode is designed to pass values into a subprogram. Because the subprogram relies on this input to begin execution
Which type of parameter passing uses an association operator? Named
The type of parameter that is declared in procedure heading is called ________. FORMAL
The parameter modes are specified in: FORMAL PARAMETER
How many value is returned by a function?_____ 1
The functions used in SQL statements cannot use ____ or IN OUT modes. out
The ____ parameters can be literal values, variables, or expressions that are sent to the parameter list of a called subprogram. ACTUAL
In PL/SQL ___________, the function identifier acts like a variable whose value depends on the parameters passed to it. EXPRESSION
The Positional parameter passing is the common method of passing parameters. True
What follows the RETURN keyword at the function header? DATA TYPE
Created by: jxxnixx
 

 



Voices

Use these flashcards to help memorize information. Look at the large card and try to recall what is on the other side. Then click the card to flip it. If you knew the answer, click the green Know box. Otherwise, click the red Don't know box.

When you've placed seven or more cards in the Don't know box, click "retry" to try those cards again.

If you've accidentally put the card in the wrong box, just click on the card to take it out of the box.

You can also use your keyboard to move the cards as follows:

If you are logged in to your account, this website will remember which cards you know and don't know so that they are in the same box the next time you log in.

When you need a break, try one of the other activities listed below the flashcards like Matching, Snowman, or Hungry Bug. Although it may feel like you're playing a game, your brain is still making more connections with the information to help you out.

To see how well you know the information, try the Quiz or Test activity.

Pass complete!
"Know" box contains:
Time elapsed:
Retries:
restart all cards