COMP-2142022 Fall学习通超星课后章节答案期末考试题库2023年_第1页
COMP-2142022 Fall学习通超星课后章节答案期末考试题库2023年_第2页
COMP-2142022 Fall学习通超星课后章节答案期末考试题库2023年_第3页
COMP-2142022 Fall学习通超星课后章节答案期末考试题库2023年_第4页
免费预览已结束,剩余4页可下载查看

付费下载

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

COMP_2142022Fall学习通超星课后章节答案期末考试题库2023年____arenamedmemoryareasthatholdvaluestoallowtheretrievalandmanipulationofvaluesinaprogram.

参考答案:

Variables

____________________areusedforsituationsinwhichweneedtorepeatalineorlinesofcodewithinourblock.

参考答案:

Loops

Aprocedureandfunctionarenamedprogramunitsthatarecalledtoperformaspecifictask.

参考答案:

Aprogramminglanguageallowstheactionsofanendusertobeconvertedintoinstructionsthatacomputercanunderstand.

参考答案:

Accordingtothestatementblockabove,whatvalueisstoredinthevariabletotal_amt?

参考答案:

32

Allofthefollowingareconsideredtobeprogramminglanguages,except____.

参考答案:

Oracle

Aneventcanrangefromauseraction,suchasclickingthebuttononthescreen,toatableupdatestatementthatautomaticallycallsadatabasetrigger.

参考答案:

Assignmentstatementsareusedtoputorchangethevaluesofvariables.

参考答案:

Byindicatinganumericrange,the____________________dictatesexactlyhowmanytimestheloopshouldrunintheopeningLOOPclause.

参考答案:

FORloop

clausecanbeusedtorestrictorfilterthegroupsreturnedbyaquerybasedonagroupfunction?

参考答案:

having

Describethethree-tierapplicationmodel.

参考答案:

Thethree-tiermodelisgrowinginpopularitybecauseitattemptstoeaseapplicationmaintenanceandenablesthesupportoflargernumbersofusers.Inthisscenario,theuserinterfaceistypicallypresentedviaaWebbrowserandisoftenreferredtoasathinclient.Applicationcodeisnotloadedontotheclientmachine;alltheapplicationcodenowresidesonanapplicationserver,whichisalsoreferredtoasthemiddletier.Threelayersnowexistinthismodel:theuserinterface,theapplicationserver,andthedatabaseserver.TheOracleapplicationserverallowsthedeploymentofOracleFormsapplicationsviatheWeb.Theapplicationservercontainstheuserinterfaceandprocessinglogic,whichtogether,respondtouseractionsand,inturn,sendappropriatecodetothedatabaseserverforprocessing.

Determinewhichordershadahighertotalamountduethanorder1008.

参考答案:

SELECTCOUNT(*)

FROMbooksWHEREcategory='COOKING';SELECTMAX(retail)FROMbooksJOINbookauthorUSING(isbn)JOINauthorUSING(authorid)WHERElname='WHITE'

ANDfname='LISA';SELECTtitle,retailFROMbooksWHEREretail<(SELECTAVG(retail)FROMbooks);SELECTorder#FROMordersWHEREshipstate=(SELECTshipstateFROMordersWHEREorder#=1014);

SELECToi.order#,SUM(oi.quantity*oi.paideach)FROMorderitemsoi,booksbWHEREoi.isbn=b.isbnGROUPBYoi.order#HAVINGSUM(oi.quantity*oi.paideach)>

(SELECTSUM(oi.quantity*oi.paideach)

FROMorderitemsoi,booksbWHEREoi.isbn=b.isbnANDoi.order#=1008);

END;

参考答案:

groupfunctioncanbeusedtoperformacountthatincludesNULLvalues?

参考答案:

count(*)

Ifyouhaveapieceofcodethathasthepotentialofbeingusedbyvariousapplications,savingthiscodeontheserverallowsittobesharedbyseveralapplications.

参考答案:

In

clauseshouldyouincludethecondition"pubid=4"torestricttherowsprocessedbyaquery?

参考答案:

where

Oracle12cautomaticallycreatesanindexforwhichtypeofconstraints?

参考答案:

onlybandc

PL/SQLfullysupportsSQLdatatypes.

参考答案:

Procedurallanguagesallowdevelopersto____.

参考答案:

performdecision-makinglogic

StructuredQueryLanguage(SQL)isconsideredaprocedurallanguage.

参考答案:

The____sectionofaPL/SQLblockcontainshandlersthatallowyoutocontrolwhattheapplicationwilldoifanerroroccurswhentheexecutablestatementsareprocessed.

参考答案:

EXCEPTION

The____________________optioncanbeaddedtothevariabledeclarationtorequirethevariabletoalwayscontainaparticularvaluewithintheblock.

参考答案:

CONSTANT

The____________________sectionofthePL/SQLblockcontainscodethatcreatesvariables,cursors,andtypes.

参考答案:

DECLARE

TheBEGINsectionofaPL/SQLblockcontainscodethatcreatesvariables,cursors,andtypes.

参考答案:

TheonlyrequiredsectionsofaPL/SQLblockarethe____sections.

参考答案:

BEGIN&END

Theterm____________________indicatestheprogramunitissavedinthedatabase,andthereforecanbeusedorsharedbydifferentapplications.

参考答案:

stored

Thetermanonymousblocksreferstoblocksofcodethatarenotstoredforreuseanddonotexistafterbeingexecuted.

参考答案:

Thethree-tierapplicationmodelisalsoreferredtoasaclient/serverapplication.

参考答案:

Whatcomparisonoperatorsarerequiredformultiple-rowsubqueries?

参考答案:

IN,ALL,ANY,orEXIST

WhatisthepurposeoftheBEGINsectionofaPL/SQLblock?

参考答案:

TheBEGINsectionistheheartofthePL/SQLblockinthatitcontainsalltheprocessingaction,orprogramminglogic.SQLisusedfordatabasequeriesanddatamanipulation.Conditionallogic,suchasIFstatements,isusedtomakedecisionsonwhatactiontotake.Loopsareusedtorepeatcodeandassignmentstatementsareusedtoputorchangevaluesinvariables.

What’sthemaximumdepthallowedwhennestinggroupfunctions?

参考答案:

2

WhenanIFstatementchecksonlyoneconditionandperformsactionsonlyiftheconditionisTRUE,itisreferredtoasasimpleIFcondition.

参考答案:

Whichofthefollowingcodefragmentswouldnotraiseanerror?

参考答案:

IFrec_order.state='A'THEN

Whichofthefollowinggeneratesaseriesofintegersthatcanbestoredinadatabase?

参考答案:

asequence

Whichofthefollowinginitializesthevariableorder?

参考答案:

DECLARE

WhichofthefollowingisavalidSELECTstatement?

参考答案:

SELECTAVG(retail-cost)FROMbooksGROUPBYcategory;

Whichofthe

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论