Model Questions
Model Questions
Mobile Programming
BCA Sixth Semester
6. During an Activity life-cycle, what is the first callback method invoked by the
system?
A. onStop() B. onStart()
C. onCreate() D. onRestore()
Answer: C
7. What Activity method you use to retrieve a reference to an Android view by using
the id attribute of a resource XML?
A. findViewByReference(int id); B. findViewById(int id)
C. retrieveResourceById(int id) D. findViewById(String id)
Answer: B
8. What does the src folder contain?
A. Image and icon files B. XML resource files
C. The application manifest file D. Java source code files
Answer: D
Mobile Programming
BCA Sixth Semester
3. What is the name of the program that converts Java byte code into Dalvik byte
code?
A. Android Interpretive Compiler (AIC) B. Dalvik Converter
C. Dex compiler D. Mobile Interpretive Compiler (MIC)
Answer: C
5. When developing for the Android OS, Java bytecode is compiled into what?
A. Java source code B. Dalvik application code
C. Dalvik byte code D. C source code
Answer: C
Mobile Programming
BCA Sixth Semester
6. The XML file that contains all the text that your application uses.
A. stack.xml B. text.xml
C. strings.xml D. string.java
Answer: C