Mid_Term_Prep Flashcards

card to prepare for mid term exam

1
Q

Which of the following is a key technlogy for implementing Android apps?

All of the answers are correct
Java
Android SDK (Software Development Kit)
Android Studio IDE (Integrated Development Environment

A

All of the answers are correct

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

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

open source

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

With web services, you can create ________, which enable you to rapidly develop apps by quickly combining complementary web services, often from different organizations and possibly other forms of information feeds.

A

mashups

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

________ is now Google’s preferred Android IDE. It’s based on the JetBrains IntelliJ IDEA Java IDE.

A

android studio

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

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.

A

Android Virtual Device (AVD)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

A class houses the ________ that perform the class’s tasks.

A

methods

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

________ are views that contain and arrange other views

A

Layouts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

The ________ folder contains the files you’ll edit to create your apps’ GUIs and logic

A

app

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Android apps have four types of executable components—activities, services, content providers and _________.

A

broadcast receivers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Throughout its life, an Activity can be in one of several states—active (i.e., running), _________ or stopped.

A

paused

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

To respond to events when the user changes the text in an EditText, you’ll use an anonymous inner class to implement the _________ interface (from package android-.text).

A

TextWatcher

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

When you set a view’s _________ property, Android automatically casts a shadow for that view.

A

elevation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

T or F

A GridLayout row’s height is determined by the row’s tallest view–similarly, a column’s width is defined by the column’s widest view.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

The default layout for an Empty Activity is a _________.

A

RelativeLayout

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Each app has a theme that defines the default look-and-feel of the standard views you use. The theme is specified in the app’s AndroidManifest.xml file. You can customize aspects of an app’s theme, such those that define an app’s color scheme, by defining style resources in the _________ file located in the app’s res/values folder.

A

styles.xml

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Java requires that you override every method in an _________ that you implement.

A

interface

17
Q

The default layout for an Empty Activity is a _________.

A

relative layout

18
Q

For apps you submit to the Google Play store, the _________ is used as the app’s unique identifier.

A

package name

19
Q

Fragments can be hosted by an Activity or they can execute independently.

True or False

A

False

20
Q

Resource folder names that begin with anim contain XML files that define ________, which can change an object’s transparency, size, position and rotation over time.

A

tweened

21
Q

An object of class ________ contains public instance variable orientation containing either ORIENTATION_PORTRAIT or ORIENTATION_LANDSCAPE for the device’s current orientation.

A

Configuration

22
Q

Android uses a technique known as ________ to communicate information between activities within one app or activities in separate apps.

A

intent message

23
Q

An Activity is launched by using a(n) ________ that indicates an action to be performed and the data on which to perform that action.

A

Intent

24
Q

Each app based on the Blank Activity template includes a FloatingActionButton (which typically emphasizes an important action that the user can perform by touching the button) and other material design features.

True or False

A

True

25
Q

The default activity_main.xml layout embeds (via an element in the XML) the GUI defined in content_main.xml.

True or False

A

True

26
Q

The default activity_main.xml layout also contains a FloatingActionButton—a round image button from the Android Design Support Library that has a higher ele-vation than the GUI’s other components, so it “floats” over the GUI.

True or False

A

True

27
Q

When you choose the Blank Activity template’s Fragment option, this file contains only a ________ element that displays the MainActivityFragment’s GUI defined in fragment_main.xml.

A
28
Q

By convention array resources are normally defined in arrays.xml, colors in colors.xml, Strings in strings.xml and numeric values in ________.

A

values.xml

29
Q

By default, the IDE set the layout’s Padding Left and Padding Right properties to a predefined dimension resource named @dimen/activity_horizontal_margin—located in the ________ file of the project’s res/values folder.

A

dimens.xml

30
Q

Method getConfiguration returns a Configuration object (package android.content.res) containing public instance variable ________, which specifies the device’s screen-size category.

A

screenLayout