Free AND-401 Exam Braindumps (page: 19)

Page 19 of 58

Consider the following code:

Intent intent = new Intent();
intent.setAction(Intent.ACTION_VIEW); intent.setData(android.net.Uri.parse("http://www.androidatc.com"));
startActivity(intent);

Which of the following is correct about the code above?

  1. It sends a result to a new Activity in a Bundle.
  2. It will not compile without adding the INTERNET permission the Manifest file.
  3. It starts any activity in the application that has a WebView in its layout.
  4. When it is executed, the system starts an intent resolution process to start the right Activity.

Answer(s): D



Which of the following is not true about <activity> tag in AndroidManifest file?

  1. Declares an activity that implements part of the application's visual user interface
  2. Contained in <application> tag.
  3. Declares a single hardware or software feature that is used by the application.
  4. Has an attribute that specifies the name of the Activity sub-class that implements the activity.

Answer(s): C

Explanation:

Incorrect:
A: An activity is a single, focused thing that the user can do. Almost all activities interact with the user, so the Activity class takes care of creating a window for you in which you can place your UI with setContentView (View).
B, D: Example:
<application . . .>
<activity android:name="com.example.project.FreneticActivity" android:permission="com.example.project.DEBIT_ACCT"
. . . >
. . .
</activity>


Reference:

http://developer.android.com/reference/android/app/Activity.html



Which of these is NOT recommended in the Android Developer's Guide as a method of creating an individual View?

  1. Create by extending the android.view.View class.
  2. Create by extending already existing View classes such as Button or TextView.
  3. Create by copying the source of an already existing View class such as Button or TextView
  4. Create by combining multiple Views.

Answer(s): C

Explanation:

Incorrect:
A, B: All of the view classes defined in the Android framework extend View. Your custom view can also extend View directly, or you can save time by extending one of the existing view subclasses, such as Button.
D: When building complex applications, you'll often want to reuse the same group of views in various places of the application. One way to solve this problem is by creating a view that encapsulates the logic and layout of a group of views so you can reuse them without duplicating code in various places of the project.


Reference:

http://developer.android.com/training/custom-views/create-view.html http://code.tutsplus.com/tutorials/creating-compound-views-on-android--cms-22889



Which of these is the incorrect explanation of the Android SDK and AVD Manager?

  1. They are provided from version 1.6 of the SDK. Up to Version 1.5, there was an AVD Manager but it lacked SDK management functions.
  2. You can create and startup AVD, and on startup you can delete user data up to that point.
  3. The "android" command can be used if "<SDK install folder>/tools" is added to the command path.
  4. The development tools that can be downloaded from Android SDK and AVD Manager are SDK Android platform, NDK-platform, emulator images, and USB drivers for handsets.

Answer(s): D



Page 19 of 58



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

Anonymous commented on December 12, 2024
Very helpful and reference link also has been given.
Anonymous
upvote

Anonymous commented on December 12, 2024
Preparing or certification
Anonymous
upvote

Sai commented on December 12, 2024
Preparing for the exam
AUSTRALIA
upvote

Ankita commented on December 12, 2024
dumps are good and helpful
UNITED STATES
upvote

yajnas commented on December 12, 2024
lot of the questions are from AZ-400 practice test
JAPAN
upvote

yajnas commented on December 12, 2024
very relevant information
JAPAN
upvote

yajnas commented on December 12, 2024
good material
JAPAN
upvote

AEB commented on December 11, 2024
The breadth of knowledge for this exam is large. It doesn't seem possible to learn everything on it for an associate level exam.
UNITED STATES
upvote

rvg commented on December 11, 2024
A great source of preparation for this exam
INDIA
upvote

the coder1 commented on December 11, 2024
It helped alot
UNITED KINGDOM
upvote

N commented on December 11, 2024
This is so good. I will literally ace the test.
Anonymous
upvote

BU WIN SIO commented on December 11, 2024
GOOD VERY HELP FUL
UNITED STATES
upvote

Pss wd commented on December 11, 2024
preparing for exam
Anonymous
upvote

Anonymous commented on December 11, 2024
really good
INDIA
upvote

Anonymous commented on December 10, 2024
Good questions for revision
UNITED STATES
upvote

Milik commented on December 10, 2024
Very resourceful information
Anonymous
upvote

Milik commented on December 10, 2024
Great info Marion to succeed on your test……….
Anonymous
upvote

Ritesh commented on December 10, 2024
Good content
Anonymous
upvote

Mikil commented on December 10, 2024
I will tell others about this study site
Anonymous
upvote

Milik commented on December 10, 2024
Good resource for your studies. I will refer to my frirnds
Anonymous
upvote

Mikil commented on December 10, 2024
I will tell others about this site.
Anonymous
upvote

Mikil commented on December 10, 2024
I will tell others of this site
Anonymous
upvote

Mikil commented on December 10, 2024
Great research for my test
Anonymous
upvote

Mikil commented on December 10, 2024
Great resource. I would tell others
Anonymous
upvote

Mikil commented on December 10, 2024
Great resource
Anonymous
upvote

Michelle commented on December 10, 2024
Great resource
Anonymous
upvote

ArulMani commented on December 10, 2024
It's very useful study for EMT exam
UNITED STATES
upvote

no name commented on December 10, 2024
helpful to recap the course
Anonymous
upvote

none commented on December 10, 2024
very helpful to recall the course
Anonymous
upvote

Sandeep Singh commented on December 10, 2024
All questions are from real exam.
UNITED STATES
upvote

Usman commented on December 10, 2024
It is a great collection but I have noticed that some answers are wrong. For example, it says that correct answer is B but the description of that answer matches with answer A. So it is advisable to read the answer's description as well.
Anonymous
upvote

Anamika commented on December 10, 2024
dumps are good and helpful
UNITED STATES
upvote

santosh k sharma commented on December 10, 2024
A good way to practice
Anonymous
upvote

Faith Egwuenu commented on December 09, 2024
The case studies/questions were very helpful.
Anonymous
upvote