It is not required to be added.
Note: This Question is unanswered, help us to find answer for this one
Check Answer
3. 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?
Note: This Question is unanswered, help us to find answer for this one
Check Answer
5. If you are creating a new Android game using Eclipse, which of the following is the correct procedure to do so?
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.
Answer
Correct Answer:
File–>New–>Android Application Project–>Fill in the required Details and click Finish.
Note: This Question is unanswered, help us to find answer for this one
Check Answer
6. Suppose you want to include a robot.png image in your Android game. Which is the recommended folder where you should copy this image?
Drawable.hdpi
Drawable.mdpi
Drawable.ldpi
Drawable.xhdpi
Any of the above
None of the above
Answer
Correct Answer:
Any of the above
Note: This Question is unanswered, help us to find answer for this one
Check Answer
7. The architecture used by DVM (Dalvik Virtual machine) is ___________ based.
queue
stack
register
All of the above
None of the above
Note: This Question is unanswered, help us to find answer for this one
Check Answer
8. Suppose you want to add a new XML file named "colorDim" to your Android project. How can you do so?
Right Click on the project to which you want to add the new XML file–>New–>Class–> Enter Name
Right Click on the folder–>New–>Untitled xml file–>–> Enter Name
Right Click on the project to which you want to add the new XML file –>New–>Android XMLFile–> Enter Name
Right Click on the folder–>New–>Class–>Enter Name
Answer
Correct Answer:
Right Click on the project to which you want to add the new XML file –>New–>Android XMLFile–> Enter Name
Note: This Question is unanswered, help us to find answer for this one
Check Answer
9. Which of the following is the suggested location for storing the string resources in an Android application?
/res/values/string.xml
/res/values/styles.xml
/layout/values/string.xml
/layout/values/styles.xml
Answer
Correct Answer:
/res/values/string.xml
Note: This Question is unanswered, help us to find answer for this one
Check Answer
10. Which of the following classes contains Android system string resources Cut, Copy, and Paste?
import Android.content.Resources;
import Android.content.res.Resources;
import content.res.Resources;
import Android.System.res.Resources;
import Android.String.res.Resources;
Answer
Correct Answer:
import Android.content.res.Resources;
Note: This Question is unanswered, help us to find answer for this one
Check Answer
11. 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).
Note: This Question is unanswered, help us to find answer for this one
Check Answer
12. State whether the following statement is true or false.
For handsets (mobile phone) debugging of Android applications, you cannot use eclipse.
Note: This Question is unanswered, help us to find answer for this one
Check Answer
13. 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?
Note: This Question is unanswered, help us to find answer for this one
Check Answer
14. In order to create pop-up windows inside an Android game, a/an ________ class is used.
Dialog
ActivityWindow
PopupActivity
PopupWindow
Answer
Correct Answer:
PopupWindow
Note: This Question is unanswered, help us to find answer for this one
Check Answer
15. 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.
Note: This Question is unanswered, help us to find answer for this one
Check Answer
16. 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. }
Note: This Question is unanswered, help us to find answer for this one
Check Answer
17. What are application assets in Android?
They are used very infrequently to store uncompiled files within the application package file that is installed on the handset.
They are used very frequently to store uncompiled files within the application package file that is installed on the handset.
They are used very infrequently to store compiled files within the application package file that is installed on the handset.
They are used very frequently to store compiled files within the application package file that is installed on the handset.
Answer
Correct Answer:
They are used very infrequently to store uncompiled files within the application package file that is installed on the handset.
Note: This Question is unanswered, help us to find answer for this one
Check Answer
18. Which of the following image formats is/are supported by Android?
I. .jpg
II. .gif
III. .png
IV. .webp
Answer
Correct Answer:
All of the above
Note: This Question is unanswered, help us to find answer for this one
Check Answer
19. 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?
import Android.microedition.khronos.egl.EGLConfig;
import javax.microedition.khronos.egl.EGLConfig;
import Android.microedition.EGLConfig;
import javax.microedition.EGLConfig;
Answer
Correct Answer:
import javax.microedition.khronos.egl.EGLConfig;
Note: This Question is unanswered, help us to find answer for this one
Check Answer
20. 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?
MainActivity.java
AndroidManifest.xml
BuildConfig.java
both b and c
Answer
Correct Answer:
AndroidManifest.xml
Note: This Question is unanswered, help us to find answer for this one
Check Answer
21. How can you view the LogCat in your Eclipse editor?
Window–>Open perspectives–>Android–>LogCat
Window–>Others–>General–>LogCat
Window–>Show View–>Java–>General–>LogCat
Window–>Show View–>Other–>Android–>LogCat
Answer
Correct Answer:
Window–>Show View–>Other–>Android–>LogCat
Note: This Question is unanswered, help us to find answer for this one
Check Answer
22. Which of the following objects is/are used for building user interface elements in Android?
I) View
II) ViewGroup
III) Layout
Answer
Correct Answer:
I & II Only
Note: This Question is unanswered, help us to find answer for this one
Check Answer
23. Which of the following adapters exposes data from a Cursor to a ListView widget?
BaseAdapter
AdapterView
BaseExpandableListAdapter
CursorAdapter
Answer
Correct Answer:
CursorAdapter
Note: This Question is unanswered, help us to find answer for this one
Check Answer
24. 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?
context.setVolumeControlStream(AudioManager.STREAM_MUSIC);
setVolumeControlStream(context.AudioManager.STREAM_MUSIC);
context.setVolumeControlStream(SoundManager.STREAM_MUSIC);
setVolumeControlStream(context.SoundManager.STREAM_MUSIC);
Answer
Correct Answer:
context.setVolumeControlStream(AudioManager.STREAM_MUSIC);
Note: This Question is unanswered, help us to find answer for this one
Check Answer
25. 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
Answer
Correct Answer:
II and IV
Note: This Question is unanswered, help us to find answer for this one
Check Answer
26. 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?
protected void Draw(Canvas canvas) {
canvas.drawimage(BitmapFactory.Resource(getResources(),
R.drawable.roboimage), 20, 20);
protected void Canvas() {
canvas.drawimage(BitmapFactory.decodeResource(getResources(),
R.drawable.roboimage), 20, 20, null);
protected void onDraw(Canvas canvas) {
canvas.drawBitmap(BitmapFactory.decodeResource(getResources(),
R.drawable.roboimage), 20, 20, null);
protected void Canvas() {
drawimage(BitmapFactory.decodeResource(getResources(),
R.drawable.roboimage), 20, 20);
Answer
Correct Answer:
protected void onDraw(Canvas canvas) {
canvas.drawBitmap(BitmapFactory.decodeResource(getResources(),
R.drawable.roboimage), 20, 20, null);
Note: This Question is unanswered, help us to find answer for this one
Check Answer
27. 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?
Copy and paste the Warrior.ap.exe file onto the device and install the application.
Copy and paste the buildConfig.java file onto the device and install the application.
Copy and paste the Warrior.java file onto the device and install the application.
Copy and paste the Warrior.apk file onto the device and install the application.
Copy and paste the Warrior.exe file onto the device and install the application.
Answer
Correct Answer:
Copy and paste the Warrior.apk file onto the device and install the application.
Note: This Question is unanswered, help us to find answer for this one
Check Answer
28. Which of the following are the features of the AndroidManifest.xml file?
I) Intent Filters
II) Permission
III) Project text
IV) Instrumentation
V) AppTheme
Answer
Correct Answer:
I, II, IV
Note: This Question is unanswered, help us to find answer for this one
Check Answer
29. State whether the following statement is true or false.
In Eclipse, on saving the .java files, the code is automatically compiled each time.
Note: This Question is unanswered, help us to find answer for this one
Check Answer
30. 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?
3D font
Dotted Font
Bitmap Font
Modern Font
Answer
Correct Answer:
Bitmap Font
Note: This Question is unanswered, help us to find answer for this one
Check Answer
31. 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?
Log.d(TAG, "Game Begins");
LogCat(TAG, "Game Begins");
Log.debug(TAG, "Game Begins");
Answer
Correct Answer:
Log.d(TAG, "Game Begins");
Note: This Question is unanswered, help us to find answer for this one
Check Answer
32. Which of the following code lines describes a map to associate a bitmap to each character?
private Map glyphs = new HashMap(62);
private Map glyphs = new BitMap(62);
private Map glyphs = new HashMap(62);
private Map glyphs = new BitMap(62);
private Map glyphs = new glyphs(62);
Answer
Correct Answer:
private Map glyphs = new HashMap(62);
Note: This Question is unanswered, help us to find answer for this one
Check Answer
33. 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?
String rID= getString(R.string.hello);
String rID= getResources(R.string.hello);
String rID= getString().getResources(R.string.hello);
String rID= getResources().getString(R.string.hello);
Answer
Correct Answer:
String rID= getResources().getString(R.string.hello);
Note: This Question is unanswered, help us to find answer for this one
Check Answer
34. While creating an Android Virtual Device (AVD) which of the following hardware options is fixed and cannot be changed by the user?
RAM size
Battery Support
Cache partition size
DPad Support
None of the above
Answer
Correct Answer:
None of the above
Note: This Question is unanswered, help us to find answer for this one
Check Answer
35. OpenGL is a/an ________ .
type of computer-aided design (CAD)
Application programming Interface
Graphical Processing Unit
None of the above
Answer
Correct Answer:
Application programming Interface
Note: This Question is unanswered, help us to find answer for this one
Check Answer
36. If you want to set the size of your textView control to 250 pixel, then which of the following xml queries can be used?
<dimension name="abcDim">250px</dimension>
<size name="abcDim">250</size>
<dimension abcDim= 250px></Dimension>
<dimen name="abcDim">250px</dimen>
Answer
Correct Answer:
<dimen name="abcDim">250px</dimen>
Note: This Question is unanswered, help us to find answer for this one
Check Answer
37. 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?
boolean CheckOrientation = getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT;
int frameBufferHeight = CheckOrientation ? 1000: 600;
int frameBufferWidth = CheckOrientation ? 600: 1000;
getOrientation().getConfiguration().ORIENTATION_PORTRAIT;
if(true)
{
int frameBufferHeight = 1000px ;
int frameBufferWidth = 600px ;
}
else
{
int frameBufferHeight = 1000px ;
int frameBufferWidth = 600px ;
}
boolean CheckOrientation(). getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT;
if(true)
{
int frameBufferHeight = 1000px ;
int frameBufferWidth = 600px ;
}
else
{
int frameBufferHeight = 1000px ;
int frameBufferWidth = 600px ;
}
getOrientation().getConfiguration().ORIENTATION_PORTRAIT;
int frameBufferHeight = CheckOrientation ? 600: 1000;
int frameBufferWidth = CheckOrientation ? 1000: 600;
Answer
Correct Answer:
boolean CheckOrientation = getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT;
int frameBufferHeight = CheckOrientation ? 1000: 600;
int frameBufferWidth = CheckOrientation ? 600: 1000;
Note: This Question is unanswered, help us to find answer for this one
Check Answer
38. 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)?
Vibrator vibrator = getSystemService(Activity.VIBRATOR_SERVICE); model.setVibrator(vibrator);
Vibrator vibrator = (Vibrator) getService(Activity.VIBRATOR_SERVICE); setVibrator(vibrator);
Vibrator vibrator = (Vibrator)getSystemService(Activity.VIBRATOR_SERVICE); model.setVibrator(vibrator);
None of the above
Answer
Correct Answer:
Vibrator vibrator = (Vibrator)getSystemService(Activity.VIBRATOR_SERVICE); model.setVibrator(vibrator);
Note: This Question is unanswered, help us to find answer for this one
Check Answer
Android Game Development MCQs | Topic-wise