Labour Day Special - Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: top65certs

Android Android certified application developer AND-402 New Questions

Page: 3 / 4
Total 107 questions

Android Security Essentials Questions and Answers

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

Page: 3 / 4
Total 107 questions