1. In Android game development, which of the following is the correct method to load the images using Eclipse?
2. Which of the following log(s) is/are supported by Android.Util.Log class?
3. 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?
4. 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?
5. Which of the following methods is used to display text on screen in eclipse?
6. Which of the following classes handles sound media in an Android game?
7. In Eclipse, the layout folder of an Android application are located in which of the following folders by default?
8. In an Android project which of the files should not be modified?
9. While we are developing an application on eclipse, an .apk file is automatically generated. In which of the folders is this file generated?
10. Which of the following data type(s) is/are used by Android?
11. If you want to print or log everything that happens in your application, which of the following tags should you use?
12. The Integrated Development Environment for Android game development is/are ___________.
13. Which of the following layouts is not there in Android SDK?
14. 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?
15. In Android, a tool called DX is used to convert java .class files into _________format.
16. __________ file in the Android project is an auto generated file and is stored in the package gen.
17. In mobile games, what is the ideal frame rate in frame per second (fps) for no noticeable glitches in the motion of objects?
18. The Android operating system is based upon which of the following Kernel/s?
19. The base class for Android Activity class is_______________.
20. 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?
21. Which of the following debugging tools is used in Android game development?
22. The application context for the current process can be retrieved using which of the following methods in Android?
23. 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?
24. 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?
25. Which of the following Android code is used to access the Android device's sensor service?
26. Which of the following options is valid to create an AVD in Eclipse?
Android Game Development MCQs | Topic-wise