InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What are the type of flags to run an application in android? |
|
Answer» FLAG_ACTIVITY_NEW_TASK FLAG_ACTIVITY_CLEAR_TOP. |
|
| 2. |
What is drawable folder in android? |
|
Answer» A compiled visual resource that can used as a backgrounds,banners, icons,splash screen etc. |
|
| 3. |
How do you find any view element into your program? |
|
Answer» Using with findViewById we can find view element. |
|
| 4. |
What are application Widgets in android? |
|
Answer» App Widgets are miniature application views that can embedded in other applications (such as the Home screen) and receive periodic updates. These views has referred to as Widgets in the user interface, and you can publish one with an App Widget provider. |
|
| 5. |
What folders are impotent in android project? |
|
Answer» AndroidManifest.xml build.xml bin/ src/ res/ assets/ |
|
| 6. |
How to update UI from a service in android? |
|
Answer» Use a dynamic broadcast receiver in the activity, and send a broadcast from the service. Once the dynamic receiver is triggered update UI from that receiver. |
|
| 7. |
Which kernal is used in android? |
|
Answer» Android is customized Linux 3.6 kernel. |
|
| 8. |
What is sleep mode in android? |
|
Answer» Sleep mode mean CPU will be sleeping and it doesn't accept any commands from android device except Radio interface layer and alarm. |
|
| 9. |
What is fragment in android? |
|
Answer» Fragment is a piece of activity, if you want to do turn your application 360 degrees, you can do this by fragment. |
|
| 10. |
How do you pass the data to sub-activities android? |
|
Answer» Using with Bundle, we can pass the data to sub activities. Bundle bun = new Bundle(); bun.putString("EMAIL", "contacttutorials.com");
|
|
| 11. |
How to launch an activity in android? |
|
Answer» Using with intent, we can launch an activity. Intent intent = new Intent(this, MyTestActivity.class); startActivity(intent); |
|
| 12. |
Define the application resource file in android? |
|
Answer» JSON,XML bitmap.etc are application resources.You can injected these files to build process and can load them from the code. |
|
| 13. |
How to change application name after its deployment? |
|
Answer» It's not truly recommended to change application name after it's deployment, if we change, it will impact on all other internal components. |
|
| 14. |
How does android track the application on process? |
|
Answer» Android provides a Unique ID to all applications is called as Linux ID,this ID is used to track each application. |
|
| 15. |
Why can't you run java byte code on Android? |
|
Answer» Android uses DVM (Dalvik Virtual Machine ) rather using JVM(Java Virtual Machine), if we want, we can get access to .jar file as a library. |
|
| 16. |
How is the use of web view in Android? |
|
Answer» WebView is UI component that can display either remote web-pages or static HTML |
|
| 17. |
How to Translate in Android? |
|
Answer» Android uses Google translator to translate data from one language into another language and placed as a string while development |
|
| 18. |
What is a Sticky Intent in android? |
|
Answer» Sticky Intent is also a type of intent which allows the communication between a function and a service for example,sendStickyBroadcast() is perform the operations after completion of intent also. |
|
| 19. |
What are the different storages available in android? |
|
Answer» Shared Preferences,Internal Storage,External Storage,SQLite Databases and Network Connection |
|
| 20. |
What is the order of dialog-box in android? |
|
Answer» Positive, Neutral, Negative. |
|
| 21. |
What are the exceptions available in android? |
|
Answer» InflateException,Surface.OutOfResourceException,SurfaceHolder.BadSurfaceTypeException,and WindowManager.BadTokenException |
|
| 22. |
How many dialog boxes do support in android? |
|
Answer» AlertDialog, ProgressDialog,DatePickerDialog, and TimePickerDialog |
|
| 23. |
What is nine-patch images tool in android? |
|
Answer» We can change bitmap images in nine sections as four corners,four edges and an axis |
|
| 24. |
Where layouts are placed in android? |
|
Answer» In The Layout folder, layouts are placed as XML files |
|
| 25. |
What does the intent filter do in android? |
|
Answer» Intent filters are filter out the intents. |
|
| 26. |
What are the key components in android architecture? |
Answer»
|
|
| 27. |
What is shared preferences in android? |
|
Answer» Shared preferences are the simplest mechanism to store the data in XML documents. |
|
| 28. |
What is ADB in android? |
|
Answer» It is acts as bridge between emulator and IDE, it executes remote shell commands to run applications on an emulator |
|
| 29. |
What is container in android? |
|
Answer» The container holds objects,widgets,labels,fields,icons,buttons.etc. |
|
| 30. |
What are the notifications available in android? |
|
Answer» Toast Notification − It will show a pop up message on the surface of the window Status Bar Notification − It will show notifications on status bar Dialogue Notification − It is an activity related notification. |
|
| 31. |
What is a content provider in android? |
|
Answer» A content provider component supplies data from one application to others on request. Such requests are handled by the methods of the ContentResolver class. A content provider can use different ways to store its data and the data can be stored in a database, in files, or even over a network. |
|
| 32. |
What is viewGroup in android? |
|
Answer» View group is a collection of views and other child views, it is an invisible part and the base class for layouts. |
|
| 33. |
What are the tools are placed in An Android SDK? |
|
Answer» Android SDK collaborated with Android Emulator,DDMS(Dalvik Debug Monitoring Services),AAPT(Android Asset Packaging tool) and ADB(Android debug bridge) |
|
| 34. |
What do ADT stands for? |
|
Answer» ADT stands for Android development tool,This is useful to develop the applications and test the applications. |
|
| 35. |
What language does android support to develop an application? |
|
Answer» Android applications has written using the java(Android SDK) and C/C++(Android NDK). |
|
| 36. |
What is An android manifest file? |
|
Answer» Every application must have an AndroidManifest.xml file (with precisely that name) in its root directory. The manifest file presents essential information about your app to the Android system, information the system must have before it can run any of the app's code. |
|
| 37. |
What is the APK format? |
|
Answer» The Android packaging key is compressed with classes,UI's, supportive assets and manifest.All files are compressed to a single file is called APK. |
|
| 38. |
Describe Android application Architecture? |
|
Answer» Android application architecture has the following components.They are as follows − Services − It will perform background functionalities Intent − It will perform the inter connection between activities and the data passing mechanism Resource Externalization − strings and graphics Notification − light,sound,icon,notification,dialog box,and toast Content Providers − It will share the data between applications |
|