Weekend Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: xmas50

Android AND-402 - Android Security Essentials

Page: 3 / 4
Total 107 questions

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

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.

Which of the following is the only Android application component which interacts with user?

A.

Activity

B.

Service

C.

Content Provider

D.

broadcast Receivers

Which of the following is NOT true about package attribute of manifest tag?

A.

It may contain lowercase letters, numbers and underscores but not uppercase letters.

B.

It serves as unique identifier for the application.

C.

It is default name for the application process.

D.

Once the app is published then the package name should not be changed.

Signature permission is also known as: (Choose two)

A.

System Permissions or Level three permission.

B.

Special situation permissions.

C.

All are correct.

D.

None are correct.

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

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

What does the following line of code do?

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

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.

Which of the following must be overridden while using SQLiteOpenHelper class? (Choose two)

A.

onCreate()

B.

onUpgrade()

C.

onOpen()

D.

onDestroy()

Which of the following is true when the system is running low on memory?

A.

Files in the cache memory of application are deleted.

B.

Files that the application made on external memory are deleted.

C.

No file gets deleted from the device.

D.

Application data saved in SQLite database.

Which one of the following is NOT true about “taskAffinity”?

A.

It can be placed inside manifest tag.

B.

It can be placed inside application tag.

C.

It can be placed inside activity tag

D.

The name of the default affinity for an application is the package name set by manifest tag

Which of the following is NOT true about sharedUserId attribute?

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.