Android Application Development (AND-401) Free Practice Test
Question 1
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?
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?
Correct Answer: A
Question 2
Which Which of the following does NOT correctly describe interface android.widget.Adapter?
Correct Answer: A
Question 3
Which of the following best explains the Android context menus?
Correct Answer: B
Question 4
What does the following line of code do?
Toast toast = Toast.makeText(this,"Android ATC", Toast.LENGTH_LONG); toast.setGravity(Gravity.TOP|Gravity.RIGH, 0, 0);
Toast toast = Toast.makeText(this,"Android ATC", Toast.LENGTH_LONG); toast.setGravity(Gravity.TOP|Gravity.RIGH, 0, 0);
Correct Answer: A
Question 5
During an Activity life-cycle, what is the first callback method invoked by the system?
Correct Answer: D
Question 6
How to enable JavaScript in WebView?
Correct Answer: D
Question 7
Which of the following is not an Activity lifecycle call-back method?
Correct Answer: D
Question 8
Which of the following is a rule that developers must always follow when writing multi-threaded Android applications? (Choose two)
Correct Answer: A,B
Question 9
What method you should override to use Android menu system?
Correct Answer: B
Question 10
Which of the following is not a valid Android resource file name?
Correct Answer: D