Solved

Consider the Following the Code: Public Boolean OnCreateOptionsMenu(Menu Menu)

Question 92

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents