Android Game Development Quiz # 2

Instructions
Quiz: Android Game Development Quiz # 2
Subject: Basic Android Game Development
Total Questions: 64 MCQs
Time: 64 Minutes

Note

  • Do not refresh the page while taking the test.
  • Results along with correct answers will be shown at the end of the test.
Android Game Development Quiz # 2
Question 1 of 64
00:00
  • Which of the following objects is/are used for building user interface elements in Android?

    I) View

    II) ViewGroup

    III) Layout


  • In Android, a tool called DX is used to convert java .class files into _________format.

  • __________ file in the Android project is an auto generated file and is stored in the package gen.

  • How can you view the LogCat in your Eclipse editor?

  • If a developer wants to modify the fundamental characteristics and components of an Android application developed using Eclipse, then which file he should edit to do so?

  • In Android, which of the following header files is needed to be imported in the class that implements OpenGL Renderer given that the game is being developed using Eclipse?

  • Which of the following image formats is/are supported by Android?

    I. .jpg

    II. .gif

    III. .png

    IV. .webp


  • In mobile games, what is the ideal frame rate in frame per second (fps) for no noticeable glitches in the motion of objects?

  • The Android operating system is based upon which of the following Kernel/s?

  • What are application assets in Android?

  • 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. }


  • The base class for Android Activity class is_______________.

  • 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.


  • In order to create pop-up windows inside an Android game, a/an ________ class is used.

  • Suppose you want to retrieve a system resource string called "Yes" from within an Activity class. Which of the following queries should you use to do so?

  • 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?


  • State whether the following statement is true or false.

    For handsets (mobile phone) debugging of Android applications, you cannot use eclipse.


  • State whether the given statement is true or false.

    OpenGL is used only for writing 3D Graphics that are rendered on GPU (Graphics Processing Unit).


  • Which of the following debugging tools is used in Android game development?

  • The application context for the current process can be retrieved using which of the following methods in Android?

  • Which of the following classes contains Android system string resources Cut, Copy, and Paste?

  • Which of the following is the suggested location for storing the string resources in an Android application?

  • Suppose you want to add a new XML file named "colorDim" to your Android project. How can you do so?

  • Consider the following logic in an Android game:

    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?


  • The architecture used by DVM (Dalvik Virtual machine) is ___________ based.

  • Suppose you want to include a robot.png image in your Android game. Which is the recommended folder where you should copy this image?

  • Study the Android method given below and answer the following question:

    getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,

    WindowManager.LayoutParams.FLAG_FULLSCREEN);

    What is the function of the given method?


  • If you are creating a new Android game using Eclipse, which of the following is the correct procedure to do so?

  • This question is based upon the figure shown below

    In Eclipse, which of the following is the icon of Android SDK Manager?

  • Which of the following Android code is used to access the Android device's sensor service?

Android Game Development Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

Android Game Development Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it