Android
OA0-002 · Question #68
OA0-002 Question #68: Real Exam Question with Answer & Explanation
Sign in or unlock OA0-002 to reveal the answer and full explanation for question #68. The question stem and answer options stay visible for context.
Question
Which of these is the correct code to create a Bitmap object using the file res/drawable/image.png?
Options
- ABitmap img = BitmapFactory.decodeFile(R.drawable.image),
- BBitmap img = BitmapFactory.decodeResource(R.drawable.image);
- CBitmap img = new Bitmap(R.drawable.image);
- DBitmap img = (Bitmap)GraphicsFactory.decodeResouces(R.drawable.image);
Unlock OA0-002 to see the answer
You've previewed enough free OA0-002 questions. Unlock OA0-002 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.