Tuesday, 17 March 2015

Adnroid PDF Real AND-401 Questions and Answers

Question NO. 1
What Activity method you use to retrieve a reference to an Android view by using the id attribute of a resource XML?

A. findViewByReference(int id);
B. findViewById(int id)
C. retrieveResourceById(int id)
D. findViewById(String id)

Answer: B
Explanation:

Question NO. 2
What is a correct statement about an XML layout file?

A. A layout PNG image file
B. A file used to draw the content of an Activity
C. A file that contains all application permission information
D. A file that contains a single activity widget.

Answer: B
Explanation:

Question NO. 3
Which of these is not defined as a process state?

A. Non-visible
B. Visible
C. Foreground
D. Background

Answer: A
Explanation:

Question NO. 4
During an Activity life-cycle, what is the first callback method invoked by the system?

A. onStop()
B. onStart()
C. onCreate()
D. onRestore()

Answer: C
Explanation:

Question NO. 5
What is the parent class of all Activity widgets?

A. ViewGroup
B. Layout
C. View
D. Widget

Answer: C
Explanation:

Question NO.6
Which configuration file holds the permission to use the internet?

A. Layout file
B. Property file
C. Java source file
D. Manifest file

Answer: D
Explanation:

Question NO.7
What method you should override to use Android menu system?

A. onCreateOptionsMenu()
B. onCreateMenu()
C. onMenuCreated()
D. onCreateContextMenu()

Answer: A
Explanation:

Question NO. 8
Which of the following is NOT a valid usage for Intents?

A. Activate and Activity
B. Activate a Service
C. Activate a Broadcast receiver
D. Activate a SQLite DB Connection.

Answer: D
Explanation:

No comments:

Post a Comment