New Year Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: save70

Free and Premium Android AND-402 Dumps Questions Answers

Page: 1 / 4
Total 107 questions

Android Security Essentials Questions and Answers

Question 1

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

Options:

A.

getDrmRightsObject()

B.

getConstraints()

C.

getApplicationContext()

D.

saveRights()

Buy Now
Question 2

Which of the following is NOT true about the persistent attribute?

Options:

A.

It indicates whether or not the application should remain running at all times.

B.

It is placed in manifest tag because it is a system property.

C.

It is placed in application tag

D.

It is normally intended for system applications.

Question 3

Broadcast Intents is a mechanism which allows messages to be sent to

Options:

A.

Various Activity

B.

Various services

C.

Various Intents

D.

Various Applications

Question 4

What is the recommended use of BaseColumns._ID in SQLite database?

Options:

A.

It should always be used to maintain unique ID.

B.

It should be used to include unique ID when content provider is being used.

C.

It is deprecated now.

D.

All are correct.

Question 5

What are the permissions which are granted automatically without user’s approval called?

Options:

A.

Signature Permissions

B.

System Permissions

C.

Dangerous Permissions

D.

Normal Permission

Question 6

Which of the following is NOT true about the “killAfterRestore” attribute of the tag?

Options:

A.

Normally, third-party applications will not need to use this attribute.

B.

It means that whether the application should be terminated after its settings have been restored during anapplication restore operation.

C.

The default value is true.

D.

The true value of this attribute means that the application will be terminated once its settings are restoredduring a full-system restore

Question 7

Which of the following is NOT true about “hasCode” attribute of tag?

Options:

A.

Its default value is true.

B.

When the value is false, the system does not try to load any application code when launching components.

C.

There is no such attribute “hasCode” because every application contains some code and settings falsecannot be an option.

D.

It is only possible that an application would not have any code of its own, in case it is using nothing but builtincomponent classes.

Question 8

What is the validity of the data stored through shared preferences?

Options:

A.

Data is deleted when application is closed.

B.

Data is deleted when application is paused by pressing home button.

C.

Data gets deleted when application is uninstalled.

D.

Both "Data is deleted when application is closed" and "Data is deleted when application is paused bypressing home button" are correct.

Question 9

Which of the following in NOT true about setting the attribute installLocation to value “internalOnly”? (Choose

two)

Options:

A.

The default behavior of installation of application is same as that of giving value “internalOnly” to the

installLocation attribute.

B.

The application is installed on the internal device storage only.

C.

If there is no space on the internal memory then the application gets installed on the external storage and

moves back to internal storage as soon as the space is available. This is default behavior.

D.

The application can be moved to external device storage if required.

Question 10

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 11

When are permissions enforced in Activities?

Options:

A.

When they launched by Context.startActivity() or Context.startActivityFor Result().

B.

When method Context.enforcepermission() is called.

C.

When method Context.stopActivity() is called.

D.

When Context.checkPermission() is called.

Question 12

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

Options:

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

Question 13

In which form the data is stored using shared preferences?

Options:

A.

XML file inside the internal memory of application.

B.

Binary form inside the internal memory of application.

C.

A Text file inside internal memory of application.

D.

Encrypted form inside the application’s internal memory.

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

What is the visibility or accessibility level of the preference file created by application?

Options:

A.

By default it is private to the application that created it.

B.

By default it is available for all applications on the same device.

C.

It can be shared with other applications on same device

D.

Both "By default it is private to the application that created it" and "It can be shared with other applicationson same device" are correct.

Question 16

Service is an Android component which runs in the background to perform background task.

Options:

A.

True .

B.

False.

C.

Depends on the situation.

D.

Services is not an Android component.

Page: 1 / 4
Total 107 questions