Answer: C Use Custome View and draw directly on Canvas
Description: If you want to draw some images which will not have particular x,y co-ordinates and which moves randomly in the screen, then you can't do it with android predefined views. Better directly draw on canvas by creating custom views. Once canvas is under your control, then you can move your images randomly (as snake moves randomly) on the screen.
Answer: A animating an image which is at a fixed location, like scaling, rotating, and alpha is called as tween animation.
Description: animating an image which is at a fixed location. Animating a single image with a series of transformations is tween animation.
There are 3 tween animation techniques.
1. scaling : Zooming in and Zooming out effect
2. rotating : Rotating a view clock wise or anti clock wise
3. alpha : making a view transparent or visible.
Answer: C playing frame after frame using animation-list xml property is called as frame animation.
Description: playing image frame after image frame using animation-list xml property is called as frame animation.
Note : If you play 24 frames in a second, it will become a movie.
Tween animation will be animated only by using one image frame, where as frame animation requires multiple image frames to animate. That is the main difference.
Answer: B it is part of view package.
Description: tween animation is applicable to all views, so it is part of view package.
Answer: A it is part of android.graphics.drawable package
Description: FrameAnimation is part of android.graphics.drawable package.
Answer: A Implement your own custom View by extending View class, and then implement onDraw method in it.
Description: Directly drawing on Canvas can be done by creating custom views by extending view class. Where we can draw directly on canvas.
Answer: C Use custom view, where you can draw your own shapes dynamically on canvas.
Description: developing a snake game needs to redraw snake image very randomly and dynamically. also snake size may keeps increasing, so its better to take complete control over canvas and draw on it using a custom view.
Answer: D .9.png
Description: 9 patch image is the suggestible image to use, because it has the capability of scaling and padding automatically based on the screen size.
Answer: B draw9patch is the tool name, it is located in android-sdk/tools.
Description: draw9patch.bat is the tool name used to convert images to 9 patch images.
It is located in android-sdk/tools folder.
Answer: A It will scale the images automatically based on the device screen sizes on which app is loaded.
Description:
Answer: D all of the above.
Description: tween animation has scale, alpha, and rotate tags.
Answer: B use AndEngine.
Description: openGLES is used to perform best 3D graphics in android application. How ever to use openGLES programmer should have good knowledge of C & C++.
Alternative for openGLES is AndEgnine to do 3D graphics in android. To Use AndEngine one should know only Java.