Free AND-401 Exam Braindumps (page: 28)

Page 28 of 58

Which of the following statements is NOT correct about Android fragments?

  1. Multiple fragments can be combined in a single activity.
  2. The life-cycle of a fragment is totally independent of the activity hosting it.
  3. Fragments have their own life-cycle.
  4. You can add/remove fragments to and an activity dynamically, i.e. while the activity is running.

Answer(s): B

Explanation:

Fragment life cycle is closely related to the life cycle of its host activity which means when the activity is paused; all the fragments available in the activity will also be stopped.
Incorrect:
D: You can add or remove fragments in an activity while the activity is running.


Reference:

http://www.tutorialspoint.com/android/android_fragments.htm



Which of the following are benefits for using fragments in your application? (Choose two)

  1. Simplify the reusability of UI components.
  2. Build different layouts for different device configurations.
  3. Add an action bar to your application.
  4. Dynamically add and remove UI components to an activity.

Answer(s): B,D

Explanation:

B: Following is a typical example of how two UI modules defined by fragments can be combined into one activity for a tablet design, but separated for a handset design.
D: You can combine multiple fragments in a single activity to build a multi-plane UI.


Reference:

http://www.tutorialspoint.com/android/android_fragments.htm https://developer.android.com/guide/components/fragments.html



Which of the following you cannot achieve by creating your own View sub-classes?

  1. Create a completely new customized View type.
  2. Combine a group of View components into a new single component.
  3. Specify when to destroy an activity and all its views.
  4. Override the way that an existing component is displayed on the screen.

Answer(s): A

Explanation:

Incorrect:
B: A view can be comprised of multiple other views (otherwise known as a composite view). Such views are subclassed from the Android ViewGroup class (android.view.ViewGroup) which is itself a subclass of View.


Reference:

http://developer.android.com/training/custom-views/create-view.html



Which of the following is NOT true about method getWindow() of class Dialog?

  1. It retrieves the current window for the activity.
  2. It can be used to access parts of the Window API.
  3. It displays the dialog on the screen.
  4. It returns null if the activity is not visible.

Answer(s): C

Explanation:

Incorrect:
A: getWindow() retrieves the current window for the activity.
B: getWindow() can be used to directly access parts of the Window API that are not available through Activity/ Screen.
D: getWindow() returns the current window, or null if the activity is not visual.


Reference:

http://developer.android.com/reference/android/app/Dialog.html#getWindow()



Page 28 of 58



Post your Comments and Discuss Android AND-401 exam with other Community members:

Mooni commented on December 26, 2024
It's really good
SAUDI ARABIA
upvote

Phoebe commented on December 26, 2024
Good questions
FRANCE
upvote

rz commented on December 26, 2024
It's very helpful for exam
TAIWAN PROVINCE OF CHINA
upvote

Nitesh Kumar Singh commented on December 26, 2024
Nice to attend
Anonymous
upvote

Pankaj Kumar commented on December 26, 2024
Its good to have all the relevant questions here.. Thanks for help!
UNITED STATES
upvote

ian commented on December 26, 2024
yes, is this still valid?
UNITED STATES
upvote

Onkar commented on December 26, 2024
Questions looks promising.
Anonymous
upvote

JcD commented on December 25, 2024
Great learning
Anonymous
upvote

Sam commented on December 25, 2024
Are these real questions? They seem too easy to be true
UNITED STATES
upvote

Netra commented on December 25, 2024
Very useful
UNITED STATES
upvote

Prg commented on December 25, 2024
good set of questions
Anonymous
upvote

n commented on December 25, 2024
Question are
Anonymous
upvote

Ni commented on December 25, 2024
useful questions
Anonymous
upvote

ry commented on December 24, 2024
very helpful
Anonymous
upvote

Jatin Gohil commented on December 24, 2024
Good contents. The exams questions are real
Anonymous
upvote

Anonymous commented on December 24, 2024
very useful
CHILE
upvote

Mohamedk commented on December 24, 2024
It's very nice
Anonymous
upvote

Amer commented on December 24, 2024
Thanks alot
EGYPT
upvote

shankar commented on December 24, 2024
good set of questions
CHINA
upvote

VARSHA commented on December 24, 2024
GOOD QUSTIOENS.. LIKED IT
Anonymous
upvote

Robin commented on December 24, 2024
nice course
Anonymous
upvote

Rama laksmana commented on December 23, 2024
Good question
UNITED STATES
upvote

Chandru commented on December 23, 2024
Nice questions
UNITED STATES
upvote

Amr commented on December 23, 2024
Good tutorial
Anonymous
upvote

hari commented on December 23, 2024
Preparing for exam
INDIA
upvote

Ichigo Kurosaki commented on December 23, 2024
Can I pass the exam, if I have done suppose 150 questions from here?
MALAYSIA
upvote

Emma commented on December 23, 2024
Really helpful for preparing the exam
FRANCE
upvote

Siva commented on December 23, 2024
Good ones with the quick start
INDIA
upvote

sj commented on December 22, 2024
good set of questions
Anonymous
upvote

sj commented on December 22, 2024
Questions that are typically not covered as part of the aws learning course videos
Anonymous
upvote

sowmya commented on December 22, 2024
helpfull to prepare for the exam
Anonymous
upvote

Leandro commented on December 22, 2024
very usefull
BRAZIL
upvote

vishal solanke commented on December 22, 2024
Please try to post explanations
Anonymous
upvote

Suchi Poddar commented on December 22, 2024
Good set and nice to see that so much help for the students. Thankyou so much.
Anonymous
upvote