BCA 6 030010601 : Introduction to Mobile Application Development Question Bank Unit 1: Introduction to Android and Development tools Short questions 1. What kind of tool is used to simulate Android application? 2. Can we use C++ language for Android application development? 3. What does Dalvik Virtual Machine generates? 4. NFC feature is available from which version of Android? 5. What kind of situation shall be raised if adb do not working normally? 6. Which feature of Honeycomb Android version makes it differ from other Android versions? 7. Which library provides database support for Android application? 8. List any two perspectives provided by Android sdk. 9. To save string values which file is used? 10. How an application developed with HVGA skin will react during debugging with QVGA skin? 11.Which is latest version of Android OS? Long questions 1. What are the core components under the Android application architecture? Explain any two in detail. 2. What does an Android APK file contains? Explain any two component except dex and class files. 3. To monitor debugging process which tool is useful? Explain other tool of Android in detail. 4. Write a note on Dalvik Virtual Machine component of Android Runtime. 5. List all the versions of android. Explain more features of Android version which contains NFC. 6. Which file is considered as managing file in Android application? Explain each node of that file in detail. 7. Write a note on Android device available in market. 8. Explain various resources which can be specified in Android application project. Give an appropriate example for each. 9. To run a simple application what task should be carry out? Explain about emulator in detail. 10. Explain Android perspectives. 11. Explain the following things in the context of android device: Screen size, Screen density, Orientation, Resolution, Density- independent pixel (dp). 12. How Android supports multiple screen? Explain with an appropriate example. Multiple choice questions 1. LogCat is the part of perspective available in Android ADT. a) Java Perspective b) DDMS c) C/C++ d) Pixel Perfect 2. If targetsdkversion is 2.2 than what shall be the minimum required SDK version? Ms. Neha Topiwala Page 1
a) 4.4 Kitkat b) 4.0 Ice Cream Sandwich c) 1.5 Cupcake d) 4.2 Jelly Bean 3. DVM is part of layer and is also available in same layer. a) Android Runtime, Activity Manager b) Application Framework, Core Libraries c) Android Runtime, Core Libraries d) Libraries, View System 4. Android 3.0 do NOT provide feature. a) 3D desktop b) Support for multi- core processor c) NFC (Near Field Communication) d) Private browser 5. To achieve tabbed browsing library is included after 3.0 Android version. a) FreeType b) WebKit c) SSL d) SGL 6. In Android Architecture layer is used by developers. a) Linux Kernel b) Application Framework c) Libraries d) Android Runtime 7. To share Internet connection feature is useful. a) Media Support b) Tethering c) Bluetooth d) NFC 8. What was the main reason for replacing the Java VM with the Dalvik VM when the Android project began? a) Java VM ran too slow b) Java virtual machine was not free c) Java VM was only for web based application d) Java VM was not optimized for mobile device 9. component of Android Runtime is responsible of generating file. a) Libraries,.apk b) Application Framework,.class c) Dalvik Virtual Machine,.dex d) Dalvik Virtual Machine,.class 10. To monitor Android application s debugging process tool is NOT helpful. a) LogCat b) Console c) Hierarchy Viewer d) Emulator Control 11. From a phone manufacturer's point of view, what makes Android so great? a) It provides everything to make a phone work. b) It allows them to compete with Apple's iphone. c) It makes the hardware work better Ms. Neha Topiwala Page 2
d) Android code is free and open. 12. Ice cream sandwich was successful Android version as, a) It supports smart phone + tablet b) Browser supports flash. c) It is cheaper than older version. d) IOs applications also supported in it. Fill in the blanks 1. Android is a based mobile operating system. 2. The virtual machine enables every Android operating system to run in its own process. 3. For Android application development, RDBMS is used to store and retrieve data. 4. The manages the various versions of the Android SDK currently installed on your computer. 5. The file contains detailed configuration information for your application. 6. The folder contains source code of an Android application. 7. The file is auto generated which can not be modifiable. 8. The Dalvik Virtual Machine generates extension file. 9. Android platform is owned by organization. 10. All the device drivers are part of layer in Android architecture. 11. In years Google has purchased Android. 12. Android has operating system as the kernel. 13. Android version 2.2 is known as nickname. 14. Android first release has launched on phone namely. 15. The latest version of Android is. 16. Ice cream sandwich is the code name of Android version. 17. The hosts all the various Android applications written by third- party developer. Unit- 2: Activities and Intents Short questions 1. Which are the four essential states of an activity? 2. During an activity life cycle which methods invoked only once? 3. What is a the use of setcontentview() method? 4. Where will you declare your activity so the system can access it? 5. Where can you define the icon for your Activity? 6. What do you mean by resource? 7. Which object is passed to oncreate () method? 8. To create an Activity which class must be inherits in our sub class? 9. How Extras object of Intent shall be useful 10. List any two Constants of ViewGroup.LayoutParams class. 11. What is the use of LogCat window in eclipse? 12. Which of the theme is use to an activity to display floating dialog? 13. Which ViewGroup allows to place views either horizontally or vertically? Long questions 1. What is AndroidManifest.xml? Write its usages with an appropriate example. 2. Write a note on activity life cycle. 3. Which methods of the android.util.log class can be used to add logging support to Android application? 4. How many permissions Android application has by default? What should be added to gain access to the built in camera? Ms. Neha Topiwala Page 3
5. What are resources? Explain any two resource type with an appropriate example for each. 6. Describe different image dimension that can be store in drawable directory. 7. Write a snippet to transfer the data from one activity to another activity with possible validation. 8. Explain how to configure intent- filter in AndroidManifest.xml file with example. 9. What do you mean by Activity stack? Explain with an appropriate diagram. Multiple choice questions 1. If you are calling an Activity which has not been registered in AndroidManifest.xml file, than what shall be the result? a) Application will run normally b) Error: ActivityNotFoundException c) Error: ClassNotFoundException d) Error: NullPointerException 2. To close an Activity method is useful. a) stop() b) finish() c) kill() d) close() 3. What shall be output if you forget to set xml file reference in Activity file using setcontentview() method a) Error: NullPointerException b) Application shall be launch without view. c) Android shall set design automatically. d) Error: ViewNotFoundException 4. What shall be output of following code: TextView textview; textview = (EditText) findviewbyid(r.id.txtv); a) Object gets initialized b) Error: NullPointerException raised c) Error: ViewNotFoundException raised d) Error: ClassCastException raised 5. In AndroidManifest.xml file attribute is used to specify theme of application. a) android:theme= @android.style/apptheme b) android:style= @theme/apptheme c) android:theme= @style/apptheme d) android:style= @android.theme/apptheme 6. Which of the following is the way to specify schema of xml file? a) android:xmlns= http://schemas.android.com/apk/res/android b) android:xmlns= https://schemas.android.com/res/apk/android c) xmlns:android= http://schemas.android.com/apk/res/android d) xmlns:android= http://schemas.android.com/res/apk/android 7. Which of the following file saves reference to resources? a) bin/r.java b) gen/r.class c) gen/r.java d) res/r.class 8. In Android project assets folder do NOT contains. a) Text file b) Html file Ms. Neha Topiwala Page 4
c) layout file d) Database file 9. Which of the following is the way to fetch values from received intent? a) Intent i = getvalues(); b) Intent i = getservice().getintent(); c) Intent i = getintent(); d) Intent i = getresource(); 10. Which of the following is NOT the state of Activity? a) Create b) Resume c) Release d) Destroy 11. Which of the following package is used to link two Activities? a) android.context.intent b) android.widget.intent c) android.content.intent d) android.activity.intent 12. Which of the following is package of Button view? a) android.app.* b) android.widget.* c) android.intent.* d) android.view.* 13. To monitor Android application s debugging process tool is NOT helpful. a) LogCat b) Console c) Hierarchy Viewer d) Emulator Control 14. Which of the following category creates launcher icon for the activity? a) android.intent.category.launcher b) android.content.category.launcher c) android.intent.action.main d) android.intent.category.default 15. What shall be height for below layout? <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > </LinearLayout> a) Same as content height. b) Same as device height. c) Same as device width. d) None of the above. Ms. Neha Topiwala Page 5