Mobile Apps Final

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

Using controls such as the GridView and Spinner, what binds specific types of data and displays that data in a particular layout?

adapter

If you charge users for your application, you will receive 70 percent of the application price. Where will the remaining 30 percent be distributed?

among the different phone carriers

Which XML code statement places an icon named ic_city.png to the right of the text in a ListView display?

android:drawableRight="@drawable/ic_city"

Which attribute in XML code can be used to place an image on the surface of a Button control?

android:src

The name of the key found in strings.xml that determines the string displayed as the title of the app is ______________.

app_name

Which variable allows you to store multiple values in one variable at the same time?

array variable

Which is the correct statement to make a button named btnStart visible?

btnStart.setVisibility(View.VISIBLE);

After you change the settings on your Android phone or tablet, you can use a versatile tool called the ____________________ to communicate with a connected Android device.

Android Debug Bridge (ADB)

If the primary purpose of a class is to display a ListView control, which of the following controls is recommended to extend the class from?

ListActivity

Finish the code to assign a music file named guitar located in the raw directory to the mpGuitar MediaPlayer instance : mpGuitar = ______________________________

MediaPlayer.create(this, R.raw.guitar);

Registering at Google Play requires a one-time payment of $25, which registers you as an Android application developer and enrolls you in a which Google account?

Merchant

The code to reference a music file called "balloonPop" in the raw directory is ____________________.

R.raw.balloonPop

________________ can change the displayed size of an image and keeps or changes the aspect ratio of the image within the ImageView control.

Scaling

The code to declare and initialize an array (in one statement) called fruit that holds the strings "Apple", "Mango", and "Pear", in that order, is _____________________________________________.

String[] fruit={"Apple", "Mango", "Pear"};

Which of the following is true about .apk files?

They can be run directly on a device

What invokes a scheduled Timer?

TimerTask

A delay timer is scheduled in milliseconds using the Timer class.

True

A switch statement can also be implemented as a chain of if/else statements.

True

An array is a container object that holds a fixed number of values of different data types.

True

Consumers often buy a phone with more memory to increase the number of songs they can store.

True

It may take up to 48 hours for a new Google Play account to be approved for Android app publication.

True

Switch statements do not allow ranges such as 10-40 to match a case.

True

The Android system uses a digital certificate as a means of identifying the author of an application.

True

The first element in an array is referenced using index 0.

True

The length of an array is one more than the maximum subscript number.

True

When an app is selected on Google Play, it installs directly to your Android device.

True

With what should you upload your app to leverage your app in the Google Play store?

a video link

What statement should you put at the end of a switch statement if you want a block of code to be executed in the event none of the case statement values matches?

default:

In addition to promotional media items, providing an app ____________________ gives a quick overview of the purpose of the app and what it does.

description

What should be tested in Android apps before publication using different built-in emulators in Android Studio?

design and functionality

Typically, the ____________________ method, which is inside the onDestroy method, is called directly before another Activity is launched.

finish

To use a toast message within an onItemClick method, you must replace MainActivity.this with a Context class called _________________.

getBaseContext()

What is the first GridView control in a project named by default?

gridView1

What does the splash screen provide time for Android to do?

initialize resources for your app

What does the application icon not replace, but rather serve to identify and brand your app?

launcher icon

Which of the following is NOT an attribute of a GridView control?

leftMargin

Which type of variable ceases to exist when execution of its declaring method completes?

local

A(n) ____________________ is a series of statements that perform some repeated task.

method

What is the most common file type of media supported for audio playback on the Android?

mp3

Which of the following statements creates a new instance of MediaPlayer and assigns it to mpTrombone?

mpTrombone = new MediaPlayer();

The code to access the fifth element of an array called names is ____________________.

names[4]

The code to create a timer named splashtime is Timer splashtime = __________________________.

new Timer();

Which method provides a number of arguments to its registered listeners?

onItemClick method

Which method is called when an item in a list is selected?

onListItemClick

Which of the following methods hides an Activity?

onStop

The code to resize an image variable pic to 275x200 is ____________________.

pic.setLayoutParams(new GridView.LayoutParams(275,200));

Which argument of the onItemClick method holds the value of the array element in the View adapter?

position

When storing audio and video files in an application's resources for playing, the correct folder to use is ____________________.

raw

Google Play requires a minimum of two ____________________ of an app to display on the details page of your application.

screenshots

The ____________________ method provides the data model for the GridView layout.

setAdapter

The method to set an image to an ImageView control is ____________________.

setImageResource()

Which statement allows you to evaluate a value and execute a block of statements based on an integer or single character input?

switch statement

Why might a music player fail to play a given file?

the file format is unsupported

If a Java View list exceeds the length of the screen, what is done to the list?

the list is made scrollable

A(n) ____________________ is a single sequential flow of control within a program.

thread

Which feature in Java executes a one-time task?

timer

To register for a Google Play account, which of the following is required?

Google Account

Which browser is not supported in Android?

Internet Explorer

The file extension used for application package files is ____________________.

.apk

Which of the following is a file format created by Google?

.apk

The size of the application icon should be __________________ x 512 pixels stored in a PNG file.

512

Which intent action opens a Web browser on the Android?

ACTION_VIEW

A URL is a URI with additional information necessary for gaining access to the resources required for posting the page.

False

A grid of images is not very useful for selecting wallpaper because of the large number of options.

False

Android music apps are not capable of playing music from a memory card.

False

Google Play is not part of the default setup on new Android devices.

False

It is not necessary to use the break keyword to end a case statement; it is automatically terminated by the next case keyword.

False

The GridView control, while very useful for displaying images, cannot be customized.

False

To meet the goal of providing a clean, professional effect with images in an application, Android provides a layout tool called ScrollView.

False


Ensembles d'études connexes

Organizational Behavior Chapter 7 Quiz 3

View Set

Cell Bio Exam 2- Smartwork 5 with Explanations

View Set

Chapter 6 Socioemotional Development

View Set

LA History: Chapter 11 Study Guide

View Set

Absolutism and Constiutionalism in Western Europe

View Set

Final Exam - Environment and People

View Set