Free AND-401 Exam Braindumps (page: 26)

Page 26 of 58

Which of the following is NOT true about SQLiteOpenHelper class? (Choose two)

  1. It has two abstract methods: onCreate() and onUpgrade().
  2. It is used to perform database querying.
  3. It manages database creation and updates.
  4. It manages database versions using ContentProvider.

Answer(s): B,C

Explanation:

Incorrect:
A: onCreate() and onUpgrade() are the only two abstract methods of this class.
D: SQLiteOpenHelper handles database creation and version management.
This class makes it easy for ContentProvider implementations to defer opening and upgrading the database until first use, to avoid blocking application startup with long-running database upgrades.


Reference:

http://developer.android.com/reference/android/database/sqlite/SQLiteOpenHelper.html



Which of the following is a rule that developers must always follow when writing multi-threaded Android applications? (Choose two)

  1. A worker thread must not be created from inside the UI thread.
  2. Each UI thread must not create more than one worker thread.
  3. The UI thread must never be blocked.
  4. The Android UI must not be accessed from outside the UI thread.

Answer(s): C,D

Explanation:

C: If everything is happening in the UI thread, performing long operations such as network access or database queries will block the whole UI. When the thread is blocked, no events can be dispatched, including drawing events. From the user's perspective, the application appears to hang. Even worse, if the UI thread is blocked for more than a few seconds (about 5 seconds currently) the user is presented with the infamous "application not responding" (ANR) dialog.
D: The Andoid UI toolkit is not thread-safe. So, you must not manipulate your UI from a worker thread—you must do all manipulation to your user interface from the UI thread.


Reference:

http://developer.android.com/guide/components/processes-and-threads.html



Which of the following are layout-related methods called by the framework on views, and you can override them when customizing a view? (Choose two)

  1. onMeasure().
  2. onDraw().
  3. onKeyUp().
  4. onSizeChanged().

Answer(s): A,D


Reference:

http://developer.android.com/reference/android/view/View.html



Which of the following is true about this code snippet? (Choose two)

Intent intent = new Intent(Intent.ACTION_DIAL,Uri.parse(“tel:555-1234”)); startActivity(intent);

  1. This is an explicit intent that start the system’s dialer.
  2. The system will not dial the number without adding permission CALL_PHONE.
  3. The system will perform an intent resolution to start the proper activity.
  4. The code will not compile.

Answer(s): B,C



Page 26 of 58



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

Essam Zahra commented on October 13, 2024
Thank you, it is very useful
EGYPT
upvote

Dennis Rono commented on October 13, 2024
The questions in here are fantastic, it would be nice to have some explanation on the choices of the right answer.
Anonymous
upvote

Dennis Rono commented on October 13, 2024
Awesome practice question
Anonymous
upvote

ileana commented on October 12, 2024
I can not access in this moc, is it available in other url?
Anonymous
upvote

edward commented on October 12, 2024
Passed with flying colors. Amazing material... came word by word.
Anonymous
upvote

Calisto MF Moniz commented on October 12, 2024
No comment for this form for the time being.
Anonymous
upvote

Calisto MF Moniz commented on October 12, 2024
Good mechanism for Security expertise practices!
Anonymous
upvote

Meraj commented on October 12, 2024
The exam is super duper hard. You use these exam dumps to only pass. If you don't have the questions it is not easy to pass.
INDIA
upvote

Lucas commented on October 12, 2024
Its so good.
Anonymous
upvote

Iwada commented on October 12, 2024
The answers and questions are valid. I believe this site trusted and anyone preparing for this exam needs to go the this materials.
Anonymous
upvote

Ramesh commented on October 12, 2024
All are very Good Questios
Anonymous
upvote

Sandy commented on October 12, 2024
I found this exam dumps questions and answers very helpful despite some questions do not have the complete answers. Overall it helped me pass.
Anonymous
upvote

P commented on October 11, 2024
So glad to have found this site
CANADA
upvote

Michal commented on October 11, 2024
I hope it will worth it
POLAND
upvote

Bannor commented on October 11, 2024
This exam is valid and legit. I purchased the full version last week and managed to pass. There are 2 or 3 wrong answers which I reported to the admin and they fixed it right away.
CANADA
upvote

Marko commented on October 11, 2024
Been using this website for a while now. I am a big fun as it has helped me pass 3 exams so far. I hope they can keep the site live.
EUROPEAN UNION
upvote

Ngoni commented on October 11, 2024
Great resource
ZIMBABWE
upvote

jeffrey commented on October 11, 2024
this is great
Anonymous
upvote

Soniksha commented on October 10, 2024
I purchased the full version of this exam and it turned out quire accurate. I passed with the help of this exam.
UNITED STATES
upvote

Sadiq commented on October 10, 2024
Test questions
Anonymous
upvote

Viktor commented on October 10, 2024
Respect to the owners and operators of this site for providing this free exam site.
CANADA
upvote

Deep commented on October 10, 2024
Good questions
INDIA
upvote

Goben commented on October 10, 2024
Passed in one shot.
GERMANY
upvote

Neo commented on October 10, 2024
Gets easier as you go along
SOUTH AFRICA
upvote

Neo commented on October 10, 2024
Need more practice
SOUTH AFRICA
upvote

Violet commented on October 10, 2024
Need more practice
SOUTH AFRICA
upvote

Neo commented on October 10, 2024
Challenging
SOUTH AFRICA
upvote

Kopano commented on October 10, 2024
Prep going well
SOUTH AFRICA
upvote

Harika Mudumby commented on October 10, 2024
great content
Anonymous
upvote

Neo commented on October 10, 2024
Happy with the material
SOUTH AFRICA
upvote

Emily commented on October 09, 2024
A bit challe
SOUTH AFRICA
upvote

a commented on October 09, 2024
SIMPLE QUESTIONS
Anonymous
upvote

Emily commented on October 09, 2024
grt resource
SOUTH AFRICA
upvote

robin commented on October 09, 2024
Im' done with clear in my mind
Anonymous
upvote