Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Download
Standard view
Full view
of .
Look up keyword
Like this
3Activity
0 of .
Results for:
No results containing your search query
P. 1
Writing PL SQL Executable Statements

Writing PL SQL Executable Statements

Ratings: (0)|Views: 703|Likes:
Published by Catalina Achim

More info:

Published by: Catalina Achim on May 26, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as TXT, PDF, TXT or read online from Scribd
See more
See less

11/08/2013

pdf

text

original

 
Test:Quiz:WritingPL/SQLExecutableStatements1.WhenPL/SQLconvertsdataautomaticallyfromonedatatypetoanother,itiscalled_______conversion. MarkforReview(1)PointsExplicitImplicit(*)TO_CHARCorrect2.Whichofthefollowingdatatypeconversionscanbedoneimplicitly?(Choosetwo.) MarkforReview(1)Points(Chooseallcorrectanswers)DATEtoNUMBERNUMBERtoVARCHAR2(*)NUMBERtoPLS_INTEGER(*)Incorrect.RefertoSection2Lesson5.3.Examinethefollowingblock.WhatshouldbecodedatLineA?DECLAREv_charVARCHAR2(8):='24/09/07';v_dateDATE;BEGINv_date:=.......LineAEND;MarkforReview(1)Pointsv_date:=FROM_CHAR(v_char,'dd/mm/yy');v_date:=TO_DATE(v_char,'dd/mm/yy');(*)v_date:=v_char;
 
Incorrect.RefertoSection2Lesson5.4.Explicitconversionscanbeslowerthanimplicitconversions.TrueorFalse? MarkforReview(1)PointsTrueFalse(*)Incorrect.RefertoSection2Lesson5.5.PL/SQLstatementsmustbewrittenonasingleline. MarkforReview(1)PointsTrueFalse(*)Incorrect.RefertoSection2Lesson5.6.TheLENGTHandROUNDfunctionscanbeusedinPL/SQLstatements.TrueorFalse? MarkforReview(1)PointsTrue(*)FalseCorrect7.Whatwillhappenwhenthefollowingcodeisexecuted?DECLAREv_new_dateDATE;BEGINv_new_date:='Today';DBMS_OUTPUT.PUT_LINE(v_new_date);END;MarkforReview(1)PointsTheblockwillexecuteanddisplaytoday'sdate.Theblockwillexecuteanddisplaytheword"Today".
 
Theblockwillfailbecausethecharactervalue"Today"cannotbeimplicitlyconvertedtoadate.(*)Correct8.TheDECODEandMAXfunctionscanbeusedinPL/SQLstatements.TrueorFalse? MarkforReview(1)PointsTrueFalse(*)Incorrect.RefertoSection2Lesson5.9.Usingimplicitconversionsisgoodprogrammingpractice. MarkforReview(1)PointsTrueFalse(*)Correct10.PL/SQLcanimplicitlyconvertaCHARtoaNUMBER,providedtheCHARcontainsanumericvalue,forexample'123'.TrueorFalse? MarkforReview(1)PointsTrue(*)FalseIncorrect.RefertoSection2Lesson5.11.Whichofthefollowingiscorrect? MarkforReview(1)Pointsv_family_name=SMITH;V_FAMILY_NAME=SMITH;

Activity (3)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads
Enis Gemil liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->