雨课堂学堂在线学堂云《Android Application Development(苏州市职业)》单元测试考核答案_第1页
雨课堂学堂在线学堂云《Android Application Development(苏州市职业)》单元测试考核答案_第2页
雨课堂学堂在线学堂云《Android Application Development(苏州市职业)》单元测试考核答案_第3页
雨课堂学堂在线学堂云《Android Application Development(苏州市职业)》单元测试考核答案_第4页
雨课堂学堂在线学堂云《Android Application Development(苏州市职业)》单元测试考核答案_第5页
已阅读5页,还剩12页未读 继续免费阅读

下载本文档

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

文档简介

第1题WhatoperatingsystemistheunderlyingAndroidbasedon?ALinuxBWindowsCMacOSDUnix第2题ThecharacteristicsoftheAndroidsystemarenotincludedAOpensourceBBasedonLinuxCFormobilephonedevicesonlyDYoucandevelopapplicationswithJava第3题WhatlayersdoesAndroid'sarchitectureinclude?AHardwareAbstractionLayer(HAL)BLinuxKernelCApplicationDApplicationFramework正确答案:ABCD第4题ThecommondevelopmentlanguagesforAndroidapplicationdevelopmentareAJavaBKotlinCPythonDPHP正确答案:AB第1题TheAndroidSDKintheAndroiddevelopmentenvironmentreferstoAJavaruntimeBAndroidvirtualmachineCAndroidsoftwaredevelopmentpackageDJavavirtualmachine第2题TheofficialrecommendeddevelopmentenvironmentforAndroidapplicationsisAEclipseBAndroidStudioCVisualStudioDKeilQuizofTheFirstAndroidApplication第1题Inwhichdirectoryistheconstantstring.xmlplacedintheAndroidproject?Ares/layoutBres/valuesCassetsDlayout第2题AndroidManifest.xmlisAJavasourcecodefileBInventoryfilesandconfigurationfilesofthewholeapplicationCApplicationBuildScriptDLayoutfile第3题InAndroidprojects,theactivity_main.xmlfileisgenerallyAProfilesBJavasourcecodefileCLayoutfileDBuildthescript第4题IntheAndroidproject,build.gradleisgenerallyALayoutfileBJavasourcecodeCConfigurationfileDApplicationbuildscriptQuizofAndroidProgramDebugging第1题Intheandroidprogram,whatlevelofloginformationisLog.w()usedtooutput?ADebugBWarningCErrorDCommon第2题ThefunctionofLog.v(Stringtag,Stringmsg)methodisAOutputredundantinformationBOutputerrormessageCOutputdebugginginformationDOutputordinaryinformation第3题ThefunctionofLog.e(Stringtag,Stringmsg)methodisAOutputredundantinformationBOutputordinaryinformationCOutputerrormessageDOutputwarningmessage第4题Whichofthefollowinglogshasthehighestlevel?ADEBUGBWARNCINFODERROR第5题‏DeviceFileExplorerisafilebrowserforAndroiddevices.ItsfunctionsincludeACreatenewfilesandfoldersBDownloadthefileCUploadDSynchronize正确答案:DCBA第6题ThetypesofLogcatinformationareAWarningmessageBErrorinformationCRedundantinformationDDebugginginformation正确答案:ABCDQuizofLayout第1题ThetypeofconstraintthatdoesnotbelongtotheconstraintlayoutisALinearconstraintBRelativepositioningCChainconstraintDCentersandtendencies第2题ThechainconstraintmodeintheconstraintlayoutdoesnotincludeASpreadoutsideBWeightedCPackedDSpreadinside第3题TherearemanylayoutsinAndroid,whichareusedtoaccommodatesub-controlsandsub-layouts,whichareinheritedfromAViewGroupBLayoutCContainerDLinerLayout第4题ThefollowingstatementiswrongAAbsoluteLayoutislaidoutintheformofatable.BLinearLayoutisalineararrangementarrangedhorizontallyorvertically.CRelativeLayoutisarrangedaccordingtorelativeposition.DFrameLayoutisablankareapre-bookedonthescreen,whichcanfillsomeViewelementsintoit.第5题UnderwhichdirectoryisthelayoutfileintheAndroidprojectAres/layoutBres/valueCassetsDres/drawable第6题ThecommonlayoutinandroidisAFrameLayout,LinenarLayout,ConstraintLayout,TableLayoutBActivity,Service,BroadCast,ContentProvideCFlowLayout,BorderLayout,GridLayout,CardLayoutDBroadcast,Linenarlayout,Relativelayout,ContentProvide第7题ThefollowingdoesnotbelongtotheandroidlayoutABorderLayoutBFrameLayoutCLinearLayoutDTableLayout第8题IfyouuseLinearLayouttoachieveverticalarrangementofcomponents,whatattributesshouldbeaddedinxmltoset?

Aandroid:orientation="vertical"Bandroid:vertical="true"Candroid:orientation="horizontal"Dandroid:horizontal="true"ProgrammingAssignment:designingpersonalizedbusinesscards第1题QuizofSimpleViews第1题Buttonisabuttonusedtorespondtotheuser'sclickevent.

第2题CheckBoxisamulti-selectbuttonandcannotbeusedalone.

第3题ImageViewcanonlyloadpictureslocally.

第4题RadioButtonisaradiobuttonthatneedstobeusedinconjunctionwithRadioGrouptoprovidetwoormoremutuallyexclusiveoptions.

第5题WhichofthefollowingattributesisusedtorestricttheEditTextinputtype?AinputTypeBkeyboardCtextDSrc第6题WhichofthefollowingViewscanbeusedtodisplayprogressAProgressBarBEditTextCTextViewDButton第7题TherearemanyViewsinAndroid,allofwhichareinheritedfrom()withoutexception.AViewBControlCWindowDTextView第8题AfterToastiscreated,whichofthefollowingmethodsneedstobecalledatthistime?AshowBmakeTextCcreateDview第9题IfweneedtocapturetheeventsofaView,weneedtocreate()fortheView.AListenerBAttributeCWayDEngineering第10题WhichofthefollowingViewisusedtodisplaypictures?

AImageViewBTextViewCEditTextDButtonProgrammingAssignment:Designregistrationpage第1题QuizofActivity第1题WhenIntentpassesdata,whichofthefollowingdatatypescanbepassedASerializableBCharsequenceCParcelableDBundle正确答案:ABCD第2题ThemethodsthatneedtobecalledwhenActivityisfirstcreatedareAOnResume()BOnCreate()COnStart()DOnStop()正确答案:ABC第3题IntentcanbedividedintoAExplicitIntentBImplicitIntentCActionIntentDDataIntent正确答案:AB第4题InthelifecycleofActivity,whatstatewillActivitybewhenpartofitisoverwrittenbyanAlertDialog?ASuspendBExerciseCStopDDestroy第5题WhichofthefollowingdoesnotbelongtotheactivitylifecyclemethodAonInit()BonCreate()ConDestroy()DonResume()第6题ThefollowingarenotonActivityResult()methodparametersAresultBrequestCodeCresultCodeDData第7题Amongthefollowingoptions,theexecutionmethodwhenActivitygetsthefocusisAonResumeBonStartConPauseDonDestroy第8题ThefollowingisthewrongdescriptionofActivity'slifecyclemethodAIntheonResumestage,userscannotinteractwithActivity.BIntheOnstopstage,theoriginalActivitybecameinvisibleandwasoverwrittenbythenextActivity.CIntheonDestorystage,thisisthelastmethodcalledbeforeActivitywaskilled.DOnPausestage,atthisstage,itisvisiblebutnotinteractive.第9题ActivitygenerallyoverloadsthosemethodstomaintainitslifecycleAonCreate(),onStart(),onDestory(),onRestart(),onResume(),onPause(),onStop()BonCreateView(),onStart(),onDestory(),onRestart(),onResume(),onPause(),onStop()ConCreateMenu(),onStart(),onDestory(),onRestart(),onResume(),onPause()DonStart(),onRestart(),onResume(),onPause(),onStop(),onEed()第10题ExitActivitytosavetheoperationofsomeresourcesandstates,whichfunctionofthelifecyclecanbeperformedAonPauseBonCreateConResumeDonStart第11题Whatisthefirstmethodthatneedstobeexecutedintheactivitylifecycle?

AonCreateBonStartConReStartDonResume第12题ThefollowingfunctionsofIntentinAndroidareAAchievedatasharingbetweenapplicationsBItcanswitchbetweeninterfaces,containactionandactiondata,andconnectthelinksofthefourmajorcomponents.CItisalonglifecycle.Aprogramwithoutauserinterfacecankeeptheapplicationrunninginthebackgroundwithoutdisappearingbecauseofswitchingpages.DDealwiththeoverallworkofanapplicationProgrammingAssignment:Confirmationofregistrationinformation第1题QuizofAndroidThread第1题NetworkconnectionscanbeprocessedinAndroid'sUIthread.

第2题ThemainthreadofAndroidapplicationsismainlyresponsibleforhandlingUI-relatedevents.

第3题IntheHandlermechanism,Messageindicatestheinformationcarried.第4题RegardingHandlerinAndroid,thefollowingstatementiswrong(

)Apost()isthemethodtogetmessages.BobtainMessage()isamethodtogetmessages.CsendMessage()isamethodtosendmessages.DhandleMessage()isthemethodtodealwithmessages.第5题WhendevelopingAndroidapplications,theprincipleofthesingle-threadedmodelreferstoADon'tblockUIthreads.BEnsurethatonlyAndroidUIcontrolsareaccessedintheUIthread.COperationsrelatedtoUIupdatescanbeputintheUIthread,includingbackgrounddatadownload.DTrytocompletealloperationsintheUIthread.正确答案:ABQuizofAdvancedViews第1题RecyclerViewcanachieveahorizontallisteffect.

第2题ThedataoftheListViewisloadedthroughtheadapter.第3题ThecorrectstatementaboutRecyclerViewisARecyclerViewcannotsetclickevents.BRecyclerViewentriescannotsetclickevents.CTheRecyclerViewusestheRecyclerView.Adapteradapter.DRecyclerViewismorepowerfulthanListView.正确答案:CD第4题ThewrongstatementaboutListViewisAListViewcannotsetclickevents.BListViewentriescannotsetclickevents.CWhenthedataexceedsthedisplayrange,ListViewautomaticallyhasscrollablefeatures.DListViewcanalsodisplaydatacontentwithoutsettingAdapter.正确答案:ABD第5题Whichofthefollowingclassesisusedtoconstructarraytypedata?AArrayAdapterBSimpleAdapterCAdapterDCursorAdapter第6题Use()whenListViewisboundtomultiplevaluesofanarrayorListcollection.AArrayAdapterBSimpleAdapterCSimpleCursorAdapterDBaseAdapter第7题ListViewisacommonlyused()typeView.AListBButtonCPictureDThedrop-downlistQuizofDatastorage第1题ThetransactionoperationofSQLitedatabasesatisfiesatomicity,consistency,isolationandpersistence.

第2题Theupdate()methodoftheSQLiteDatabaseclassisusedtodeletethedatainthedatabasetable.

第3题ThefilestoragemethodinAndroidisdividedintointernalstorageandexternalstorage.

第4题SQLiteisalightweightdatabasethatcomeswithAndroid,whichsupportsbasicSQLsyntax.

第5题InthefollowingcodethatinitializesSharedPreferences,thecorrectoneisASharedPreferencessp=newSharedPreferences();BSharedPreferencessp=SharedPreferences.getDefault();CSharedPreferencessp=SharedPreferences.Factory();DSharedPreferencessp=getSharedPreferences();第6题InthefollowingdescriptionoftheSQLitedatabase,Whichoneiswrong(

)ATheSqliteOpenHelperclasshasthefunctionofcreatingadatabaseandupdatingthedatabaseversion.BTheSqliteDatabaseclassisusedtooperatethedatabase.CEverytimethegetWritableDatabasemethodofSqliteDatabaseiscalled,theonCreate()methodofSqliteOpenHelperisexecuted.DWhenthedatabaseversionchanges,SqliteOpenHelper'sonUpgrade()methodwillbecalledtoupdatethedatabase.第7题WhenAndroidqueriesthetablesofthedatabase,itwillusethe()methodintheSQLiteDatabaseclass.Ainsert()BexecSQL()Cquery()Dupdata()第8题Inthefollowingmethods,sharePreferencesobtainsitseditorby(

).AgetEdit()Bedit()CsetEdit()DgetSharedPreferences()第9题Amongthefollowingoptions,thefileoperationmodeparameterthatdoesnotbelongtothegetSharedPreferencesmethodis(

).AContext.MODE_PRIVATEBContext.MODE_PUBLICCContext.MODE_WORLD_READABLEDContext.MODE_WORLD_WRITEABLE第10题InthefollowingdescriptionoftheSharedPreferencesaccessfile,Whichoneiswrong().AItisamobilestoragesolution.BSharedPreferencesdealswithkey-valuepairs.CThepathtoreadxmlis/sdcard/shared_prefsDThesavingformatofthetextisxml.第11题Thedatastoragemethodofandroidis()AContentProviderBSharedPreferenceCSQLiteDAlloftheaboveProgrammingAssignment:Savingregistrationinformation第1题QuizofBluetoothcommunication第1题BluetoothSocketismainlyresponsibleforBluetoothconnection,readingandwritingdata.

第2题Youcanusethelow-powerBluetoothAPItoconnectclassicBluetoothdevices.第3题Bluetoothcommunicationiswidelyusedintheconnectionbetweenmobileappsandsmarthardwareduetoitslowcost,lowpowerconsumptionandlongdistance.

第4题Speechrecognitiontechnologyisakindofhuman-computerinteractiontechnology.

第5题Speechrecognitiontechnology,alsoknownasAutomaticSpeechRecognition(ASR),isatechnologythatallowsmachinestoconvertspeechsignalsintocorrespondingtextorcommandsthroughrecognitionandunderstandingprocesses.

第6题HuaweiHiAIcanbeusedonanydeviceaboveAndroid8.0.

第7题Huawei'svoicerecognitionmethodtoobtainrecognitionresultsis()AonResults()BonPartialResults()ConEnd()DonEvent()正确答案:AB第8题ThewaytosendandreceivedatainAndroidclassicBluetoothis()Aread()Bwrite()Csend()Dreceive()正确答案:AB第9题ThepermissionsthatgenerallyneedtobeaddedforAndroidclassicBluetoothcommunicationare()Aandroid.permission.BLUETOOTHBandroid.permission.BLUETOOTH_ADMINCandroid.permission.INTERNETDandroid.permission.WRITE_EXTERNAL_STORAGE正确答案:AB第10题ThewaytocancelspeechrecognitioninHuawei'svoicerecognitionAPIis()Acancel()BstopListening()Cdestroy()DonEnd()第11题ThebroadcastofBluetoothdevicesfoundinAndroidis()ABluetoothDevice.ACTION_FOUNDBBluetoothAdapter.ACTION_DISCOVERY_STARTEDCBluetoothDevice.ACTION_DISCOVERY_STARTEDDBluetoothAdapter.ACTION_FOUNDQuizofSmarthome第1题TCPisaconnectionlesscommunicationprotocol.

第2题WhatparametersdoestheTCPclientneedtoconnecttotheserver?AIPaddressBPortnumberCDNSaddressDMACaddress正确答案:AB第3题Smarthomesystemsinclude()AHomeenvironmentcontrolsystemBHomewiringsystemCHomenetworksystemDHomesecuritysystem正确答案:ABCD第4题Smarthomecanbedividedinto()accordingtotechnicalclassification.ABussystemtechnologyBWirelesscommunicationtechnologycategoryCPowercarriertechnologycategoryDBroadc

温馨提示

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

评论

0/150

提交评论