Note
Which of the following objects is/are used for building user interface elements in Android?
I) View
II) ViewGroup
III) Layout
I
II
III
I & II Only
II & III Only
All of the above
Which of the following image formats is/are supported by Android?
I. .jpg
II. .gif
III. .png
IV. .webp
I, II, III
II, III, IV
I, III, IV
III, IV
In the method given below, which code line sets the class "MainGamePanel" as the handler of the events happening on the actual surface?
1. public class MainGamePanel extends SurfaceView implements
2. SurfaceHolder.Callback {
3. public MainGamePanel(Context context) {
4. super(context);
5. getHolder().addCallback(this);
6. setFocusable(true);
7. }
4
5
6
None of the above
State whether the following statement is true or false.
While creating a new Android application using eclipse, we need to set the Android version for "Minimum Required SDK" and "Compile With" fields. Android version greater than or equal to Android 4.1 should be selected for both the fields.
True
False
Study the method given below and answer the following question:
public Triangle() {
1.ByteBuffer vertexByteBuffer = ByteBuffer.allocateDirect(vertices.length * 4);
2. vertexByteBuffer.order(ByteOrder.nativeOrder());
3. vertexBuffer = vertexByteBuffer.asFloatBuffer();
4. vertexBuffer.put(vertices);
5. vertexBuffer.position(0);
}
Which code line allocates memory from byte buffer?
1
2
3
For handsets (mobile phone) debugging of Android applications, you cannot use eclipse.
OpenGL is used only for writing 3D Graphics that are rendered on GPU (Graphics Processing Unit).
On receiving onPause() event, pause the music and set onFocusChanged() as false and after receiving onResume(), wait for onFocusChanged(true) message before resuming the background music.
What does the above logic do in the game?
When the game is paused, its music stops, and when the user resumes it, the game starts again without the music.
When the game is paused, its music stops and when the user resumes it and the game regains focus, the background music starts again.
When the game is paused, its music does not stop and when the user resumes it, the game starts again with the music.
Nothing happens.
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
What is the function of the given method?
It shows all the menus on the device in a zoomed in view.
It sets the application window to full screen mode
Both a and b.
None of the above.
File–>New–>Android Application Project–>Fill in the required Details and click Finish.
File–Android –>New Project–>Fill in the required Details and click Finish.
File–>java–>Android–> Application Project–>Fill in the required Details and click Finish.
File–>projects–>New Game Project–>Fill in the required Details and click Finish.
This question is based upon the figure shown below
In Eclipse, which of the following is the icon of Android SDK Manager?
IV
V
VI
Android Game Development Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it