Free AND-401 Exam Braindumps (page: 23)

Page 23 of 58

Which of these is the incorrect method for an Application to save local data?

  1. Extend PreferencesActivity and save in an XML file.
  2. Save as a file in the local file system.
  3. Save in the database using SQLite.
  4. Save in the hash table file using the Dictionary class.

Answer(s): D

Explanation:

Incorrect:
B: You can save files directly on the device's internal storage.
C: Android provides full support for SQLite databases. Any databases you create will be accessible by name to any class in the application, but not outside the application. Reference:
http://developer.android.com/guide/topics/data/data-storage.html



Which UI does the following code builds?

<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android=http:// schemas.android.com/apk/res/android
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Name:" />
<EditText
android:id="@+id/editText1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:ems="10" />
</LinearLayout>
<Button android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Post" />
</LinearLayout>

  1. An edit text to the left of a text view and a button beneath it
  2. An edit text to the right of a text view and a button to the right of the text view
  3. An edit text to the right of a text view and a button beneath them
  4. A text view, an edit text beneath it and the button beneath the edit text

Answer(s): C



Consider the following code:
Intent i = new Intent(this, MainActivity.class); i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(i);

What best explains the code above?

  1. The activity being launched is already running in the current task, then instead of launching a new instance of that activity, all of the other activities on top of it will be closed and this Intent will be delivered to the (now on top) old activity as a new Intent.
  2. Any existing task that would be associated with the activity to be cleared before the activity is started.
  3. A new Activity will be launched and it will be on the top of the stack
  4. A new activity will be launched but will be in full-screen mode.

Answer(s): A



Which of the following lines of code is used to pass a value to the next activity?

  1. Intent i = new Intent(this,newActivity); i.addExtra(“test”);
    startActivity(i);
  2. Intent i = new Intent(this,newActivity); i.putValue(“test”);
    startActivity(i);
  3. Intent i = new Intent(this,newActivity); i.putValue(“value1”,“test”);
    startActivity(i);
  4. Intent i = new Intent(this,newActivity); i.putExtra(“value1”,“test”);
    startActivity(i);

Answer(s): D



Page 23 of 58



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

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

EDC commented on October 09, 2024
Passed this exam with a freaking 95% today.
Anonymous
upvote

Divyesh Arya commented on October 09, 2024
Nice questions
UNITED STATES
upvote

Harry commented on October 09, 2024
This platform is the best out of the exam dumps sites. I love it.
UNITED STATES
upvote

Ursela commented on October 09, 2024
Invested in the full version of this exam dump PDF version and it paid off. Passed with 89%.
UNITED STATES
upvote

Rakesh commented on October 08, 2024
The best dump with best price, join this site for proof. 100% guarantee of passing with 90% score
UNITED STATES
upvote

Rakesh commented on October 08, 2024
good The best dump with best price, join this site for proof. 100% guarantee of passing with 90% score
UNITED STATES
upvote

Rakesh commented on October 08, 2024
Good The best dump with best price, join this site for proof. 100% guarantee of passing with 90% score
UNITED STATES
upvote

Rakesh commented on October 08, 2024
Good dumps to practice.
UNITED STATES
upvote

ric commented on October 08, 2024
is it still vaild?
KOREA REPUBLIC OF
upvote

Bboy commented on October 08, 2024
So far so good
FRANCE
upvote

Bboy commented on October 08, 2024
nice questions
FRANCE
upvote

Gaurav commented on October 08, 2024
Good data thank you
Anonymous
upvote

Mike commented on October 08, 2024
Not bad at all
CANADA
upvote

max commented on October 08, 2024
great exam dumps
ROMANIA
upvote

Its truly to pass the exam. commented on October 08, 2024
Its truly to pass the exam.
ROMANIA
upvote

Rajat commented on October 08, 2024
very helpful
INDIA
upvote

Neha commented on October 08, 2024
Brainstorming required
UNITED STATES
upvote

jnr Ndlezane commented on October 08, 2024
elite stuff
Anonymous
upvote

Neha commented on October 08, 2024
It would be great if we have rationale/ explanation to all question
UNITED STATES
upvote

Neha A commented on October 08, 2024
Good Selection of questions
UNITED STATES
upvote

P B commented on October 08, 2024
Are these updated
Anonymous
upvote

Neha commented on October 08, 2024
Great Question
UNITED STATES
upvote

mm commented on October 08, 2024
good clarification on the answer
Anonymous
upvote

mo commented on October 08, 2024
a good practice thanks
Anonymous
upvote

Chalumuri Chandrasekhar commented on October 08, 2024
Preparation
INDIA
upvote

Anonymous commented on October 08, 2024
great source az-104 exam preparation
INDIA
upvote

Saket commented on October 07, 2024
Q 60) Will data cached in a warehouse be lost when the warehouse is resized? I think B is correct answer. Refer - https://docs.snowflake.com/en/user-guide/warehouses-considerations Decreasing the size of a running warehouse removes compute resources from the warehouse. When the computer resources are removed, the cache associated with those resources is dropped, which can impact performance in the same way that suspending the warehouse can impact performance after it is resumed.
Anonymous
upvote

Barbara commented on October 07, 2024
good content!
UNITED STATES
upvote