Professional Documents
Culture Documents
2. The Android runtime comes with a set of core libraries that implements (CLO-1) (pg no.20)
a. c language b. java language
c. c++ language d. python language
3. Which Android studio project system uses to compile and deploy your apps. (CLO-1) (pg no.36)
a. Emulator b. view
c.Gradle build system d.view group system
4. Android emulator allow youto run your app on an (CLO-1) (pg no.43)
a.Android virtual display b.Android virtual device
c.Active virtual device d. Application Virtual display
7. Select a component which is NOT part of Android architecture. (CLO-1) (pg no.20)
a. Android framework b. Libraries
c. Linux kernel d. Android studio
10. Required folder when Android project is created. (CLO-1) (pg no.149)
a. build b. build/
c. bin d. bin/
13. Component which is NOT under the Android application. (CLO-1) (pg no.20)
a. Content provider’s b. Resource externalization
c. SQLite d. Notifications
14. What are commands needed to create APK in android? (CLO-1) (pg no.47)
a. No need to write any commands
b. Create apk_android in command line
c.Javac,dxtool, aapt tool, jarsigner tool, and zipalign
d. None of the above
15. Which of the following contains all the code that provides the main features of an Android OS?
(CLO-1) (pg no.410)
a. Linux kernel b. Libraries
c. Android runtime d. Application
16. What is the name of the program that converts Java byte code into Dalvik byte code? (CLO-1)
(pg no.51)
a. Mobile Interpretive Compiler (MIC) b. Dex compiler
c. Dalvik Converter d. Android Interpretive Compiler (AIC)
17. Android is based on Linux for the following reason. (CLO-1) (pg no.688)
a. Portability b. Security
c. Networking d. All of these
18. Which piece of code used in Android is not open source? (CLO-1) (web)
a. Power management b. Audio driver
c. Wi-Fi driver d. Keypad driver
19. What was the main reason for replacing the Java VM with the Dalvik VM when the project
began? (CLO-1) (web)
a. Java VM ran too slow
b. Java VM was too complicated to configure
c. Java virtual machine was not free
d. There was not enough memory capability
20. From a phone manufacturer's point of view, what makes Android so great? (CLO-1) (web)
a. Aside from some specific drivers, 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. It allows users to create apps, generating revenue for the companies
21. Which of the following is a component of an APK file? (CLO-1) (pg no.47)
a. Dalvikexecutable b. Bluetooth
c. Resourcesd. A& C
22. Although most people’s first through when they think of Android is google, android is not actually
owned by google. Who own the android platform? (CLO-1) (pg no.24)
a. Oracle Technology b. Dalvik.
c. Open Handset Alliance d. SQL
25. A type of service provided by android that shows messages and alerts to user is(CLO-1) (pg no. 21)
a. Content Providers b.ViewSystem
c.Notifications Managerd.Activity Manager
29. Android component that manages appearance and format on screen is called(CLO-1) (web)
a.fragment b.intent
c.view d.layout
PART-B (4 Marks)
UNIT II
PART-A (MCQ)
1.Which method takes two parameters: a Runnable and a long. (CLO-2) (pg no.154)
a. runTimer()
b. post()
c. postdelayed()
d. fullrunTimer()
2. How to centers the relative layout horizontally in the parent (CLO-2) (pg no.204)
a. android: layout_alignParentTop
b. android: layout_centerInParent
c. android: layout_centerhorizontal
d. android: layout_centervertical
a..text file
b..java file
c..dex file
d..xml file
4. To start an activity by creating an intent and using it in the (CLO-2) (pg no.110)
a.startActivity()
b.startActivityForResult()
c.ActivityForResult()
d.Activity()
5. If you need to pass data back from an activity, Which method you should use? (CLO-2) (pg no.111)
a.startActivity()
b.startActivityForResult()
c.ActivityForResult()
d.None of the above.
6. If you want to navigate from one activity to another then android provides you which class? (CLO-2)
(pg no.99)
a. Object
b.startActivity
c.Intent
d.Filter.
7.Duplicate the code in the two activities, we can use (CLO-2) (Pg no. 314)
a. Adapter
b. Activity
c. Fragments
d.None of the above.
8. How will you reference a textbox control in java file, that is available in XML file and the ID is
txtName. (CLO-2) (Web)
a.EditTexttxtEmpName;
txtEmpName=findViewById(R.id.txtName);
b.EditTexttxtEmpName;
txtEmpName=(EditText)findViewById(R.id.txtName);
c.EditTexttxtEmpName;
txtEmpName=(EditText)findViewById(txtName);
d.None of the above.
9. Suppose that there are two activities in an application named FirstActivity and SecondActivity. You
want to send website name from ActivityOne to ActivityTwo. What code you will write? Suppose that
website name is “CareerRide.com”(CLO-2) (web)
10. For creating Fragments the java class needs to extend which base class? (CLO-2) (pg no.321)
a.MainActivity
b.MiniActivity
c.Fragment
d.None of the above.
11.The ---------- method gets called each time Android needs the fragment’s layout (CLO-2)
(pg no.321)
a.Oncreateview()
b.Oncreate()
c.Workout()
d.None of the above.
12. Which one is not related to fragment class? (CLO-2) (pg no.327)
a. Dialog Fragment
b. List Fragment
c. PreferenceFragment
d. CursorFragment
13. Which one is non Layouts in Android? (CLO-2) (pg no.30)
a. Frame Layout
b. Linear Layout
c. Relative Layout
d.Object Layout
14. What method you should override to use Android menusystem? (CLO-2) (pg no.419)
a. onCreateOptionsMenu()
b. onCreateMenu()
c. onMenuCreated()
d. onCreateContextMenu()
15. What Activity method you use to retrieve a reference to anAndroid view by using the id attribute of
a resource XML?(CLO-2) (web)
a. findViewByReference(int id);
b. findViewById(int id)
c. retrieveResourceById(int id)
d. findViewById(String id)
16.Which of the following is not an Android component (i.e. apoint from which the system can enter
your application)?(CLO-2) (pg no.18)
a. Service
b. Activity
c. Layout
d. Content Provider
17. During an Activity life-cycle, when android start an activity?(CLO-2) (pg no.148)
a. onStop()
b. onStart()
c. onCreate()
d. onRestore()
19. Whenever you want an activity to start a second activity, you use an,(CLO-2) (pg no.110)
a. Activate
b. Service
c. Activity
d. Intent
20. What is the parent class of all Activity widgets? (CLO-2) (pg no.41)
a. ViewGroup
b. Layout
c. View
d. Widget
21.When the app returns to the screen, the android rubtime passes the? (CLO-2) (pg no.58)
a. Extra
b. Parcelable
c. Bundle
d. DataStore
22.Which of these files contains text values that you can use in your application(CLO-2) (web)
a. AndroidManifest.xml
b. res/Text.xml
c. res/layout/Main.xml
d. res/values/strings.xml
23.Which method bind the buttons in the fragments by implementing an (CLO-2) (pg no.390)
a.Detector
b.OnTapListener
c.OnClickDetector
d.OnClickListener
24.Which of the following is not an Activity lifecycle call-backmethod (CLO-2) (pg no.151)
a. onStart
b. onCreate
c. onPause
d. onBackPressed
25. Choose the correct option regarding activity in android.(CLO-2) (pg no.77)
a. An activity is a window that contains the user interface of your application.
b. An application can have zero or more activities.
c. An application can have only one activity.
d. Option A and B are correct.
26. Suppose that there are two activities in an application named ActivityOne and
ActivityTwo. You want to invoke ActivityTwo from ActivityOne. What code you will write? (CLO-2)
(web)
a. Intent intent=new Intent (this, ActivityTwo.class);
startActivity(intent);
b.startActivity(new Intent(this, ActivityTwo.class));
c. Option A and B are correct.
d. None of the above.
a.textfields
b.containers
c.widgets
d.layouts
28. A method that is used to handle what happens after clicking a button is(CLO-2) (pg no.63)
a.OnCreate
b.onSelect
c.onClick
d.onDo
29. Method that is used to produce log debug messages in android is(CLO-2) (pg no.589)
a.Log.d()
b.Log.D()
c.Log.R()
d.Log.r()
30.The ---------- tells Android which activities can handle which actions(CLO-2) (pg no.130)
a.<intent>
b.<intent-filter>
c.<intent-layout>
d.<intent-activity>
31.A type of service provided by android that helps in creating user interfaces is(CLO-2) (pg no.198)
a.Notifications Manager
b.Content Providers
c.Activity Manager
d.View System
32. What is the permission for using the camera? (CLO-2) (pg no.701)
a.android.permission.USE_CAMERA
b.android.permission.CAMERA
c.android.permission.hardware.CAMERA
d.None of the above.
33. You create an intent that specifies an action using the following syntax: (CLO-2) (pg no.126)
PART- B (4 marks)
1. Android uses a set of classes that allows you to manage (CLO-3) (pg no.483)
a. SQLite database
b. SQL
c. Both A & B
d. None of these
2. Which method gets called when the database needs to be upgraded. (CLO-3) (Pg no.487)
a.oncreate()
b.onstart()
c.onupgrade()
d.onstop()
3. Every application that talks to SQLite needs to use a standard database language called (CLO-3)
(Pg no.491)
a.SQL
b.Oracle
c.Msaccess
d.none of these
4. If the SQLite helper spots that the database that’s installed is out of date, it will call (CLO-3)
(pg no.500)
a. onUpgrade()
b. onCreate()
c.onDowngrade()
d.both a & c
5.When the database is created, which method in the SQLite helper is called.(CLO-3) (pg no.497)
a.create()
b.delete()
c.insert()
d.update()
6. If the version number in the SQLite helper is smaller than the version number held on the database,
which method is called. (CLO-3)(pg no.504)
a.onupgrade()
b.oncreate()
c.update()
d.onDowngrade()
9. If you want share the data accross the all applications, you should go for? (CLO-3) (pg no.699)
a.Shared Preferences
b.Internal Storage
c.SQLite Databases
d.content provider
10. What is the use of content provider in android? (CLO-3) (pg no.698)
a.To send the data from an application to another application
b.To store the data in a database
c.To share the data between applications
d. to store the data in external memory
12. Can a user save all database updates in onStop ()? (CLO-3) (pg no.493)
a.Yes, a user can save all database updates in onStop()
b.No, a user can save in onSavedInstance()
c.No, a user can save in a Bundle()
d.No, In some situations, a user can't reach onStop()
13.Which method gets called when the database needs to be created. (CLO-3) (Pg no.487)
a.oncreate()
b.onstart()
c.onupgrade()
d.onstop()
14. If the version number in the SQLite helper is larger than the version number held on the database,
which method is called. (CLO-3) (pg no.504)
a.onupgrade()
b.oncreate()
c.update()
d.onDowngrade()
15. Which of the following is correct about file access in the Android system?(CLO-3) (web)
a. Generally, files are handled as dedicated resources per each application.
b. Files created by an application can be directly accessed by any application.
c. The content of file created by application cannot be accessed by any otherapplication.
d. You can only access a file from within an Activity.
16.Which of the following is not a Content Provider provided natively by Android?(CLO-3)(pg no.698)
a. The contacts list
b. The telephone log
c.The bookmarks
d. The application list
17. A type of service provided by android that allows sharing and publishing of data to other
applications is (CLO-3) (pg no.699)
a.View System
b.Content Providers
c.Activity Manager
d.Notifications Manager
18. A type of service provided by android that controls application lifespan and activity pile is(CLO-3)
(pg no.699)
a.Activity Manager
b.View System
c.Notifications Manager
d.Content Providers
a.onCreate
b.onSelect
c.onClick
d.ContentResolver
21. Which method that returns a SharedPreference instance pointing to the file that
contains the values of preferences. (CLO-3) (pg no.699)
a.getSharedPreferences()
b.shared()
c.mode()
d.shared preferences()
22. Which method returns the name of the column by specifying the index of the column
(CLO-3) (pg no.482)
a. getColumnCount()
b. getColumnIndex(String columnName)
c. getColumnNames()
d. getColumnName(int columnIndex)
23. Which of the following can be used to bind data from an SQL database to a ListView in an
Android application. (CLO-3) (pg no.482)
a.simple cursor
b.simple cursor adapter
c.simple adapter
d.SQLlte Cursor
PART – B (4 Marks)
1. What is shared preferences? Explain methods for create, search, read, add, update and delete shared
preference? (CLO-3)
2. What is SQLite Database? Explain methods for creating, updating, and deleting and querying
database records. (CLO-3)
3. What is content provider? List useful built-in content providers with its purpose and explain any one
of them in details. (CLO-3)
4. Explain methods for inserting, updating, deleting and querying database records. (CLO-3)
6. Write a android applications java code which takes name, phone, email from edit text. When a buttons
is clicked all values entered in the edit text fields will be stored in shared preferences? Next time when
the app opens the stored value is retrieved and displayed in same edit text field with values previously
entered. (CLO-3)
7. Write a android applications java code to add contact of a person into SQLite database and list it in
ListView. The contact details should contain name and Phone number. (CLO-3)
8. Explain different ways to persist data in android. Explain each procedure with an example. (CLO-3)
PART A
1. Which permission you need to declare in your AndroidManifest.xml file for sending SMS. (CLO-4)
(pg no: 330)
A) <uses-permission android:name="android.permission.SEND_SMS"/>
B) <uses-permission android:name="android.SEND_SMS"/>
C) <uses-permission ="android.permission.SEND_SMS"/>
D) <uses-permission ="android.permission.SEND"/>
2. Which class is used to send SMS programmatically? (CLO-4) (pg no: 330)
A) SmsSender
B) SmsManager
C) SMS
D) Sender
3. What code you will write to send the SMS to another AVD? Suppose that the AVD no is 5556?
(CLO-4) (web)
A) SmsManagersms=new SmsManager();
sms.sendTextMessage("5556", null, "Hello Android", null, null);
B) SmsManagersms=new SmsManager();
sendSMS("5556", null, "Hello Android", null, null);
C) SmsManagersms=SmsManager.getDefault();
sms.sendTextMessage("5556", null, "Hello Android", null, null);
D) SmsManagersms=new SmsManager();
sendSMS("5556", null, "Hello Android", null);
6. What types of menus is/are supported by Android? (CLO-4) (pg no: 307)
A) Option menu and Context menu
B) Only Option menu
C) Only Context menu
D) None of the above.
9. Which permission you need to declare in your AndroidManifest.xml file for initiating a call using the
system in-call Activity? (CLO-4) (pg no: 335)
A) CALL_NUMBER uses-permission
B) DIAL_PHONE uses-permission
C) CALL_PHONE uses-permission
D) DIAL_NUMBER uses-permission
10. To initate a call using the Intent which code you will write? (CLO-4) (web)
11. For accessing the subscriber identity module (SIM) detail which class you will use? (CLO-4)
A) SimManager
B) TelephonyManager
C) MobileManager
D) All of the above.
12. For sending sms through Intent which code is correct? (CLO-4)
A) Intent intent = new Intent();
intent.putExtra("sms_body", "Welcome at CareerRide.com");
startActivity(intent);
B) Intent intent = new Intent();
startActivity(intent);
C) Intent intent = new Intent(Intent.ACTION_SENDTO, Uri.parse("sms:9923-----"));
intent.putExtra("sms_body", "Welcome at CareerRide.com");
startActivity(intent);
D) Intent intent = new Intent();
startActivity();
A) Binder
B) Intent
C) AIDL
D) Service
PART B
PART C
1. Discuss how the communications is taking place between a service, Intent and an activity.
(CLO-4)
2. Given, IT Company’s Project team with totally 10 members, describe the ways in which all of
them can initiate the interactions with each other, to discuss about their project work and deliver
the project in time. You can make use of Telephony services to make and receive phone calls.
Add the necessary functions to elaborate their work. (CLO-4)
3. Design a suitable Web Service for an Automobile industry using SOAP Services. (CLO-4)
4. Explain in detail about dynamic broadcast receivers with suitable examples. (CLO-4)
5. Describe the use of REST Web Service for the mobile based applications. (CLO-4)
6. Explain briefly about Multithreading. (CLO-4)
7. Explain about Async task with examples. (CLO-4)
8. Discuss various types of networks are available in android.(CLO-4)
UNIT V
PART A (MCQ)
3. The ________________ allows an app to tell Android when it is interested in receiving updated
location information.(CLO4) (pg no.12)
a. Location c. Location Manager
b. Criteria d. Location Provider
5. The _______________ class is what encapsulates the actual location data provided to an app
from a location provider. (CLO4) (pg no.12)
a. Location c. Location Manager
b. Criteria d. Location Provider
6. An app can use the ___________ class to query the Location Manager for location providers that
contain certain characteristics. (CLO4) (pg no.12)
a. Location c. Location Manager
b. Criteria d. Location Provider
7. The media file is streamed to the client but is only played and not stored by the client in : (CL04)
(web)
a. progressive download b. regular download
c. real time streaming d. virtual time streaming
8. Using Google map which permission you will specify in the AndroidManifest.xml? (CLO5) (pg
no.35)
a. USEMAP b. USE_GOOGLE_MAP
c. INTERNET d. None of the above.
9. To enable zoom control on google map, which method of MapView is used? Suppose that
instance of MapView is mapView. (CLO5) (pg no.36)
a. ZoomControls.Enabled=true. b.mapView.setBuiltInZoomControls(true);
c. mapView= ZoomControls(true); d. None of the above.
10. How will you add marker on map? ( CLO5) (pg no.35)
11. If you know the address of a location but want to know its latitude and longitude, then which
class is used? ( CLO5) (pg no.11)
a. Geocoder b. Location
c. MapViewLocation d. None of the above
12. _____________ are used to measure acceleration forces and rotational forces along with three
axes. (CLO5) )(pg no.65)
a. Motion Sensors b. Position Sensors
c.Environmental sensors d.Sensor API
13. ________________________ are used to measure the physical position of device.( CLO5)(pg
no.61)
a. Motion Sensors b.Position Sensors
c.Environmental sensors d. Sensor API
14. __________________ are used to measure the environmental changes such as temperature,
humidity etc. (CLO5) (pg no.61)
16. ___________________ Instance is created by the system and provides information about the
sensor. (CLO5) )(pg no.174)
PART B (4 MARKS)
14. Mention the guide lines for publishing the Android Apps. (CLO5)
15. List out the policies and process of uploading Apps to Google play(CLO5)
1. Explain how Google maps V2 services are done using Google API. (CLO5)