Android Sheet1 - With Answers
Android Sheet1 - With Answers
Q1. Which of the following is a key technlogy for implementing Android apps?
a. Android Studio IDE (Integrated Development Environment),
b. Java
c. Android SDK (Software Development Kit)
d. All of the above.
Answer: d. All of the above.
Android Features
Q1. One benefit of developing Android apps is the openness of the platform. The
operating system is ________ and free. This allows you to view Android’s source
code and see how its features are implemented.
a. proprietary
b. closed source
c. open source
d. None of the above.
Q2. Unlike Apple’s ________ iOS, which is available only on Apple devices,
Android is available on devices from dozens of original equipment manufacturers
(OEMs) and through numerous telecommunications carriers worldwide.
a. open source
b. proprietary
c. universal access
d. None of the above.
Answer: b. proprietary
a. Android apps are developed with Java—one of the world’s most widely used
programming languages.
b. Java was a logical choice for the Android platform, because it’s powerful, free,
open source and used by millions of developers.
c. Experienced Java programmers can quickly dive into Android development,
using Google’s Android APIs (Application Programming Interfaces) and others
available from third parties.
d. All of the above.
Q4. GUI programming in Java is ________ , you’ll write apps that respond to
various user-initiated events such as screen touches.
a. user driven
b. programmer driven
c. IDE driven
d. event driven.
Q5. In addition to directly programming portions of your apps, you’ll also use the
Android Studio IDE to conveniently ________ predefined objects such as buttons
and textboxes into place on your screen, and label and resize them.
a. drag and drop
b. point and click
c. copy and paste
d. None of the above.
Q6: The multitouch screens allow you to control the device with ________
involving one touch or multiple simultaneous touches.
a. actions.
b. gestures.
c. gesticulations.
d. None of the above.
Answer: b. gestures.
Q7. Which gesture is used to flip item-by-item through a series, such as photos?
a. drag.
b. long press.
c. pinch zoom.
d. swipe.
Answer: d. swipe.
Q8. ________ are software components stored on one computer that can be
accessed by an app (or other software component) on another computer over the
Internet.
a. GUIs
b. Web services.
c. Classes.
d. None of the above.
a. smashups
b. match ups.
c. mashups.
d. None of the above.
Answer: c. mashups.
Q1. In 2007, the ________ was formed to develop, maintain and evolve Android,
driving innovation in mobile technology and improving the user experience while
reducing costs.
a. Open Handset Alliance.
b. Open Phone Alliance.
c. Open Software Foundation.
d. Open Software Alliance.
Q1. ________ allows you to use software and data stored in the “cloud”—i.e.,
accessed on remote computers (or servers) via the Internet and available on
demand—rather than having it stored on your desktop, notebook computer or
mobile device.
a. Desktop computing.
b. Sky computing.
c. Cloud computing.
d. None of the above.
Q1. One of the most significant new features in Android 2.3 was support for
________ —a short-range wireless connectivity standard that enables
communication between two devices within a few centimeters. It can be used for
payments (for example, touching your Android device to a payment device on a
soda machine), exchanging data such as contacts and pictures, pairing devices and
accessories and more.
a. WiFi.
b. Bluetooth.
c. near-field coomunication (NFC).
d. None of the above.
Q1. Which of the following was a new Android 3.0 developer feature:
a. fragments, which describe portions of an app’s user interface and can be
combined into one screen or used across multiple screens.
b. a persistent Action Bar at the top of the screen providing users with options for
interacting with apps.
c. ability to use multicore processor architectures for enhanced performance
d. All of the above.
Ans: d. All of the above.
Android 4.0 through 4.0.4 (Ice Cream Sandwich)
Q1. What key Android Ice Cream Sandwich developer feature is described by the
following? "Using the camera, compatible devices can determine the positioning
of the user’s eyes, nose and mouth. The camera also can track the user’s eye
movement, allowing you to create apps that change perspective, based on where
the user is looking."
a. Social API.
b. Virtual camera operator.
c. Accessibility API.
d. Face detection.
Q1. Which of the following is a set of APIs for incorporating Google functionality
into your apps?
a. Google Android Services
b. Google App Services
c. Google Play Services.
d. None of the above.
Q1. Which Android KitKat feature is described by the following: "The status bar at
the top of the screen and the menu buttons at the bottom can be hidden,
allowing your apps to fill more of the screen. Users can access the status bar by
swiping down from the top of the screen, and the system bar (with the back
button, home button and recent apps button) by swiping up from the bottom."
a. full-screen mode.
b. immersive mode.
c. immersion mode.
d. None of the above.
Android 6 (Marshmallow)
Q1. Which Android Marshmallow feature is described by: "Tap and hold the home
button while inside any app and Google Now inspects what’s on the screen and
presents relevant information in the form of cards. For example, in a text message
discussing a movie, a card containing information about that movie is displayed.
a. Now on Tap.
b. Tap for Card.
c. Tap on Screen.
d. None of the above.
Answer: a. Now on Tap
Q1. At the time Android How to Program, 3/e was written, there were over 1.6
million apps in Google Play, and the number is growing quickly.
a. 160 thousand.
b. 1.6 million.
c. 16 million.
d. 160 million.
Packages
Q1. Android uses a collection of ________, which are named groups of related,
predefined classes. Some of these are Android specific, some are Java specific and
some are Google specific. They allow you to conveniently access Android OS
features and incorporate them into your apps.
a. modules.
b. packages.
c. containers.
d. None of the above.
Answer: b. packages.
Q1. ________ is now Google’s preferred Android IDE. It’s based on the JetBrains
IntelliJ IDEA Java IDE.
a. Eclipse
b. Visual Studio
c. Android Studio.
d. None of the above.
Q2. The ________ , included in the Android SDK, allows you to run Android apps
in a simulated environment within Windows, Mac OS X or Linux, without using an
actual Android device.
a. Android simulator.
b. Android emulator.
c. Android device.
d. None of the above.
a. The Android emulator is particularly useful if you do not have access to Android
devices for testing.
b. Although you can simulate orientation changes (to portrait or landscape mode),
simulating particular accelerometer readings (the accelerometer allows the
device to respond to up/down, left/right and forward/backward acceleration)
requires features that are not built into the emulator.
c. The Android emulator enables you to simulate the full range of Android
gestures.
d. You should certainly test your apps on a variety of Android devices before
uploading them to Google Play.
Answer: c. The Android emulator enables you to simulate the full range of
Android gestures. Actually, the gestures on the emulator are a bit limited, since
your computer probably cannot simulate all the Android hardware features.
Q4. Before running an app in the Android emulator, you’ll need to create a(n)
________, which defines the characteristics of the device on which you want to
test, including the hardware, system image, screen size, data storage and more.
Answer: d. classes.
Answer: a. methods.
Instantiation
Q1. You must build an object of a class before a program can perform the tasks
that the class’s methods define. The process of doing this is called ________.
a. creation.
b. allocation.
c. building.
d. instantiation.
Answer: d. instantiation.
Reuse
b. The overhead of reusing classes instead of building new ones can discourage
reuse.
c. Reuse also helps you build more reliable and effective systems, because existing
classes and components often have gone through extensive testing, debugging
and performance tuning.
d. Just as the notion of interchangeable parts was crucial to the Industrial
Revolution, reusable classes are crucial to the software revolution that has been
spurred by object technology.
Answer: Part b. The overhead of reusing classes can discourage reuse. Actually,
reuse of existing classes when building new classes and programs saves time and
effort.
Encapsulation
Q1. Classes ________ (i.e., wrap) attributes and methods into objects—an
object’s attributes and methods are intimately related.
a. encumber.
b. enclose.
c. encapsulate.
d. envelop.
Answer: c. encapsulate.
Inheritance
Q1. A new class of objects can be created quickly and conveniently by ________—
the new class absorbs the characteristics of an existing one, possibly customizing
them and adding unique characteristics of its own.
a. customization.
b. inheritance.
c. copying.
d. None of the above.
Answer: b. inheritance.
a. prerequisites.
b. preconditions.
c. options.
d. requirements.
Answer: d. requirements.
Answer: c. One problem with developing Android apps is that you’ll need to
purchase a broad range of devices on which to test your apps. Actually, you can
test apps for multiple Android devices by creating Android Virtual Devices (AVDs)
that emulate each unique device.