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. 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)?
5. 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?
6. If you want to set the size of your textView control to 250 pixel, then which of the following xml queries can be used?
7. OpenGL is a/an ________ .
8. While creating an Android Virtual Device (AVD) which of the following hardware options is fixed and cannot be changed by the user?
9. 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?
10. Which of the following code lines describes a map to associate a bitmap to each character?
11. 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?
12. 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?
13. Which of the following methods is used to display text on screen in eclipse?
14. 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?
15. In Eclipse, on saving the .java files, the code is automatically compiled each time.
16. Which of the following are the features of the AndroidManifest.xml file? I) Intent Filters II) Permission III) Project text IV) Instrumentation V) AppTheme
17. 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?
18. 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?
19. Which of the following classes handles sound media in an Android game?
20. In Eclipse, the layout folder of an Android application are located in which of the following folders by default?
21. 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
22. In an Android project which of the files should not be modified?
23. 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?
24. While we are developing an application on eclipse, an .apk file is automatically generated. In which of the folders is this file generated?
25. Which of the following adapters exposes data from a Cursor to a ListView widget?
26. Which of the following data type(s) is/are used by Android?
27. If you want to print or log everything that happens in your application, which of the following tags should you use?
28. The Integrated Development Environment for Android game development is/are ___________.
29. Which of the following layouts is not there in Android SDK?
30. 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?
31. Which of the following objects is/are used for building user interface elements in Android? I) View II) ViewGroup III) Layout
32. In Android, a tool called DX is used to convert java .class files into _________format.
33. __________ file in the Android project is an auto generated file and is stored in the package gen.
34. How can you view the LogCat in your Eclipse editor?
35. 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?
36. 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?
37. Which of the following image formats is/are supported by Android? I. .jpg II. .gif III. .png IV. .webp
38. In mobile games, what is the ideal frame rate in frame per second (fps) for no noticeable glitches in the motion of objects?
39. The Android operating system is based upon which of the following Kernel/s?
40. What are application assets in Android?
41. 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. }
42. The base class for Android Activity class is_______________.
43. 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.
44. In order to create pop-up windows inside an Android game, a/an ________ class is used.
45. 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?
46. 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); }
47. For handsets (mobile phone) debugging of Android applications, you cannot use eclipse.
48. OpenGL is used only for writing 3D Graphics that are rendered on GPU (Graphics Processing Unit).
49. Which of the following debugging tools is used in Android game development?
50. The application context for the current process can be retrieved using which of the following methods in Android?
51. Which of the following classes contains Android system string resources Cut, Copy, and Paste?
52. Which of the following is the suggested location for storing the string resources in an Android application?
53. Suppose you want to add a new XML file named 'colorDim' to your Android project. How can you do so?
54. 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?
55. The architecture used by DVM (Dalvik Virtual machine) is ___________ based.
56. Suppose you want to include a robot.png image in your Android game. Which is the recommended folder where you should copy this image?
57. 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?
58. If you are creating a new Android game using Eclipse, which of the following is the correct procedure to do so?
59. In Eclipse, which of the following is the icon of Android SDK Manager?
60. Which of the following Android code is used to access the Android device's sensor service?
61. This question is based upon the figure shown below In Eclipse, inside an Android project the style.xml file contain styles related to element of project or application being developed. Which of the following icons provide an option to display only the Style/Theme element of the project?
62. Which of the following code lines is needed to be added in Android manifest file (in eclipse),outside of the block, for retrieving a vibrator that interacts with the vibration hardware?
63. Suppose you are developing an Android game using eclipse. If you want to change the version number of your game, which file should you edit to do so?
64. Which of the following options is valid to create an AVD in Eclipse?