You are on page 1of 24

SRM INSTITUTE OF SCIENCE AND TECHNOLOGY

FACULTY OF ENGINEERING AND TECHNOLOGY

RAMAPURAM CAMPUS, CHENNAI-600 089

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

18CSO102T-MOBILE APPLICATION DEVELOPMENT

DEPT/YEAR/SEM: ECE/II/IVQuestion Bank


UNIT- I
PART-A (MCQ)

1. Official IDE for android development is called (CLO-1) (pg no.15)

a.Eclipse b.Net beans


c.Android studio d.Java

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

5. One of recent android version is(CLO-1) (pg no.29)


a.Kitkat b.Marshmallow
c.Lolipop d. Android 10.1 

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

8. What is Manifest.xml in android?(CLO-1) (pg no.107)


a. It has information about layout in an application
b. It has the information about activities in an application
c. It has all the information about an application
d. None of the above

9. How to kill an activity in Android? (CLO-1) (pg no.77)


a. finish() b.finishActivity(intrequestCode)
c. A& B d. kill()

10. Required folder when Android project is created. (CLO-1) (pg no.149)
a. build b. build/
c. bin d. bin/

11. Adb stands for (CLO-1) (pg no.689)


a. Android Drive Bridge. b. Android Debug Bridge.
c. Android Destroy Bridge. d. Android Delete Bridge.

12. Language which is supported by Android for application development?(CLO-1)(pg no.695)


a. PHP b.VB.NET
c. Java d. C++

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

23. Every application must have an? (CLO-1) (pg no.65)


a. The source code b. The list of strings used in the app
c. manifest.xml filed. Java Code

24. Android is based on which kernel. (CLO-1) (pg no.20)


a.Linux b.Windows
c.Mac d.Redhat

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

26. Required Java environment for development is called(CLO-1) (pg no.23)


a.JDK b.DEX
c.DVM d.API

27. In android studio, tab in which error is shown is called(CLO-1) (web)


a.logcat b.memory
c.ADB logs d.CPU
 
28. By default in android studio during app development, file that holds information about app's
fundamental features and components is(CLO-1) (pg no.55)
a.AndroidManifest.xml b.res/values
c.Build.gradle d.res/layout

29. Android component that manages appearance and format on screen is called(CLO-1) (web)
a.fragment b.intent
c.view d.layout

30. In android UI, <code>onClick</code> is actually a(CLO-1) (web)


a.class b.button
c.property d.function
31. How to write java comments (CLO-1) (pg no.19)

a.//It is a comment b.\It is a comment


c./It is a comment d.\\It is a comment

PART-B (4 Marks)

1. Define Mobile Application Development.(CLO-1)


2. Name the languages supported for Android development.(CLO-1)
3. What role does Dalvik play in Android development?(CLO-1)
4. Which components are necessary for a New Android project?(CLO-1)
5. What is a smart phone? (CLO-1)
6. Define Android manifest file. (CLO-1)
7. List out the trends in MAD? (CLO-1)
8. Summarize the steps followed for developing android application? (CLO-1)
9. Classify the various files of android application? (CLO-1)
10. Distinguish the features of between Android run time & Android debug
bridge?(CLO-1)
11. Compare the design for Linear,Relative and Constraint Layouts?(CLO-1)
12. What is ART? (CLO-1)
13. Do all mobile phones support the latest Android operating system?
14. Define ADB. (CLO-1)
15. What is IDE? (CLO-1)
16. Write the sample source code for Android Manifest File?(CLO-1)
17. How to setup the Android Emulator?(CLO-1)
18. Demonstrate the working principle of Android run time?(CLO-1)
19. What are the advantages of mobile devices in business applications?
20. What are the essential tasks involved in publishing a Mobile Application?
21. Analyze the steps for creating Android virtual device and explain the
procedure? (CLO-1)
22. List out the usage of Gradle build system in Android application?(CLO-1)
23. What is the importance of having an emulator within the Android environment?(CLO-1)
24. List and explain files associated with build.gradle. (CLO-1)
25. List some characteristics of mobile applications.(CLO-1)
26. What are mobile application development tools?(CLO-1)
27. What is the importance of having an emulator within the Android environment? (CLO-1)
28. Which scenario can test only on real devices but not on an emulator?
PART-C (12 Marks)

1. How do you troubleshoot the android application which is crashing frequently?(CLO-1)


2. Discuss in detail about the Android platform features and versions (CLO-1)
3. List out the Android versions and comparison added features in each versions.(CLO-1)
4. Explain in detail the role of Emulators in Mobile Applications. (CLO-1)
5. Define Android and explain in detail about android architecture. (CLO-1)
6. Explain in detail about user interface and its types. (CLO-1)
7. Explain how to interact with UI with suitable examples. (CLO-1)
8. Design an android application for displaying the text message as “Hello World” (CLO-1)
9. Develop an android application for simple calculator. (CLO-1)
10. Explain Mobile Application Development Life Cycle Phases. (CLO-1)
11. Explain in detail about the Business Drivers in Mobile Application Development? (CLO-1)

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

3. Layout are usually defined using (CLO-2) (pg no.19)

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)

a. Intent intent=new Intent (this, SecondActivity.class);


intent.putExtra("name", “CareerRide.com”);
startActivity(intent);
b. Intent intent=new Intent (this, SecondActivity.class);
intent.putExtra( “CareerRide.com”);
startActivity(intent);
c. Intent intent=new Intent ();
intent.putExtra("name", “CareerRide.com”);
startActivity(intent);
d.None of the above.

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()

18.Which method is called,when you click on a reset button?(CLO-2) (pg no.152)


a. onclickStart()
b. onclickStop()
c. onclickCreate()
d. onclickReset()

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.

27. Button option can be choose from palette category(CLO-2) (web)

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)

a. Intent intent = Intent(action);


b. Intent intent = new Intent(action)
c. Intent intent = new Intent(action);
d. Intent = new Intent(action);

PART- B (4 marks)

1. What is an Activity? (CLO-2)


2. Write short note on fragments. (CLO-2)
3. Write a code to start a service in Activity. (CLO-2)
4. What is Intent? Can it be used to provide data to a ContentProvider ? (CLO-2)
5. Difference between service and IntentService. (CLO-2)
6. What are the different types of Layout ? (CLO-2)
7. Describe three common use cases for using an Intent. (CLO-2)
8. List out the difference between picker view and adapter view? (CLO-2)
10. What is UI design component? (CLO-2)
11. Discuss about linking activites? (CLO-2)
12. Define menu and list out the types? (CLO-2)
13. Write short notes on themes and widgets. (CLO-2)
14. What is fragment and list out the activities also? (CLO-2)
15. Explain about recycler view with suitable example? (CLO-2)
16. List and explain the types of Layouts. (CLO-2)
17. Explain XML attributes using TextView as example. (CLO-2)
18. Explain the steps to add response to view clicks. (CLO-2)
19. Explain the Passing of data between activities with intents. (CLO-2)
20. How to implement up navigation with parent activities? (CLO-2)
21. Explain the steps for sending the implicit intents. (CLO-2)
22. How do you manage tasks and activities? (CLO-2)
23. How ShareCompat.IntentBuilder is used to share the data? (CLO-2)
24. How to design a mobile app using user interface design principles? (CLO-2)
25. What are the components of user interface toolkit? (CLO-2)
26. Is it possible to use or add a fragment without using a user interface? (CLO-2)
27. How do you remove icons and widgets from the main screen of the Android device? (CLO-2)

PART-C (12 MARKS)

1. With neat diagram explain Activity life cycle. (CLO-2)


2. Explain in detail about Intent and Views. (CLO-2)
3. Explain in detail about Lollipop Material design. (CLO-2)
4. Explain in detail about Fragments. (CLO-2)
5.Write an example code for android explicit that calls one activity from another and vice versa.(CLO-2)
6. Write a simple example code for android fragment. (CLO-2)
7. Explain in detail about fragment – activites life cycle with neat sketch? (CLO-2)
8. List out the different types of layouts with neat diagram? (CLO-2)
9. Describe about widgets in lollipop with example? (CLO-2)
10.Discuss various user interfaces in mobile application. (CLO-2)
11.What is a Menu? List out the types of Menus. Explain implementation of app bar & options menu.
(CLO-2)
UNIT - III
PART- A(MCQ)

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()

7. What built in databases is Android shipped? (CLO-3) (pg no.514)


a.SQLite
b.Apache
c.MYSQL
d.Oracle

8. When content Provider would be activated? (CLO-3) (pg no.698)


a.Using Intent
b.Using SQLite
c.UsingContentResolver
d.Using Filters

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

19. Android component that works like database (CLO-3) (web)


a.Services
b.Activities
c.Broadcast Receivers
d.Content Providers

20. Requests from Content Provider class is handled by method(CLO-3) (web)

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 the use of Shared Preferences class? (CLO-3)


2. What do you mean by Android internal storage? (CLO-3)
3. What is the permission you need to declare when writing files to external storage? (CLO-3)
4. Give the class names which are use to write and save data in to text file. (CLO-3)
5. Write a location in an application where SQLite database saved. (CLO-3)
6. What is content provider? (CLO-3)
7. Write down the query string which will returns a list of all the internal images on the device and
returns of all calls registered in the call log.. (CLO-3)
8. What do you mean by projection in the context of content provider? (CLO-3)
9. Difference between user content provider and build in content provider? (CLO-3)
10. Write an example program by using content provider concept. (CLO-3)
11. Explain the following database operation queries with example: (CLO-3)
a) insert() b) delete() c) update() d) count()
12. Define SQLite. Explain example table for SQLite store data in tables. (CLO-3)
13. Define Content provider. Explain how Content Resolver interacts with content provider with a
neat diagram. (CLO-3)
14. What are the benefits of Content providers? (CLO-3)
15. With a neat diagram, explain the App architecture with a Content provider. (CLO-3)
14. Define Contract. List and explain components of Contract for a Content provider. (CLO-3)
15. Explain how to interact with UI with suitable example? (CLO-3)
16. Explain in detail about Persisting data using SQLite ? (CLO-3)
17. What is Data Persistence? (CLO-3)
18. What are the rules of UI? (CLO-3)
19. Explain Data Persistence using core data.(CLO-3)
20. Explain in detail about user interface and its types? (CLO-3)
PART- C (12 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)

5. Write a snipped to write and read file in external storage. (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)

9. Explain Data Persistence using SQLite. (CLO-3)

10. Explain briefly about file handling session. (CLO-3)


UNIT 4

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);

4. How to get feedback on message sent? (CLO-4) (pg no: 331)

A) Use two Intent objects in the sendTextMessage() method.


B) Use two PendingIntent objects in the sendTextMessage() method.
C) Use two PendingIntent objects in the startActivity() method.
D) None of the above.

5. What is the purpose of the ImageSwitcher? (CLO-4) (pg no: 332)


A) The ImageSwitcher enables images to be displayed with animation.
B) The ImageSwitcher displayed images without animation.
C) An image switcher allows you to add some transitions on the images.
D) Option A and C are correct.

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.

7. Which is Parent class of Activity? (CLO-4) (pg no: 332)


A) ActivityGroup
B) Context
C) BaseActivity
D) ContextThemeWrapper

8. Which is/are related to fragment class? (CLO-4) (pg no: 333)


A) dialogFragment
B) listFragment
C) preferenceFragment
D) All 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)

A) Intent intent = new Intent (Intent.ACTION_CALL)”);


startActivity(intent);
B) Intent intent = new Intent (Intent.ACTION_CALL, Uri.parse(“tel:9923----”));
startActivity(intent);
C) Intent intent = new Intent (Uri.parse(“tel:9923----”));
startActivity(intent);
D) All of the above.

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();

13. What are the functionalities of Binder services in android? (CLO-4)

A) Binder is responsible to manage the thread while using aidl in android


B) Binder is responsible for marshalling and un-marshalling of the data
C) A & B
D)Binder is a kind of interface

14. What does httpclient.execute() returns in android?(CLO-4)

A)- Http entity


B) Http response
C) Http result
D) Http Cookie

15. To perform inter-communication between activities or services ______ is required: (CLO-4)

A) Binder
B) Intent
C) AIDL
D) Service

PART B

1. How do you bind the services in Android Applications? (CLO-4)


2. State the necessity of handlers using an example. (CLO-4)
3. Compare local service with remote service of the Android Components. (CLO-4)
4. List out the uses of Notifications services. (CLO-4)
5. Give the syntax of HttpUrlConnection and explain the parameters in it . (CLO-4)

6. Define SOAP based web services. (CLO-4)


7. Describe about android network programming. (CLO-4)
8. Discuss about broadcast view. (CLO-4)
9. How do you troubleshoot the android application which is crashing
frequently?(CLO-4)
10. Define REST based web services.(CLO-4)
11. What is broadcast receivers?How is it implemented? (CLO-4)

12. What is Services?How is it implemented? (CLO-4)


13. What is difference between service and Thread? (CLO-4)
14. What are the notifications available in network.(CLO-4)
15. How to update UI from a service in android? (CLO-4)
16. Compare local broadcast and dynamic broadcast. (CLO-4)
17. Differenciate between REST and SOAP based web services. (CLO-4)
18. Define pending intent. (CL0-4)
19. What is the use of Telephony Manager? (CL0-4)

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)

1. Android makes use Of _______________ to provide location information to an app. (CLO4)


(pg no.3)
a. Location Providers c. Networks Providers
b. Mobile Platforms d. Mobile App
2. _________________is a key component to apps like Google Maps and Google Navigator.
(CLO4) (pg no.10)

a.Location data c. Location Providers


b.Network Providers d. Mobile App

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

4. ____________________ is an abstraction for the different sources of location information in


Android. (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)

a. Directly use draw method.


b. You cannot add marker on the map.
c. Implement an Overlay class and override the draw() method.
d. None of the above.

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)

a.Motion Sensors b.Position Sensors

c.Environmental sensors d. Sensor API

15. ________________________________ class provides methods to get information of the sensor


such as sensor name, sensor type, sensor resolution, sensor type etc.( CLO5) )(pg no.174)

a.SensorManager class b.Sensor class

c.SensorEvent class d.SensorEventListener interface

16. ___________________ Instance is created by the system and provides information about the
sensor. (CLO5) )(pg no.174)

a.SensorManager class b. Sensor class

c.SensorEvent class d.SensorEventListener interface


17. _____________________ provides two call back methods to get information when sensor values
(x,y and z) change or sensor accuracy changes. (CLO5) )(pg no.174)

a.SensorManager class b.Sensor class

c.SensorEvent class d.SensorEventListener interface

PART B (4 MARKS)

1. Mention the methods to determine Location? (CLO4)


2. Explain GPS Provider and its working.( CLO4)
3. What are the various GPS Improvements available?(CLO4)
4. What are the Limitations GPS?(CLO4)
5. Mention the Methods Used for Controlling GPS? (CLO4)
6. Explain how Network Provider Works? (CLO4)
7. Explain the Limitation of Network Provider.CLO4)
8. Explain how Location Providers works using Cell IDs: (CLO4)
9. Mention the Classes of android.location package.(CLO5)

10. Mention the interface of android.location package.(CLO5)

11. List out the Location Criteria Attributes( CLO5)

12. Explain how Camera API works. (CLO4)


13. Explain Position Sensor. (CLO4)

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)

PART C (12 MARKS)

1. Explain how Google maps V2 services are done using Google API. (CLO5)

2. Mention the methods to determine Location (CLO4)


3. Explain the types of Animations and Graphics available (CLO4)
4. Explain how motor sensor functions.(CLO4)
5. Discuss the Camera API working.(CLO5)
6. Mention the guide lines for Publishing Android Apps.(CLO5)
7. List policies and process of uploading Apps to Google play.(CLO5)
8. List the Location Criteria Attributes (CLO5)
9. Explain the following: (CLO5)
i. Motion sensors
ii. Position sensors
iii. Environmental sensors
10. Discuss in detail: (CLO5)
a. View Animations
b. Property Animations
c. Drawable Animations

You might also like