Android
AND-401 · Question #55
AND-401 Question #55: Real Exam Question with Answer & Explanation
Sign in or unlock AND-401 to reveal the answer and full explanation for question #55. The question stem and answer options stay visible for context.
Question
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?
Options
- AThe code is auto generated and should not be edited
- BThis method handles clicks and assign actions to menu items
- CThis function inflates an XML file in the res/menu folder into menu items
- DThis method inflates an XML file in the res/layout folder into layout.
Unlock AND-401 to see the answer
You've previewed enough free AND-401 questions. Unlock AND-401 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.