Multiple Choice
Consider the following the code: public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getMenuInflater() ; inflater.inflate(R.menu.game_menu, menu) ; return true; } Which of the following is true about the code above?
A) The code is auto generated and should not be edited
B) This method handles clicks and assign actions to menu items
C) This function inflates an XML file in the res/menu folder into menu items
D) This method inflates an XML file in the res/layout folder into layout.
Correct Answer:

Verified
Correct Answer:
Verified
Q27: To add a new Activity to your
Q28: Which package of the following does not
Q29: What does the following code achieve? Intent
Q30: Which of the following statements are NOT
Q31: Which Fragment class life-cycle method you must
Q33: Which of the following is a valid
Q34: Which of the following methods is used
Q35: Which folder contains the Android project Java
Q36: What does this code do? Intent intent
Q37: Consider the following: <?xml version="1.0" encoding="utf-8"?><br><menu<br>Xmlns:android="http://schemas.android.com/apk/res/android"><br><item android:id="@+id/create_new"