Labour Day Special Limited Time Flat 70% Discount offer - Ends in 0d 00h 00m 00s - Coupon code: 70spcl

Android AND-402 Android Security Essentials Exam Practice Test

Page: 1 / 11
Total 107 questions

Android Security Essentials Questions and Answers

Question 1

Which of the following is not true about SQLite database?

Options:

A.

The database files are sandboxed with the application.

B.

The application can make database files on external memory.

C.

It is small and requires no setup.

D.

All are correct

Question 2

Which of the following is a database tool included in Android SDK?

Options:

A.

sqlite3.

B.

sqlite.

C.

adb.

D.

All are correct.

Question 3

Which of the following is correct about saving files in cache?

Options:

A.

Cache file can only be created in internal memory

B.

By using getCacheDir()method

C.

By using getExternalStorageDirectory()method

D.

Both options "By using getCacheDir()method" and "By using getExternalStorageDirectory()method" are correct.

Question 4

Which of the following is correct about Content providers in Android?

Options:

A.

They are used to share data between devices

B.

They are used to share data between applications

C.

They are used to share data between applications signed with same certificate

D.

Data read by content providers are deleted when application closes.

Question 5

Which of the following is true about calling method getWritbleDatabase()?

Options:

A.

SQLiteOpenHelper.onCreate() is only called when database is created for the first time.

B.

SQLiteOpenHelper.onCreate() is always called.

C.

SQLiteOpenHelper.onCreate() is always called when user starts the application.

D.

None are correct.

Question 6

Which of the following methods can be used to extract licence information from rights object?

Options:

A.

getDrmRightsObject()

B.

getConstraints()

C.

getApplicationContext()

D.

saveRights()

Question 7

Which of the following is NOT the event that is notified by LocationListener when getting the user's location?

Options:

A.

onLocationChanged

B.

onStatusChanged

C.

onProviderChanged

D.

onProviderDisabled

Question 8

Which of the following is protected by component level permissions? (Choose two)

Options:

A.

Application

B.

Components

C.

Application & Components

D.

None are correct

Question 9

What does the following line of code do?

FileOutputStream fOut = openFileOutput("MyFile.txt", MODE_WORLD_READABLE);

Options:

A.

The file MyFile.txt will be created in the /data// files/ directory.

B.

The file MyFile.txt will be created in the /data/data// files/ directory.

C.

None are correct

D.

The file MyFile.txt will be created in the /data/data// directory.

Question 10

For the preference class to collect settings from UI, which of the following is required?

Options:

A.

Preference class should extend Activity class

B.

Preference class should extend PreferenceActivity

C.

Preference class should extend SharedPreferenceActivity

D.

Preference class should extend View class

Question 11

Which of the following permissions is most dangerous and can cause severe damage to Device?

Options:

A.

BRICK

B.

REBOOT

C.

SHUTDOWN

D.

ACCESS_WIFI_STATE

Question 12

Which of the following is NOT true about “preferExternal” value given to the installLocation attribute of the tag? (Choose two)

Options:

A.

The application is installed on internal memory by default even if external memory is available

B.

The application can be moved either to internal or external memory after installation.

C.

The application cannot be moved to internal memory after installation.

D.

The application is installed on external memory by default if space is available on external memoryotherwise it’s installed on internal memory.

Question 13

Which permission listed below is a normal permission?

Options:

A.

SET_WALLPAPER

B.

READ_CALENDAR

C.

FACTORY_TEST

D.

REBOOT

Question 14

Which of the following is NOT a component of the DRM system?

Options:

A.

Content server

B.

Rights server.

C.

DRM agent.

D.

Switching device.

Question 15

Which of the following is required for accessing a user’s Google account?

Options:

A.

android.permission.GET_ACCOUNTS

B.

android.permission.GET_INTERNET

C.

android.permission.GET_AUTH_TOKEN

D.

None are correct

Question 16

Which of the following is NOT true about sharedUserId attribute?

Options:

A.

It is placed inside manifest tag.

B.

By default Android assigns each application its sharedUserId value.

C.

Applications can share the same user ID.

D.

It is placed in the activity tag that needs to share the data with other application.

Page: 1 / 11
Total 107 questions