Академический Документы
Профессиональный Документы
Культура Документы
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
Home > Technical > Android > Paper- 10 6 ? ? 1.Show Questions only 7 8 9 10 11 12
1.Important
Submit a Question
Submit Paper
Sponsored Links
RateToughness
Fresher interview question 1 Explain the life cycle of an activity, in android? Toughness
A. Below cycle is always true. onCreate-> onStart() -> onResume() -> onPause() -> onStop() -> onDestroy() B. Below cycle executes always. onCreate-> onStart() -> onRestoreInstanceState() -> onResume() -> onSaveInstanceState() -> onPause() -> onStop() -> onDestroy() C. Below cycle executes always. onCreate-> onStart() -> onResume() -> onStop() -> onPause -> onDestroy() D. Below cycle executes always. onCreate-> onStart() -> onRestoreInstanceState() -> onResume() -> onPause() -> onSaveInstanceState() -> onStop() -> onDestroy()
Share it on
RateToughness
A. It gives permission to use your phone screen B. it calls super class constructor C. it does nothing , simply a return statement will be there in super class D. it will create graphical window for sub class.
Share it on
RateToughness
Fresher interview question 3 Is it mandatory to implement oncreate() & onstart() of activity life cycle ? Will it run if those life cycle methods
http://skillgun.com/android/interview-questions-and-answers/paper/13
are removed?
1/7
3/13/2014
are removed?
A. it gives compile time error C. nothing will happen it will run perfectly D. your phone will hang
Share it on
RateToughness
Share it on
RateToughness
Fresher interview question 5 How to start an activity to get response? Or How to start an activity to get result? Toughness
A. startActivityOnResult() C. startActivity()
B. startActivityForResult() D. setResult()
Share it on
RateToughness
Fresher interview question 6 Activity life cycle: When LCD goes off, what is the life cycle function gets called in activity?
A. i C. i & ii
http://skillgun.com/android/interview-questions-and-answers/paper/13
2/7
3/13/2014
RateToughness
Fresher interview question 7 Activity life cycle: When a new activity comes on top of your activity completely, then what is the life cycle
A. it calls onPause() C. it calls onPause() -> then -> onStop() -> onDestroy() D. it calls onPause() -> then -> onSaveInstanceState()
Share it on
RateToughness
8 Activity life cycle: When a dialog is displayed on top of your activity, is your activity in foreground state or visible
state?
Toughness
A. it calls onPause() B. it calls onPause() -> then -> onStop() -> onDestroy() C. it calls onPause() -> then -> onStop() D. it calls onResume()
Share it on
RateToughness
9 start an activity with startactivityforresult(), and the child activity gets crashed. Now what is the result code
A. RESULT_OK C. RESULT_CRASH
B. RESULT_CANCELLED D. RESULT_FINISH
Share it on
RateToughness
10 What are the data storage options in android? Note: persistent data.
i. files, arrays, database ii. files, databses iii. using network servers
Toughness
A. i C. i & iii
B. ii D. ii & iii
http://skillgun.com/android/interview-questions-and-answers/paper/13
3/7
3/13/2014
Share it on
RateToughness
Experienced interview question 11 Android ANR(Application Not Responding) : What is the UI response time limit in android. (I.E with in how many
A. 5 sec C. 1 sec
B. 10 sec D. 2 sec
Share it on
RateToughness
12 What is the intent-filter of main activity that launches your application's main screen? Toughness
A. <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> B. <intent-filter> <action android:name="Intent.MAIN" /> <category android:name="Category.LAUNCHER" /> </intent-filter> C. It will not have any intent-filter by default. D. <intent-filter> <action android:name="android.intent.action.LAUNCHER" /> <category android:name="android.intent.category.MAIN" /> </intent-filter>
Share it on
RateToughness
13 How to create UI (user interface) without using xml file? Show with one example on how to create a button
A. @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } B. @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Button b; setContentView(b); } C. @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);
http://skillgun.com/android/interview-questions-and-answers/paper/13
4/7
3/13/2014
Share it on
RateToughness
Fresher interview question 14 Activity life cycle: What is the mandatory activity life cycle function that will get called in case of configuration
changes?
Toughness
A. onStop() C. onSaveInstanceState()
Share it on
RateToughness
Experienced interview question 15 Activity life cycle onStop: Can I save all my databse table updates in onStop() of activity? If not explain why and
Share it on
RateToughness
A. Persistent data is temporary data, eg: creating an array in the program. B. transient data is temporary data, that we store in database tables C. Persistent data is permanent data that we store, eg in database tables, and transient data is logical data that we use in programming logic. D. reverse of option 3
http://skillgun.com/android/interview-questions-and-answers/paper/13
5/7
3/13/2014
RateToughness
17 What will happen if super.oncreate() from oncreate() function of activity is commented? Toughness
C. Nothing will happen, it will still execute with empty windos D. nothing will happen, it will execute with proper output
Share it on
RateToughness
Experienced interview question 18 What is the difference between this context and getapplicationcontext ? which one to use when? Toughness
A. no difference, both are same B. this points to entire process, appcontext points to current class. C. this points to current context, application context points to entire process. if your context is of entire life time of process then use app context, else this. D. both option 2 and 3 are correct
Share it on
RateToughness
19 Where to register broadcast receivers that updates UI? If I have a broadcast receiver that updates my UI
frequently, then where should I register that broadcast receiver in my activity life cycle functions?
Toughness
A. oncreate() C. onresume()
B. onstart() D. onsaveinstancestate()
Share it on
RateToughness
Experienced interview question 20 Save image in onsaveinstatncestate: A heavy image downloaded from internet in onCreate() of an activity. Is it
http://skillgun.com/android/interview-questions-and-answers/paper/13
6/7
3/13/2014
A. yes
C. no, we have to use some static reference to it. D. no, we don't need to save it at all.
Share it on
Android Database
Interview Skill
Job Interview
Bookmark to -
http://skillgun.com/android/interview-questions-and-answers/paper/13
7/7