QuestionQ1Verified/PL/SQL Language FundamentalsCopy linkReport a problemAsk AstroTutorSave questionWhich three statements about functions and procedures are true?Choose threeAThe ACCESSIBLE BY clause can be used only for procedures.BIn a function, every execution path must lead to a RETURN statement.CBoth can have only constants as actual parameters for IN mode parameters.DBoth can be invoked from within SQL statements.EIn a procedure the RETURN statement cannot specify an expression.FIn a function every RETURN statement must specify an expression.Show AnswerAnswerExplanationIn PL/SQL, every execution path in a function must lead to a RETURN statement. A procedure’s RETURN statement only transfers control back to its caller and cannot specify an expression. A function’s RETURN statement supplies the function’s return value and must specify an expression.Learn moreOracle Database PL/SQL Language Reference: RETURN StatementOracle Database PL/SQL Language Reference: PL/SQL SubprogramsShow comments1Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion