Skip to main content

Android How to Program Paul J Deitel Test Bank

Page 1

Type:

Test Bank

Resource:

Android How to Program

Edition:

1st Edition

Author(s):

Paul J. Deitel Harvey Deitel


Chapter 1—Introduction to Android: Test-Item File

1

Chapter 1—Introduction to Android: Test-Item File Instructor Note There are three categories of questions in this Test-Item File. The questions marked “(Self Review)” are provided with answers in the chapter’s Self-Review Exercises section. The questions marked “(Exercise)” are provided without answers in the chapter’s Exercises section. The remaining unmarked questions are provided only in this Test-Item File—the vast majority of these are questions that the students have not seen. We’ve included the self-review and exercise short-answer questions here so that you can use them to make up quizzes and exams, if you so choose.

1.2 Android Overview 1.1 The Android operating system was developed by Google in July 2005. ANS: Android, Inc.

, which was acquired by

1.2 (Self Review) In November 2007, the —a 34-company consortium initially and many more now—was formed to develop Android, driving innovation in mobile technology and improving the user experience while reducing costs. ANS: Open Handset Alliance.

Openness and Open Source 1.3 (Self Review) (True/False) One benefit of developing Android apps is that the operating system is proprietary to Google. ANS: False. The operating system is open source and free.

Java 1.4 (Exercise) Android apps are developed with —the world’s most widely used programming language, a logical choice because it’s powerful, free and open source. ANS: Java. 1.5 (Self Review) (True/False) The openness of the Android platform discourages innovation. ANS: False. The openness of the platform spurs rapid innovation. 1.6 (True/False) Java is object oriented and has access to powerful class libraries that help you develop apps quickly. ANS: True. 1.7 (Exercise) GUI programming in Java is -driven, you’ll write apps that respond to various user interactions such as screen touches and keystrokes. ANS: event.


2

Chapter 1

1.8 (Self Review) Using Eclipse with the Plugin, you can create, run, test and debug Android apps quickly and conveniently, and you can visually design your user interfaces. ANS: Android Development Tools (ADT).

Multitouch Screen 1.9 with

(Self Review) Multitouch screens allow you to control your Android device involving one touch or multiple simultaneous touches. ANS: gestures.

1.10 a

(Exercise) Touching the screen and holding your finger in position is called . ANS: long press.

1.11 (Exercise) Touching and quickly flicking your finger across the screen in the direction you’d like to move is called a . ANS: fling. 1.12 (True/False) Using two fingers, you can zoom in (moving your fingers apart) and out (pinching your fingers together) on photos, videos and web pages. ANS: True.

1.3 Android 2.2 (Froyo) 1.13 If you’re unable to find your Android device, the feature restores it to the factory settings (removing all personal data), thus protecting the privacy of your information—any data that you haven’t backed up will be lost. ANS: Remote Wipe.

New Developer Features in Android 2.2 1.14 The Android (C2DM) service allows app developers to send data from their servers to their apps installed on Android devices, even when the apps are not currently running. The server notifies the apps to contact the server directly to receive updated app or user data. ANS: Cloud to Device Messaging. 1.15 (Self Review) You can create , which enable you to rapidly develop apps by combining the complementary web services of several organizations, possibly with information feeds of various types (such as RSS, Atom, XML, JSON and others). ANS: mashups. 1.16 (Self Review) The Andriod contains APIs for audio focus, auto-scanning files to the media database (e.g., audio and video files), detecting sound loading completion, auto-pause and auto-resume of audio playback, and more. ANS: Media framework.


Chapter 1—Introduction to Android: Test-Item File

3

1.4 Android 2.3 (Gingerbread) 1.17 is a short-range wireless connectivity standard that enables communication between two devices, or a device and a tag, within a few centimeters. ANS: Near-field communication 1.18

(True/False) Android apps can access only front-facing cameras. ANS: False. Android apps can access both rear-facing and front-facing cameras.

1.5 Android 3.0 (Honeycomb) 1.19 app.

(Exercise) Use the

framework to add drag-and-drop capabilities in an

ANS: DragEvent.

1.20 (True/False) The Renderscript 3D graphics- engine creates high-performance 3D graphics for apps, widgets, etc. and offloading calculations to the Graphics Processing Unit (GPU). ANS: True.

1.6 Android 4.0 (Ice Cream Sandwich) 1.7 Downloading Apps from the Android Market 1.21 (Exercise) As a marketing strategy, many app developers offer basic versions of their apps for free so users can determine whether they like them, then purchase more feature-rich versions.This is called the “ ” strategy. ANS: lite.

1.8 Packages 1.22 (Self Review) Android uses a collection of related, predefined classes. ANS: packages. 1.23

(Self Review) The package ANS: android.provider.

, which are named groups of

gives access to Android content providers.

1.9 Android Software Development Kit (SDK) Eclipse Integrated Development Environment (IDE) 1.24 (Exercise) (True/False) Microsoft Visual Studio is the recommended integrated development environment for Android development, though developers may also use a text editor and command-line tools to create Android apps.


4

Chapter 1 ANS: False. Eclipse is the recommended integrated development environment for An-

droid development, though developers may also use a text editor and command-line tools to create Android apps. 1.25 (True/False) Eclipse supports many programming languages, including Java, C++, C, Python, Perl, Ruby on Rails and more. ANS: True. 1.26

(Exercise) (True/False) The vast majority of Android development is done in C++. ANS: False. The vast majority of Android development is done in Java.

Android Development Tools (ADT) Plugin for Eclipse 1.27 (Self Review) (True/False) The Android Development Tools (ADT) Plugin for Eclipse—an extension to the Eclipse IDE—allows you to create, run and debug Android apps, export them for distribution (e.g., upload them to Android Market), and more. ANS: True.

The Android Emulator 1.28 (Self Review) The , included in the Android SDK, allows you to run Android apps in a simulated environment within Windows, Mac OS X or Linux. ANS: Android emulator. 1.29 (Exercise) Before running an app in the emulator, you'll need to create an , which defines the characteristics of the device on which you want to test, including the hardware, system image, screen size, data storage and more. ANS: Android Virtual Device. 1.30 (Exercise) (True/False) You can reproduce on the emulator most of the Android gestures and controls using your computer’s keyboard and mouse. ANS: True. 1.31

1.10

To test GPS apps in the emulator, you’ll need to create files that ANS: simulate GPS readings.

.

Object Technology: A Quick Refresher

1.32 (Exercise) (True/False) Objects, or more precisely the classes objects come from, are essentially reusable software components. ANS: True. 1.33 (Self Review) Almost any noun can be reasonably represented as a software object in terms of (e.g., name, color and size) and behaviors (e.g., calculating, moving and communicating). ANS: attributes. 1.34 (True/False) Software developers are discovering that using a modular, structured programming approach can make software development groups much more productive than was possible with earlier popular techniques like object-oriented programming. ANS: False. Software developers are discovering that using a modular, object-oriented programming design and implementation approach can make software development groups much more productive than was possible with earlier popular


Turn static files into dynamic content formats.

Create a flipbook
Android How to Program Paul J Deitel Test Bank by TBtutors - Issuu