Android Game Development Quiz # 1

Instructions
Quiz: Android Game Development Quiz # 1
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 # 1
Question 1 of 64
00:00
  • In Android game development, which of the following is the correct method to load the images using Eclipse?

  • Which of the following log(s) is/are supported by Android.Util.Log class?

  • In an Android game, if you want to set the color of a particular screen as yellow, which of the following is the correct method to do so?

  • In order to retrieve a vibrator for interacting with the vibration hardware, which of the following code is used in Android .java file (in eclipse)?

  • Suppose you are developing a game for an Android mobile phone using Eclipse. In the game, you want to set the height and width of the game frame as 1000 and 600 respectively if held normally and vice versa, that is height 600 and width 1000 if the orientation of screen is changed.

    Which of the following is the correct syntax to do so?


  • If you want to set the size of your textView control to 250 pixel, then which of the following xml queries can be used?


  • OpenGL is a/an ________ .

  • While creating an Android Virtual Device (AVD) which of the following hardware options is fixed and cannot be changed by the user?

  • Which of the following is the correct way to retrieve a string instance named "hello" from the application resource of Android by using its resource id?

  • Which of the following code lines describes a map to associate a bitmap to each character?

  • Suppose you are creating an Android application. If you want to print out a message that says "Game Begins" and use this for debugging purpose, then which of following statements should you use?

  • View the section of Android code given below:

    public void draw(Canvas canvas) {

    Rect destRect = new Rect(getX(), getY(), getX() + spriteWidth, getY() + spriteHeight);

    canvas.drawBitmap(bitmap, sourceRect, destRect, null);

    canvas.drawBitmap(bitmap, 20, 150, null);

    Paint Paint = new Paint();

    paint.setARGB(50, 0, 255, 0);

    canvas.drawRect(20 + (currentFrame * destRect.width()), 150, 20 + (currentFrame *destRect.width()) +destRect.width(), 150 + destRect.height(), paint);

    The code is executed using eclipse. What does the above code do?


  • Which of the following methods is used to display text on screen in eclipse?


  • For Android games, which of the following font types should we use so that the font size remains consistent on different types of devices with different screen sizes?

  • State whether the following statement is true or false.

    In Eclipse, on saving the .java files, the code is automatically compiled each time.


  • Which of the following are the features of the AndroidManifest.xml file?

    I) Intent Filters

    II) Permission

    III) Project text

    IV) Instrumentation

    V) AppTheme


  • Suppose you have developed a game named "Warrior" using Eclipse. In order to run this game on an Android phone what is needed to be done?

  • Suppose you want to draw an image, roboimage.png to coordinates (20, 20). The image is already present in the respective folder. Which of the following is the correct syntax to do so?

  • Which of the following classes handles sound media in an Android game?

  • In Eclipse, the layout folder of an Android application are located in which of the following folders by default?

  • Which of the following devices can be used to run an Android application developed using Eclipse?

    I) Android Refractor

    II) Android Emulator

    III) ProGuard

    IV) Android device


  • In an Android project which of the files should not be modified?

  • Suppose you are developing an Android game for mobiles. If you want to set the volume button of your phone to handle sounds of the game, which of the following is the correct syntax to do so?

  • While we are developing an application on eclipse, an .apk file is automatically generated. In which of the folders is this file generated?

  • Which of the following adapters exposes data from a Cursor to a ListView widget?

  • Which of the following data type(s) is/are used by Android?

  • If you want to print or log everything that happens in your application, which of the following tags should you use?

  • The Integrated Development Environment for Android game development is/are ___________.

  • Which of the following layouts is not there in Android SDK?

  • Examine the code given below:

    public boolean onCreateOptionsMenu(Menu menu) {

    // Inflate the menu; this adds items to the action bar if it is present.

    getMenuInflater().inflate(R.menu.activity_main, menu);

    return true;

    }

    Which of the following classes need(s) to be imported in order for this function to work properly?


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