Monday, 31 March 2014

Android MCQ

Q. What is Android_dx ?
A. A tool to generate Android byte code from .class files.

Q. What is allocation tracker ?
A. a tool to avoid frequent garbage collections

Note that it is not a tool to track memory allocation
learn about allocation tracker refer slideshow and http://developer.android.com/tools/debugging/ddms.html

refers to following links for memory management google i/o 2011

Q. An empty process does not have ?
A. A process that doesn't hold any active application components. Refer this

Q. Free Type library is for rendering ?
A. bitmap and vector fonts.

Note: It is written in C, designed to be small, efficient, highly customizable, and portable while capable of producing high-quality output (glyph images) of most vector and bitmap font formats.

Q. What are application widgets ?
A. small applications which can be put into other applications.

Q.  the configure attribute specifies the _______ to start when the user adds the app widget ?
A. Activity.

Q. What does android.telephony provide ?
A. Provides APIs for monitoring the basic phone information, such as the network type and connection state, plus utilities for manipulating phone number strings. 

Q. What does java.math provides ?
A. Provides classes for performing arbitrary-precision integer arithmetic (BigInteger) and arbitrary-precision decimal arithmetic (BigDecimal)

Q. Which attributes is set to clear the stack after user leaves a task ?
A. clearTaskOnLaunch
If this attribute is set to "true" in the root activity of a task, the stack is cleared down to the root activity whenever the user leaves the task and returns to it.

Other flags are :
finishOnTaskLaunch: When it's set to "true", the activity remains part of the task only for the current session. If the user leaves and then returns to the task, it is no longer present. But it operates on single activity not an entire task. It can also cause any activity to go away, including the root activity.

alwaysRetainTaskState: If this attribute is set to "true" in the root activity of a task, the default behavior just described does not happen. The task retains all activities in its stack even after a long period.


 


No comments:

Post a Comment