AND-401.pdf - Android AND-401 Android Application Development Download Full Version http\/killexams.com\/pass4sure\/exam-detail\/AND-401 QUESTION 113

AND-401.pdf - Android AND-401 Android Application...

This preview shows page 1 - 3 out of 7 pages.

Android AND-401 Android Application Development Download Full Version :
Image of page 1
QUESTION: 113 Consider the following : <?xml version="1.0" encoding="utf-8"?> <menu xmlns:android=""> <item android:id="@+id/create_new" android:title="@string/create_new" /> <item android:id="@+id/open" android:title="@string/open" /> </menu> public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case R.id.create_new: newFile(); return true default: return super.onOptionsItemSelected(item); } } Upon clicking on one of the menu items, the application did not behave as intended. Which of the following might be the cause of this problem? A. The developer did not set onClickListener on the menu item. B. The developer did not include a case that corresponds to the menu item in method onOptionsItemSelected. C. The developer should create onOptionsItemSelected method for each menu item. D. The developer should add the item to the menu resource file. Answer: B QUESTION: 114 Which of the following applies to the onDraw() method of class View? (Choose two)
Image of page 2
Image of page 3

You've reached the end of your free preview.

Want to read all 7 pages?

  • Spring '18
  • Dr. Moez
  • AND-401 Testking, Certqueen AND-401, Justcertify AND-401, Exam-labs AND-401, Free AND-401 Vce

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture