Exam 7: Google Analytics Individual Qualification

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Working with Custom View. Once you define the custom attributes, you can use them in layout XML files just like built-in attributes. The only difference is that your custom attributes belong to a different namespace. Instead of belonging to the http://schemas.android.com/apk/res/android namespace, they belong to:

Free
(Multiple Choice)
4.9/5
(36)
Correct Answer:
Verified

A

What is the placeholder tag <xliff:g> used for?

Free
(Multiple Choice)
4.8/5
(33)
Correct Answer:
Verified

A

Building your app from the command line, if you have a "demo" product flavor, then you can build the debug version with the command:

Free
(Multiple Choice)
4.8/5
(32)
Correct Answer:
Verified

C

The Log class allows you to create log messages that appear in logcat. Generally, you could use the following log methods: (Choose five.)

(Multiple Choice)
4.7/5
(35)

To build a debug APK, you can open a command line and navigate to the root of your project directory. To initiate a debug build, invoke the assembleDebug task: gradlew assembleDebug This creates an APK named [module_name]-debug.apk in [project_name]/[module_name]/build/outputs/apk/ Select correct statements about generated file. (Choose all that apply.)

(Multiple Choice)
4.7/5
(31)

Interface for a callback to be invoked when a shared preference is changed. Interface is named:

(Multiple Choice)
4.8/5
(32)

When using an ImageView, ImageButton, CheckBox, or other View that conveys information graphically. What attribute to use to provide a content label for that View?

(Multiple Choice)
4.8/5
(38)

For example, we have a BufferedReader reader, associated with the json file through InputStreamReader . To get a file data we can do this:

(Multiple Choice)
4.9/5
(45)

With a room database. When performing queries, you'll often want your app's UI to update automatically when the data changes. Can you use a return value of type LiveData in your query method description to achieve this?

(Multiple Choice)
4.8/5
(31)

When scheduling unique work, you must tell WorkManager what action to take when there is a conflict. You do this by passing an enum when enquing the work. For one-time work, you provide an ExistingWorkPolicy , which supports some options for handling the conflict. (Choose four.)

(Multiple Choice)
4.7/5
(33)

In Android 8.0, API level 26, some APIs regarding notification behaviors were moved from Notification to NotificationChannel. For example, what should we use instead of NotificationCompat.Builder.setPriority() for Android 8.0 and higher?

(Multiple Choice)
4.9/5
(33)

Select 3 major components of the Room. (Choose three.)

(Multiple Choice)
4.9/5
(38)

In our TeaViewModel class, that extends ViewModel , we have such prorerty: val tea: LiveData<Tea> An observer in our Activity (type of mViewModel variable in example is ) is set in this way: mViewModel!!. tea .observe(this, Observer { tea: Tea? -> displayTea(tea) } ) What will be a correct displayTea method definition?

(Multiple Choice)
4.9/5
(29)

What happens when you create a DAO method and annotate it with @Insert? Example: @Dao interface MyDao {      @Insert(onConflict = OnConflictStrategy.REPLACE)      Fun insertUsers(vararg users: User) }

(Multiple Choice)
4.8/5
(31)

Android uses adapters (from the Adapter class) to connect data with View items in a list. There are many different kinds of adapters available, and you can also write custom adapters. To connect data with View items, the adapter needs to know about the View items. From what is extended the entity that is usually used in an adapter and describes a View item and its position within the RecyclerView?

(Multiple Choice)
4.8/5
(35)

Custom views and directional controller clicks. On most devices, clicking a view using a directional controller sends (to the view currently in focus) a KeyEvent with:

(Multiple Choice)
4.9/5
(35)

If you are working with a Builder that creates a PeriodicWorkRequest to run periodically once within the flex period of every interval period. What statement is correct?

(Multiple Choice)
4.9/5
(33)

Assume that an app includes a default set of graphics and two other sets of graphics, each optimized for a different device setup: res/drawable/ Contains default graphics. res/drawable-small-land-stylus/ Contains graphics optimized for use with a device that expects input from a stylus and has a QVGA low-density screen in landscape orientation. res/drawable-ja/ Contains graphics optimized for use with Japanese. What happens if the app runs on a device that is configured to use Japanese and, at the same time, the device happens to be one that expects input from a stylus and has a QVGA low-density screen in landscape orientation?

(Multiple Choice)
4.8/5
(37)

What do you want from Room when you create a DAO method and annotate it with @Update? Example: @Dao Interface MyDao { @Update Fun updateUsers(vararg users: User) }

(Multiple Choice)
4.8/5
(36)

If you added to your build.gradle file a room.schemaLocation : android {      defaultConfig {        javaCompileOptions {            annotationProcessorOptions {                arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]            }        }    } } Then, you build your app or module. As a result you got a json file, with such path to it: app/schemas/your_app_package/db_package/DbClass/DB_VERSION.json What are the correct statements about this file? (Choose all that apply.)

(Multiple Choice)
4.8/5
(37)
Showing 1 - 20 of 78
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)