Download 060010702 – Mobile Application Development

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
060010702 – Mobile Application Development
2014
Unit 1: Introduction to Android and Development tools
Que 1: Short question answer.
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
What kind of tool is used to simulate Android application?
Can we use C++ language for Android application development?
What does Dalvik Virtual Machine generates?
NFC feature is available from which version of Android?
What kind of situation shall be raised if adb do not working normally?
Which feature of Honeycomb Android version makes it differ from other Android versions?
Which library provides database support for Android application?
List any two perspectives provided by Android sdk.
To save string values which file is used?
How an application developed with HVGA skin will react during debugging with QVGA skin?
Que 2: Answer the following question in details.
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
What are the core components under the Android application architecture? Explain any two in detail.
What does an Android APK file contains? Explain any two component except dex and class files.
To monitor debugging process which tool is useful? Explain other tool of Android in detail.
Write a note on Dalvik Virtual Machine component of Android Runtime.
List all the versions of android. Explain more features of Android version which contains NFC.
Which file is considered as managing file in Android application? Explain each node of that file in
detail.
Write a note on Android device available in market.
Explain various resources which can be specified in Android application project. Give an appropriate
example for each.
To run a simple application what task should be carry out? Explain about emulator in detail.
Explain Android perspectives.
Explain the following things in the context of android device: Screen size, Screen density, Orientation,
Resolution, Density-independent pixel (dp).
How Android supports multiple screen? Explain with an appropriate example.
Que 3: Select most appropriate answer from the given option.
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?
a)
4.4 Kitkat
Ms. Puja Sharma, Ms. Neha Topiwala
1
060010702 – Mobile Application Development
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
Ms. Puja Sharma, Ms. Neha Topiwala
2
2014
060010702 – Mobile Application Development
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
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.
Que 4: Fill in the blanks.
Ms. Puja Sharma, Ms. Neha Topiwala
3
2014
060010702 – Mobile Application Development
2014
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, Fragments, and Intents
Que 1: Short question answer.
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
Which are the four essential states of an activity?
During an activity life cycle which methods invoked only once?
Define the term Fragment.
What is a the use of setContentView() method?
Where will you declare your activity so the system can access it?
Where can you define the icon for your Activity?
What do you mean by resource?
Which object is passed to onCreate () method?
To create an Activity which class must be inherits in our sub class?
How Extras object of Intent shall be useful
List any two Constants of ViewGroup.LayoutParams class.
What is the use of LogCat window in eclipse?
Which of the theme is use to an activity to display floating dialog?
Which ViewGroup allows to place views either horizontally or vertically?
Name one key difference between fragment and activity.
Que 2: Answer the following question in details.
1. What is AndroidManifest.xml? Write its usages with an appropriate example.
2. Is it possible to use or add a fragment without using a user interface? Explain with an appropriate
Ms. Puja Sharma, Ms. Neha Topiwala
4
060010702 – Mobile Application Development
2014
example.
3. Write a note on activity life cycle.
4. Which methods of the android.util.Log class can be used to add logging support to Android
application?
5. How many permissions Android application has by default? What should be added to gain access to
the built in camera?
6. What are resources? Explain any two resource type with an appropriate example for each.
7. Describe different image dimension that can be store in drawable directory.
8. Write a snippet to transfer the data from one activity to another activity with possible validation.
9. Explain how to configure intent-filter in AndroidManifest.xml file with example.
10. What do you mean by Activity stack? Explain with an appropriate diagram.
Que 3: Select most appropriate answer from the given option.
13. 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
14. To close an Activity _________ method is useful.
a)
stop()
b) finish()
c)
kill()
d) close()
15. 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
16. What shall be output of following code:
TextView textView;
Ms. Puja Sharma, Ms. Neha Topiwala
5
060010702 – Mobile Application Development
textView = (EditText) findViewById(R.id.txtV);
a)
Object gets initialized
b) Error: NullPointerException raised
c)
Error: ViewNotFoundException raised
d) Error: ClassCastException raised
17. 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”
18. 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”
19. 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
20. In Android project assets folder do NOT contains ___________.
a)
Text file
b) Html file
c)
layout file
d) Database file
21. Which of the following is the way to fetch values from received intent?
Ms. Puja Sharma, Ms. Neha Topiwala
6
2014
060010702 – Mobile Application Development
a)
Intent i = getValues();
b) Intent i = getService().getIntent();
c)
Intent i = getIntent();
d) Intent i = getResource();
22. Which of the following is NOT the state of Activity?
a)
Create
b) Resume
c)
Release
d) Destroy
23. 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
24. Which of the following is package of Button view?
a)
android.app.*
b) android.widget.*
c)
android.intent.*
d) android.view.*
25. To monitor Android application’s debugging process ______ tool is NOT helpful.
a)
LogCat
b) Console
c)
Hierarchy Viewer
d) Emulator Control
26. Which of the following category creates launcher icon for the activity?
a)
android.intent.category.LAUNCHER
Ms. Puja Sharma, Ms. Neha Topiwala
7
2014
060010702 – Mobile Application Development
2014
b) android.content.category.LAUNCHER
c)
android.intent.action.MAIN
d) android.intent.category.DEFAULT
27. 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.
Que 4: Fill in the blanks.
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
In _________ file you can view the resources for your project.
If we need to pass data back from an activity, ____________ method shall be used.
__________method is called when activity becomes visible to user.
Before activity is destroyed by the user _____________ method is called.
Using ___________ class, we can navigate to an Activity.
___________ Method sets a result code and the data to be returned back to the calling activity.
When fragment has been associated with the activity ___________method is called.
During the fragment transaction, to place fragment into the back stack___________ method need to call.
If application needs to load a web page, you have to use ____________ class object to invoke the built-in
web browser to display the web page.
Passing data to an activity ____________ object can be used.
___________ are mini-activities that can be added or removed from activities.
To display an activity as a dialog use ___________ method and implement _____________ method.
When activity is started, the ___________ and ___________ events are always called.
All activity must be declared in the ___________ file.
To display notification _______________ class can be used.
The Android OS will look for all activities that are able to satisfy request, is known as ___________.
Ms. Puja Sharma, Ms. Neha Topiwala
8