Anda di halaman 1dari 5

3/13/2014

android interview questions and answers for fresher


Like 195 people like this. Sign Up to see w hat your friends like.

First time user? Register | Sign In

Home

Submit/Ask Question

How to Use

Show my Statistics

Contact Us

Select chapter
Android All (31.Papers) basics (5.Papers) activities (5.Papers) services (2.Papers) threads (2.Papers) receivers (1.Papers) Show all chapters

Previous page

0 Says Important

0 People Like it

RateToughness

Sponsored Links

Fresher interview question 61 How to start a broadcast receiver on phone boot completed? Toughness

A. <receiver > <intent-filter > <action android:name="android.intent.action.BOOT_COMPLETED"/> </intent-filter> </receiver> B. <receiver > <intent-filter > <action android:name="intent.action.BOOT_COMPLETED"/> </intent-filter> </receiver> C. <receiver > <action android:name="intent.action.BOOT_COMPLETED"/> </receiver> D. <broadcastreceiver > <intent-filter > <action android:name="intent.action.BOOT_COMPLETED"/> </intent-filter> </broadcastreceiver>

Show Answer and Explanation

0 Says Important

0 People Like it

RateToughness

Fresher interview question 62 What is the difference between sendbroadcast(), sendorderedbroadcast(), sendstickybroadcast() ? Toughness

Your Career at Genpact


ifbi.com /finance -accounting-program Join IFBI finance &accounting course & ge t place d at Ge npact. Enroll-Now

A. sendbroadcast() - normal broadcast sendorderedbroadcast() - we can set priority sendstickybroadcast() - intent passed with this will be stick for future users B. sendbroadcast() - normal broadcast, but we can set priority as well. sendorderedbroadcast() - we can set priority, and set result. can't block broadcasts. sendstickybroadcast() - intent passed with this will be stick for future users C. sendbroadcast() - normal broadcast, but we can set priority as well. sendorderedbroadcast() - we can set priority, and set result. can block broadcasts as well. sendstickybroadcast() - intent passed with this will be stick for future users D. sendbroadcast() - normal broadcast, but we can set priority as well. sendorderedbroadcast() - we can set priority, and set result. can block broadcasts. sendstickybroadcast() - intent passed with this will be available for only one time.

Show Answer and Explanation

0 Says Important

0 People Like it

RateToughness

http://skillgun.com/android/interview-questions-and-answers-for-fresher#

1/5

3/13/2014
0 Says Important

android interview questions and answers for fresher


0 People Like it RateToughness

Fresher interview question 63 What is the difference between service and a thread? Toughness

A. Service - is a component of android, which runs in the background with out any UI. Service will have default one thread to run in the back ground. Thread - is similar to service, it also runs in the background B. Service - is a component of android, which runs in the background with out any UI. By default service will run in Main thread only. Thread - is not android component, but still one can use thread to do some background task. Using thread in place of service is discouraged. C. Option 2 is right, but one can use Thread in place of Service, no problem will come. D. Option 1 is right, but it may have UI also some times.

Show Answer and Explanation

0 Says Important

0 People Like it

RateToughness

Fresher interview question 64 start a service from activity and close activity, what will happen to that service, will it be alive or dead? Toughness

A. service will also be killed B. service will be alive for some time, and will be killed by android garbage collector. C. service will run for ever, no body can stop it now, and it leaks memory. D. service will be keep running in the background, but it can stop itself when the work given to it is done. Or others also can kill that service using stopService(), or android also can kill the service forcefully in case of low memory scenarios.

Show Answer and Explanation

0 Says Important

0 People Like it

RateToughness

Fresher interview question 65 How to create a service with multiple threads in it? Toughness

A. Create a service with creating thread in onStartCommand B. Use Intent Service C. Create a service with one thread in OnCreate(). D. Either use option1 or use Async task with service

Show Answer and Explanation

0 Says Important

0 People Like it

RateToughness

Fresher interview question 66 What is the difference between synchronized block(statement) and synchronized methods?

i. syn method - all statements in this are synchronized syn block - only this block of code is synchronized, not whole method. ii. syn method - if already any thread is holding lock on this function's object then other threads can't call another syn method on same object. syn block - If a function is having 1000 lines and I access shared data

http://skillgun.com/android/interview-questions-and-answers-for-fresher#

2/5

3/13/2014

android interview questions and answers for fresher


only in 5,6th line, then better to put syn block than making whole function as synchronized. iii. syn methods are always superior to use compared to blocks.
Toughness

A. i C. i, ii, & iii

B. i & ii D. none

Show Answer and Explanation

0 Says Important

0 People Like it

RateToughness

Fresher interview question 67 Android supports Toughness

A. MultiThreading C. single threading with multi tasking

B. Multi threading and multi tasking D. single task with multi threading

Show Answer and Explanation

0 Says Important

0 People Like it

RateToughness

Fresher interview question 68 What are the mandatory functions to be implemented in AsyncTask class?

i. only doInBackground(). ii. onPreExecute() iii. onPostExecute() iv. onProgressUpdate.


Toughness

A. i C. i, ii, & iii

B. i & ii D. i, ii, iii, & iv

Show Answer and Explanation

0 Says Important

0 People Like it

RateToughness

Fresher interview question 69 What are the Dialog classes available in android ?

i. Alert Dialog ii. Timepicker Dialog iii. Progress Dialog iv. DatePicker Dialog
Toughness

A. i C. i, ii, iii

B. i and ii D. All

Show Answer and Explanation

http://skillgun.com/android/interview-questions-and-answers-for-fresher#

3/5

3/13/2014
0 Says Important

android interview questions and answers for fresher


0 People Like it RateToughness

Fresher interview question 70 Which method need to be called to shut down an activity, itself? Toughness

A. onDestroy() C. finishActivity()

B. finish() D. None are correct.

Show Answer and Explanation

0 Says Important

0 People Like it

RateToughness

Fresher interview question 71 Which of the following are appropriate for saving the state of an android applications? Toughness

A. Activity.onFreeze() C. Activity.onPause()

B. Activity.onStop() D. Activity.onDestroy()

Show Answer and Explanation

1 Says Important

0 People Like it

RateToughness

Fresher interview question 72 Which component is not started by an intent? Toughness

A. Activity C. Services

B. Content Provider D. Broadcast Receiver

Show Answer and Explanation

0 Says Important

0 People Like it

RateToughness

Fresher interview question 73 What is the purpose of the ContentProvider class? Toughness

A. To play rich media content files. B. To share data between Android applications. C. To access the global information about an application environment. D. To maintain global application state.

Show Answer and Explanation

0 Says Important

0 People Like it

RateToughness

http://skillgun.com/android/interview-questions-and-answers-for-fresher#

Fresher interview question

4/5

3/13/2014

android interview questions and answers for fresher


Fresher interview question 74 What is adb ? Toughness

A. Android Debug Bridge - can be used to access android tools from command line interface. B. Android Direct Bridge - can be used to start emulator. C. Android Direct Bridge - provide acces to databases on the rooted device. D. None are correct.

Show Answer and Explanation

0 Says Important

0 People Like it

RateToughness

Fresher interview question 75 Which of the following are the layouts available in android ?

i. Frame Layout ii. Table Layout iii. Linear Layout iv. Relative Layout
Toughness

A. i C. i, ii, iii

B. i, ii D. All

Show Answer and Explanation

Job Interview

Interview Skill

Android SDK

Android Emulator

2014 Palle Technologies Terms of Service PrivacyPolicy About Us Report Bug

Bookmark to -

http://skillgun.com/android/interview-questions-and-answers-for-fresher#

5/5

Anda mungkin juga menyukai