Test Bank for Introduction to Android Application Development Android Essentials, 5th Edition

Take your exam prep to the next level with Test Bank for Introduction to Android Application Development Android Essentials, 5th Edition—get instant access to essential questions.

Joseph Wilson
Contributor
4.6
117
about 1 year ago
Preview (21 of 69 Pages)
100%
Log in to unlock

Page 1

Test Bank for Introduction to Android Application Development Android Essentials, 5th Edition - Page 1 preview image

Loading page ...

Introduction to Android™Application DevelopmentTest BankFifthEditionJoseph Annuzzi, Jr.Lauren DarceyShane ConderISBN-13:978-0-13-443363-9ISBN-10:0-13-443363-7

Page 2

Test Bank for Introduction to Android Application Development Android Essentials, 5th Edition - Page 2 preview image

Loading page ...

Page 3

Test Bank for Introduction to Android Application Development Android Essentials, 5th Edition - Page 3 preview image

Loading page ...

Contents2ContentsChapter 1: PresentingAndroid...............................................................................................4Multiple Choice Questions ........................................................................................................................4Answers and Explanations........................................................................................................................6Chapter 2: Setting UpforDevelopment..................................................................................7Multiple Choice Questions ........................................................................................................................7Answers and Explanations........................................................................................................................9Chapter 3: Creating Your FirstApplication...........................................................................10Multiple Choice Questions ......................................................................................................................10Answers and Explanations......................................................................................................................12Chapter 4: UnderstandingApplicationComponents............................................................13Multiple Choice Questions ......................................................................................................................13Answers and Explanations......................................................................................................................15Chapter 5: Defining the Manifest...........................................................................................16Multiple Choice Questions ......................................................................................................................16Answers and Explanations......................................................................................................................18Chapter 6: Managing ApplicationResources........................................................................19Multiple Choice Questions ......................................................................................................................19Answers and Explanations......................................................................................................................21Chapter 7: Exploring Building Blocks...................................................................................22Multiple Choice Questions ......................................................................................................................22Answers and Explanations......................................................................................................................24Chapter 8: Positioningwith Layouts.....................................................................................25Multiple Choice Questions ......................................................................................................................25Answers and Explanations......................................................................................................................27Chapter 9: Partitioning with Fragments................................................................................28Multiple Choice Questions ......................................................................................................................28Answers and Explanations......................................................................................................................30Chapter 10:Architecting with Patterns..................................................................................31Multiple Choice Questions ......................................................................................................................31Answers and Explanations......................................................................................................................33Chapter 11: Appealing with Style...........................................................................................34Multiple Choice Questions ...................................................................................................................... 34Answers and Explanations...................................................................................................................... 36Chapter 12: Embracing Material Design................................................................................37Multiple Choice Questions ...................................................................................................................... 37Answers and Explanations...................................................................................................................... 39Chapter13: Designing Compatible Applications..................................................................40Multiple Choice Questions ...................................................................................................................... 40Answers and Explanations...................................................................................................................... 42Chapter 14: Using Android Preferences................................................................................43Multiple Choice Questions ...................................................................................................................... 43Answers and Explanations...................................................................................................................... 45Chapter 15: Accessing Files and Directories........................................................................46Multiple Choice Questions ...................................................................................................................... 46

Page 4

Test Bank for Introduction to Android Application Development Android Essentials, 5th Edition - Page 4 preview image

Loading page ...

Contents3Answers and Explanations...................................................................................................................... 48Chapter 16:Savingwith SQLite.............................................................................................49Multiple Choice Questions ...................................................................................................................... 49Answers and Explanations...................................................................................................................... 51Chapter 17:Leveraging Content Providers...........................................................................52Multiple Choice Questions ...................................................................................................................... 52Answers and Explanations...................................................................................................................... 54Chapter 18:Learning the Development Workflow................................................................55Multiple Choice Questions ...................................................................................................................... 55Answers and Explanations...................................................................................................................... 57Chapter 19: Planning the Experience....................................................................................58Multiple Choice Questions ...................................................................................................................... 58Answers and Explanations...................................................................................................................... 60Chapter 20:Delivering Quality Applications.........................................................................61Multiple Choice Questions ...................................................................................................................... 61Answers and Explanations...................................................................................................................... 63Chapter 21: Testing Your Applications..................................................................................64Multiple Choice Questions ...................................................................................................................... 64Answers and Explanations...................................................................................................................... 66Chapter 22: Distributing Your Applications...........................................................................67Multiple Choice Questions ...................................................................................................................... 67Answers and Explanations...................................................................................................................... 69

Page 5

Test Bank for Introduction to Android Application Development Android Essentials, 5th Edition - Page 5 preview image

Loading page ...

Chapter 1: Presenting AndroidMultipleChoice Questions4Chapter 1: Presenting AndroidMultiple Choice Questions1.In which of the following programming languages are Android applications written?a.PHPb.C++c.Javad.HTML2.Joe receives apop-up alert on his Android device statingthat a friend has challenged him toa game. Which part of the Android application framework does this involve?a.Notificationsb.Contentc.Intentsd.Services3.Which Android platform service manages the basicuser interface on the device?a.FragmentManagerb.AccessibilityManagerc.ClipboardManagerd.ViewManager4.Which of the followingbenefits is provided by joining the Open Handset Alliance for devicemanufacturers?a.The ability to license Google Mobile Services (GMS)b.Access to the Android Open Source Projectc.The ability to publish applicationson Google Playd.No developer registration fee for publishing applications on Google Play5.To what platform do Android developers currently publish apps?a.Google Playapp storeb.App Storec.Cydiad.The Android Market6.Which of the followingstatisticsreleased byGoogleat its annual Google I/O conference isfactual as of May 2015?a.Android devices ship to over 180 countries.b.Google Play hadmore than 2 billion active users.c.There were 50billion app installs in the previous 12 months.d.Angry birds held the number-1 app install for the previous 12 months.7.What does WAP stand for?a.Wide Area Proxyb.Web Alternative Protocolc.Wireless Access Pointd.Wireless Application Protocol

Page 6

Test Bank for Introduction to Android Application Development Android Essentials, 5th Edition - Page 6 preview image

Loading page ...

Chapter 1: Presenting AndroidMultiple Choice Questions58.Which of the following companies have manufactured Android devices?a.Samsungb.HTCc.Appled.Motorola9.What brand of Android devices did Google create?a.Nexusb.Galaxy Xc.T-Mobile G1d.Motorola Droid10.What does API stand for?a.Automaticprogramminginputb.Applicationprogramminginterfacec.Androidprograminterpreterd.Algorithmparseiteration

Page 7

Test Bank for Introduction to Android Application Development Android Essentials, 5th Edition - Page 7 preview image

Loading page ...

Chapter 1: Presenting AndroidAnswers and Explanations6Answers and Explanations1.c.Android is written in the well-respected Java programming language.2.a.Alerts are part of the notifications to users. Notifications alert userswhenthe appdeveloper would like to let themknow thatsomethingimportanthappened in the app.3.d.TheViewManagerhandles the user interface and display on the device. TheFragmentManagermanages the fragments of an activity. TheAccessibilityManagermanages accessibility events, facilitating device support for users with physical impairments.TheClipboardManagerprovidesthe device withaccess to the global clipboard for cuttingand pasting content.4.a.The ability to license Google Mobile Services (GMS)5.a.Developers publish apps to the Google Play app store. The App Store is where iOSdevelopers publish. Cydia is a repository for jailbroken iOS apps. The Android Market was aformer name for the Google Play store.6.c.There were 50 billion app installs inthe previous 12 months.7.d.WAP is an acronym for Wireless Application Protocol.8.a, b, d.Apple has never manufactured an Android device,but Samsung, HTC, and Motorolahave.9.a.The Nexus deviceswere created by Google toprovide the full, authentic Androidexperience as Google intends. Many developers use these devices for building and testingtheir applications because they are the only devices in the world that receive the latestAndroid operating system upgrades as they are released.10.b.API is an acronym forapplicationprogramminginterface.

Page 8

Test Bank for Introduction to Android Application Development Android Essentials, 5th Edition - Page 8 preview image

Loading page ...

Chapter 2: Setting Up for DevelopmentMultiple Choice Questions7Chapter2: Setting UpforDevelopmentMultiple Choice Questions1.What must developers enable on Android devices in order to install their applications?a.ADTsb.Emulatorsc.Developeroptionsd.Certificates2.Which one of the following provides a complete list of specific changes to the Android SDK?a.API Diff Reportb.Release Notesc.Overview of Changesd.Errata Notification3.Who retains all rights to Android apps developed with the SDK?a.Googleb.Microsoftc.Android, Inc.d.The developer4.Which one of the following packages provides encryption support?a.org.jsonb.javax.*c.android.*d.junit.*5.What is the official Android development environment?a.Android IDEb.Xcodec.Visual Basicd.Android Studio6.Megan wants to download and update the development tools while still maintainingbackward compatibility. What tool within the IDE will she use?a.Android Compatibility Managerb.Android SDK Managerc.Android Time Managerd.Android Virtual Device Manager7.Within the IDE, what does a developer use to load Android applications,andtest and debugthem?a.AVD configurationb.The Android emulatorc.A simulatord.Test devices

Page 9

Test Bank for Introduction to Android Application Development Android Essentials, 5th Edition - Page 9 preview image

Loading page ...

Chapter 2: Setting Up for DevelopmentMultiple Choice Questions88.Whichsetting must you enableon an Android deviceto install Android applications otherthan those from the Google Play store?a.UnknownAPKsb.Unknown sourcesc.Unknown applicationsd.Alternative app stores9.Android Studioisbased onwhat other IDE?a.Eclipseb.Sublimec.IntelliJIDEAd.XDA Developer10.Who owns the copyrights and intellectual property rights to the material in the SDK?a.The developer.b.Google and third parties.c.Android development leads.d.The SDKis open source and not under copyright.

Page 10

Test Bank for Introduction to Android Application Development Android Essentials, 5th Edition - Page 10 preview image

Loading page ...

Chapter 2: Setting Up for DevelopmentAnswers and Explanations9Answers andExplanations1.c.Ifdevelopersdo not enable Developeroptions,theywill not be able to installtheirapplications onAndroiddevices.2.a.An API Diff Report provides a complete list of specific changes to the SDK. The Overviewof Changes is a brief description of the major changes to the SDK. The Release Notes are alist of known issues with the SDK.3.d.The developer retains all rights to any Android software developed with the SDK,including intellectual property rights. Developers also retain allresponsibility for their ownwork.4.b.Thejavax.*package provides encryption support.org.jsonprovides JavaScriptObject Notation support. The Android fundamentals are included in theandroid.*package.junit.*supplies functionality for unit-testing.5.d.Android Studio6.b.The Android SDK Manager facilitates Android development across multiple platformversions simultaneously. When a new Android SDK is released, you can use this tool todownload and update your tools while still maintainingbackward compatibility with olderversions of the Android SDK.7.b.The Android emulator is one of the most important tools provided with the Android SDK.You will use this tool frequently when designing and developing Android applications. Theemulator runs on your computer and behaves much as a mobile device would. You can loadAndroid applications into the emulator,andthen test and debug them.8.b.Unknown sources9.c.IntelliJ IDEA10.b.Google (as the copyright holder of Android) grants you a limited, worldwide, royalty-free,nonassignable, and nonexclusive license to use the SDK solely to develop applications forthe Android platform. Google (and third-party contributors) are granting you license, but theystill hold all copyrights and intellectual property rights to the material. Using the Android SDKdoes not grant you permission to use any Google brands, logos, or trade names. You maynot remove any of the copyright notices therein. Third-party applications that yourapplications interact with(other Android apps) are subject to separate terms and fall outsidethis agreement.

Page 11

Test Bank for Introduction to Android Application Development Android Essentials, 5th Edition - Page 11 preview image

Loading page ...

Chapter 3: Creating Your First ApplicationMultiple Choice Questions10Chapter 3:CreatingYour First ApplicationMultiple Choice Questions1.Which one of the followingtermsbest describes what allows the developer to picka deviceforcreating anemulator anddetermineswhich platform(s) the app will support?a.API levelb.Google APIsc.Buildtoolsd.AVDprofile2.On theWelcome to Android Studioscreen, to work with theBorderlessButtonssampleapplication,which of the followingQuick Start optionsshould you select?a.Start a new Android Studio projectb.Open an existing Android Studio projectc.Import anAndroid code sampled.Check outyourproject from Version Control3.What is the central configuration file for Androidapplications?a.libs/android-support-v4.jarb.AndroidManifest.xmlc.proguard-project.txtd.res/layout4.In Android Studio,whichtabshould you useto view breakpoints, step through code, andwatch the Logcat logging information about your application?a.Variable Browserb.Step Intoc.Debuggerd.Android Runtime5.Which package contains theLogclass?a.android.utilb.java.*c.android.supportd.android.appwidget6.WhichAndroid Studiooption allows a developer to save time by automaticallyremoving anyunusedimported classes?a.Fiximportsb.Quickincludesc.Runoptimizationsd.Optimize imports7.Whatfolder is required for all autogenerated files?a.build/b.libs/c.src/d.main/

Page 12

Test Bank for Introduction to Android Application Development Android Essentials, 5th Edition - Page 12 preview image

Loading page ...

Chapter 3: Creating Your First ApplicationMultiple Choice Questions118.Gavin islogging debug messages in hisapplication. Whatlogging method shouldhe use?a.Logging.d()b.Logging.debug()c.Log.d()d.Log.debug()9.WhenJasonrotates the screen on hisAndroid device, what method is called?a.start()b.onCreate()c.run()d.setOrientation()10.Where is the All Apps buttonfound?a.In theFavorites trayb.In theHometrayc.In theNavigationtrayd.In theRecentstray

Page 13

Test Bank for Introduction to Android Application Development Android Essentials, 5th Edition - Page 13 preview image

Loading page ...

Chapter 3: Creating Your First ApplicationAnswers and Explanations12Answers and Explanations1.d.The AVD profile describes what type of device you want the emulator to simulate,including which Androidplatform to support. You can specify different screen sizes andorientations, and you can specify whether the emulator has an SD card and, if it does, whatcapacity the card has.2.c.Import an Android code sample3.b.AndroidManifest.xmlis the centralconfiguration file for the application. It definesyour application’s capabilities and permissions,as well as how it runs.4.c.TheDebuggertab5.a.Android logging features are in theLogclass of theandroid.utilpackage.6.d.Optimize imports7.a.build/8.c.Log.d()9.b.TheonCreate()method is called every time the user navigates to theActivity(forward or backward),and whenever he or she rotates the screen orinitiates other deviceconfiguration changes.10.a.TheFavorites tray

Page 14

Test Bank for Introduction to Android Application Development Android Essentials, 5th Edition - Page 14 preview image

Loading page ...

Chapter 4: Understanding Application ComponentsMultiple Choice Questions13Chapter4: Understanding ApplicationComponentsMultiple Choice Questions1.The central command center for an Android application is known asthea.Contextb.Servicec.Intentd.Activity2.The tasks in an Android application are referred to asa.Intentsb.Actionsc.Activitiesd.Services3.For whatpurpose is afragment commonly used?a.To allow application components such as activities and services to communicate withone anotherb.To measure the amount of battery usagec.To avoid app crashes due to memory leaksd.To hold the code and screen logic for placing the same user interface component inmultiple screens4.A resource identifier is a unique number that is generated where?a.In the settings of the Eclipse IDEb.Within theR.javaclassc.Within theresources.*packaged.Within theid.javaclass5.TheonCreate()method has a single parameter nameda.Bufferb.Devicec.Bundled.Partition6.When theActivityreaches the top of theActivitystack and becomes the foregroundprocess, what method is called?a.onDestroy()b.onRestart()c.onPause()d.onResume()7.If anActivityis vulnerable to being killed by the Android operating system due to lowmemory,theActivitycan save state information to aBundleobjectbyusing whichcallback method?a.onStop()b.isFinishing()c.onSaveInstanceState()d.killProcesses()

Page 15

Test Bank for Introduction to Android Application Development Android Essentials, 5th Edition - Page 15 preview image

Loading page ...

Chapter 4: Understanding Application ComponentsMultiple Choice Questions148.When anActivitymoves to the top of theActivitystack, the currentActivityisinformed that it is being pushed down theActivitystack by what method?a.onPause()b.onStop()c.onResume()d.onReload()9.Tasks that do not require user interaction can be encapsulated in a(n)a.Serviceb.Activityc.Intentd.Class10.You can retrieve application resources using which method of the applicationContext?a.detectProperties()b.getResources()c.getAssets()d.getAppResources()

Page 16

Test Bank for Introduction to Android Application Development Android Essentials, 5th Edition - Page 16 preview image

Loading page ...

Chapter 4: Understanding Application ComponentsAnswers and Explanations15Answers and Explanations1.a.The context is the central command center for an Android application. Most application-specific functionality canbe accessed or referenced through the context.2.c.An Android application is a collection of tasks, each of which is called an activity. Eachactivity within an application has a unique task or purpose.3.d.A fragment is commonly used to hold the code and screen logic for placing the same userinterface component in multiple screens, which are represented by multipleActivityclasses.4.b.A resource identifier is a unique number automatically generated within theR.javaclass.5.c.TheonCreate()method has a single parameter namedBundle.6.d.When theActivityreaches the top of theActivitystack and becomes theforeground process, theonResume()method is called.7.c.If anActivityis vulnerable to being killed by the Android operating system due to lowmemory, theActivitycan save state information to aBundleobjectbyusing theonSaveInstanceState()callback method.8.a.When anActivitymoves to the top of theActivitystack,the currentActivityisinformed that it is being pushed down theActivitystack by way of theonPause()method.9.a.Tasks that do not require user interaction can be encapsulated in a service.10.c.You can retrieve application resources using thegetAssets()method of the applicationContext. This returns anAssetManager(android.content.res.AssetManager)instance that can then be used to open a specific asset by its name.

Page 17

Test Bank for Introduction to Android Application Development Android Essentials, 5th Edition - Page 17 preview image

Loading page ...

Chapter 5: Defining the ManifestMultiple Choice Questions16Chapter 5: Defining the ManifestMultiple Choice Questions1.What file type isthe Android manifest file?a.HTMLb.XMLc.TXTd.CSV2.What symbol is used to specify that a class belongs to the package name specified in themanifest?a.#b._c..d.$3.When using the<uses-feature>tag, which optional attribute can be set totrueorfalsefor configuring Google Play store filtering?a.android:enforcedb.android:playc.android:permissionsd.android:required4.Whichapplication attribute is used for an auto backup feature that was introduced in AndroidMarshmallow?a.android:autoBackupb.android:backupAutomaticc.android:backupContentd.android:fullBackupContent5.If your Android application works with OpenGL ES versions 1.0, 2.0, and 3.0, which versionshould you specify in the Google Play store?a.1.0b.2.0c.3.0d.All versions6.Which tag isnotchecked by the Android operating system?a.The<uses-feature>tagb.The<supports-gl-texture>tagc.The<uses-configuration>tagd.The<compatible-screens>tag7.Which one of the following permissions do Android applications have by default?a.Receive data fromtheInternetb.View network statec.Modify or delete the contents of your USB storaged.None

Page 18

Test Bank for Introduction to Android Application Development Android Essentials, 5th Edition - Page 18 preview image

Loading page ...

Chapter 5: Defining the ManifestMultiple Choice Questions178.Which one of the followingisnotan attribute of the<supports-screens>tag?a.android:resizableb.android:anyDensityc.android:compatibleWidthLimitDpd.android:wideScreen9.Which one of thefollowingisnota point where permissions can be enforced?a.When starting anActivityorServiceb.When accessing data provided by aContentProviderc.During the uninstallation of an applicationd.When sending or receiving broadcasts by anIntent10.What requires at least one<action>tag?a.Specifying required device featuresb.Permissionsc.Specifying which hardware and software input methods theapplication supportsd.Intent filters

Page 19

Test Bank for Introduction to Android Application Development Android Essentials, 5th Edition - Page 19 preview image

Loading page ...

Chapter 5: Defining the ManifestAnswers and Explanations18Answers and Explanations1.b.The Android manifest file is a specially formatted XML file that must accompany eachAndroid application. This file contains important information about the application’s identity.2.c.The dot (.) is used as shorthand to specify that a class belongs to the package namespecified in the manifest.3.d.Theandroid:requiredattribute can be set totrueorfalsefor configuring GooglePlay store filtering.4.d.Theandroid:fullBackupContentwas introduced as an auto backup feature inAndroid Marshmallow and is set in the<application>tag.5.a.You should specify the lowest version (1.0) so that the Google Play store allows moreusers to install your application.6.d.The<compatible-screens>tag is used solely by the Google Play store to restrictinstallation of your application to devices with specific screen sizes. This tag is not checkedby the Android operating system, and usage is discouraged unless you absolutely need torestrictthe installation of your application on certain devices.7.d.Android applications have no permissions by default. Instead, any permissions for sharedresources or privileged access must be explicitly registered within the Android manifest file.8.d.android:widescreenis not a<supports-screens>tag.9.c.You are not able to enforce permissions during the uninstallation of an application.10.d.Intent filters must contain at least one<action>tag but can also contain otherinformation, such as<category>and<data>blocks.

Page 20

Test Bank for Introduction to Android Application Development Android Essentials, 5th Edition - Page 20 preview image

Loading page ...

Chapter 6: Managing Application ResourcesMultiple Choice Questions19Chapter 6: Managing Application ResourcesMultiple Choice Questions1.What is the application name stored as by default?a.A Boolean resourceb.A string resourcec.An integer resourced.A dimension resource2.Whichof the followingisnota drawable resource?a.SizeDrawableb.TransitionDrawablec.LayerDrawabled.ShapeDrawable3.What resource represents a name/value pair?a.An integer resourceb.A menu resourcec.A Boolean resourced.A layout resource4.Whatcontains generic system resources for things such as standard system colors, systemstyles and themes, and standard button text?a.The Android packageb.The default packagec.The standard packaged.The resource package5.What are the two differenttypes of view animations?a.Property animation and tween animationb.Property animation and frame-by-frame animationc.Tween animation and fast animationd.Frame-by-frame animation and tween animation6.Which category of animations allows you to animate an objects properties?a.Tween animationb.Property animationc.View animationsd.Frame-by-frame animation7.Whichof the followingisnota feature of tween animation?a.Translationb.Scalingc.Repetitiond.Rotation

Page 21

Test Bank for Introduction to Android Application Development Android Essentials, 5th Edition - Page 21 preview image

Loading page ...

Chapter 6: Managing Application ResourcesMultiple Choice Questions208.In what directory areall raw resource files included?a.res/raw/resourceb.res/raw.resourcec.res/rawd.resource/raw9.In what resourcedomany different resources come together to form the definition of anAndroid application screen?a.Layout XML resourceb.Menu resourcec.Application resourced.Dimension resource10.With what class file are resources compiled and accessed?a.@Androidb.R.javac.XMLd.Resources.java
Preview Mode

This document has 69 pages. Sign in to access the full document!