Android Interview Objective type Question and Answers
1.Once installed on a device, each Android application lives in_______?
A. device memory
B. external memory
C. security sandbox
D. None of the above
Ans:C
2.Parent class of Activity?
A. Object
B. Context
C. ActivityGroup
D. ContextThemeWrapper
Ans: D
3.What are the Direct subclasses of Activity?
A. AccountAuthenticatorActivity
B. ActivityGroup
C. ExpandableListActivity
D. FragmentActivity
E. ListActivity
F. all the aove
Ans: F
4.What are the indirect Direct subclasses of Activity?
A. LauncherActivity
B. PreferenceActivity
C. TabActivity
D. All the above
Ans: D
5.Parent class of Service?
A. Object
B. Context
C. ContextWrapper
D. ContextThemeWrapper
Ans: C
6.What are the indirect Direct subclasses of Services?
A. RecognitionService
B. RemoteViewsService
C. SpellCheckerService
D. InputMethodService
Ans: D
7.Which component is not activated by an Intent?
A. Activity
B. Services
C. ContentProvider
D. BroadcastReceiver
Ans: C
8.When contentProvider would be activated?
A. Using Intent
B. Using SQLite
C. Using ContentResolver
D. None of the above
Ans: C
9.Which of the important device characteristics that you should consider as you design and develop your application?
A. Screen size and density
B. Input configurations
C. Device features
D. Platform Version
E. All of the above
Ans: E
10.Which are the screen sizes in Android?
A. small
B. normal
C. large
D. extra large
E. All of the above
Ans: E
11.Which are the screen densities in Android?
A. low density
B. medium density
C. high density
D. extra high density
E. All of the above
Ans: E
12.You can shut down an activity by calling its _______ method
A. onDestory()
B. finishActivity()
C. finish()
D. None of the above
Ans: C
13.What is the difference between Activity context and Application Context?
A. The Activity instance is tied to the lifecycle of an Activity.
while the application instance is tied to the lifecycle of the application,
B. The Activity instance is tied to the lifecycle of the application,
while the application instance is tied to the lifecycle of an Activity.
C. The Activity instance is tied to the lifecycle of the Activity,
while the application instance is tied to the lifecycle of an application.
D. None of the above
Ans: A
14.Which one is NOT related to fragment class?
A. DialogFragment
B. ListFragment
C. PreferenceFragment
D. CursorFragment
Ansa: D
15.Definition of Loader?
A. loaders make it easy to asynchronously load data in an activity or fragment.
B. loaders make it easy to synchronously load data in an activity or fragment.
C. loaders does not make it easy to asynchronously load data in an activity or fragment.
D. None of the above.
Ans: A
16.Characteristics of the Loaders?
A. They are available to every Activity and Fragment.
B. They provide asynchronous loading of data.
C. They monitor the source of their data and deliver new results when the content changes.
D. They automatically reconnect to the last loader's cursor when being recreated after a configuration change. Thus, they don't need to re-query their data.
E. All of the above.
Ans: E
17.How many ways to start services?
A. Started
B. Bound
C. a & b
D. None of the above.
Ans: C
18.If your service is private to your own application and runs in the same process as the client (which is common), you should create your interface by extending the ________class?
A. Messenger
B. Binder
C. AIDL
D. None of the above
Ans: B
19.If you need your interface to work across different processes, you can create an interface for the service with a ________?
A. Binder
B. Messenger
C. AIDL
D. b or c
Ans: D
20.AsyncTask allows you to perform asynchronous work on your user interface. It performs the blocking operations in a worker thread and then publishes the results on the UI thread.
A. true
B. false
Ans: A
21.Layouts in android?
A. Frame Layout
B. Linear Layout
C. Relative Layout
D. Table Layout
E. All of the above
Ans: E
22.Dialog classes in android?
A. AlertDialog
B. ProgressDialog
C. DatePickerDialog
D. TimePickerDialog
E. All of the above
Ans: E
23.If you want share the data accross the all applications ,you should go for?
A. Shared Preferences
B. Internal Storage
C. SQLite Databases
D. content provider
Ans: D
24.Difference between android api and google api?
A. The google API includes Google Maps and other Google-specific libraries.
The Android one only includes core android libraries.
B. The google API one only includes core android libraries.
The Android includes Google Maps and other Google-specific libraries.
C. None of the above.
Ans: A
25.Android is licensed under which open source licensing license?
A. Gnu's GPL
B. Apache/MIT
C. OSS
D. Sourceforge
Ans: B
26. Although most people's first thought when they think of Android is Google, Android is not actually owned by Google. Who owns the Android platform?
A. Oracle Technology
B. Dalvik
C. Open Handset Alliance
D. The above statement is and Android is owned by Google
Ans: C
27. As an Android programmer, what version of Android should you use as your minimum development target?
A. Versions 1.6 or 2.0
B. Versions 1.0 or 1.1
C. Versions 1.2 or 1.3
D. Versions 2.3 or 3.0
Ans: A
28.What was Google's main business motivation for supporting Android?
A. To level the playing field for mobile devices
B. To directly compete with the iPhone
C. To corner the mobile device application market for licensing purposes
D. To allow them to advertise more
Ans: D
29. What was the first phone released that ran the Android OS?
A. Google gPhone
B. T-Mobile G1
C. Motorola Droid
D. HTC Hero
Ans: B
30. From a phone manufacturer's point of view, what makes Android so great?
A. Aside from some specific drivers, it provides everything to make a phone work
B. It makes the hardware work better
C. It allows them to compete with Apple's iPhone
D. It allows users to create apps, generating revenue for the companies
Ans: A
31. What is a funny fact about the start of Android?
A. It was orginaly going to be called UFO
B. The first version of Android was released without an actual phone on the market
C. Androids main purpose was to unlock your car door when you left the keys inside of it.
D. Was going to be a closed source application to make more money for its company.
Ans: B
32.What year was the Open Handset Alliance announced?
A. 2005
B. 2006
C. 2007
D. 2008
Ans: C
33.A device with installed is needed to develop apps for Android.
A. True
B. False
Ans: B
34.Android tries hard to _________ low-level components, such as the software stack, with interfaces so that vendor-specific code can be managed easily.
A. confound
B. absract
C. modularize
D. compound
Ans: B
35.Google licensed some proprietary apps.
A. True
B. False
Ans: A
36.What part of the platform is open source?
A. low-level Linux modules
B. all of these answers #The entire stack is an open source platform
C. native libraries
D. application frame work
E. complete applications
Ans: B
37.When did Google purchase Android?
A. 2007
B. 2005
C. 2008
D. 2010
Ans: B
38.Android releases since 1.5 have been given nicknames derived how?
A. Adjective and strange animal
B. Food
C. Something that starts w/ 'A' -> Something that starts w/ 'B'...
D. American states
Ans: B
39.Which one is not a nickname of a version of Andriod?
A. cupcake
B. Gingerbread
C. Honeycomb
D. Muffin
Ans: D
40.Android doesn't make any assumptions about a device's screen size, resolution, or chipset.
A. True
B. False
Ans: A
41.Why are the so few users left with versions 1.0 and 1.1?
A. The first phones were released with version 1.5
B. 1.0 and 1.1 had security holes that forced carriers to recall phones using them
C. 1.0 and 1.1 are just number designations for the version Apple's iPhone is running
D. Everyone with 1.0 and 1.1 were upgraded to 1.5 over the air automatically
Ans: D
42.Which Android version had the greatest share of the market as of January 2011?
A. 1.1
B. 1.5
C. 2.3
D. 3.4
Ans: B
43.Which piece of code used in is not open source?
A. Keypad driver
B. WiFi? driver
C. Audio driver
D. Power management
Ans: B
44.Android is built upon the Java Micro Edition (J2ME) version of Java.
A. True
B. False
Ans: B
45.Which among these are NOT a part of Android's native libraries?
A. Webkit
B. Dalvik
C. OpenGL
D. SQLite
Ans: B
46.Android is based on Linux for the following reason.
A. Security
B. Portability
C. Networking
D. All of these
Ans: D
47.What operating system is used as the base of the Android stack?
A. Linux
B. Windows
C. Java
D. XML
Ans: A
48.What year was development on the Dalvik virtual machine started?
A. 2003
B. 2005
C. 2007
D. 2006
Ans: B
49.What is a key difference with the distribution of apps for Android based devices than other mobile device platform applications?
A. Applications are distributed by Apple App Store only
B. Applications are distributed by multiple vendors with different policies on applications.
C. Applications are distributed by multiple vendors with the exact same policies on applications.
D. Applications are distributed by the Android Market only.
Ans: B
50.When developing for the Android OS, Java byte code is compiled into what?
A. Java source code
B. Dalvik application code
C. Dalvik byte code
D. C source code
Ans: C
51.What does the .apk extension stand for?
A. Application Package
B. Application Program Kit
C. Android Proprietary Kit
D. Android Package
Ans: A
52.When you distribute your application commercially,you'll want to sign it with your own key.
A. True
B. False
Ans: A
53.How does Google check for malicious software in the Android Market?
A. Every new app is scanned by a virus scanner
B. Users report malicious software to Google
C. Google employees verify each new app
D. A seperate company monitors the Android Market for Google
Ans:B
54.Which of these are not one of the three main components of the APK?
A. Dalvik Executable
B. Resources
C. Native Libraries
D. Webkit
Ans: D
54.What is the name of the program that converts Java byte code into Dalvik byte code?
A. Android Interpretive Compiler (AIC)
B. Dalvik Converter
C. Dex compiler
D. Mobile Interpretive Compiler (MIC)
Ans: C
55.What was the main reason for replacing the Java VM with the Dalvik VM when the project began?
A. There was not enough memory capability
B. Java virtual machine was not free
C. Java VM was too complicated to configure
D. Java VM ran too slow
Ans: B
56.Android Applications must be signed.
A. After they are installed
B. Before they are installed
C. Never
D. Within two weeks of installation
Ans: B
57.Which of the following are not a component of an APK file?
A. Resources
B. All of these are components of the APK
C. Native Libraries
D. Dalvik executable
Ans: B
58.The AWT and Swing libraries have been removed from the Android library set.
A. True
B. False
Ans: A
59.The R.java file is where you edit the resources for your project.
A. True
B. False
Ans: B
60.What is contained within the manifest xml file?
A. The permissions the app requires
B. The list of strings used in the app
C. The source code
D. All other choices
Ans: A
61.What is contained within the Layout xml file?
A. Orientations and layouts that specify what the display looks like.
B. The permissions required by the app.
C. The strings used in the app.
D. The code which is compiled to run the app.
Ans: A
62.The emulated device for android.
A. Runs the same code base as the actual device, all the way down to the machine layer.
B. Is more of a simulator, and acts as a virtual machine for the Android device.
C. Runs the same code base as the actual device, however at a higher level.
D. An imaginary machine built on the hopes and dreams of baby elephants.
Ans: A
63.Your Java source code is what is directly run on the Android device.
A. True
B. False
Ans: B
64.The Emulator is identical to running a real phone EXCEPT when emulating/simulating what?
A. Telephony
B. Applications
C. Sensors
D. The emulator can emulate/simulate all aspects of a smart phone.
Ans: C
65.How is a simulator different from an emulator?
A. Emulators are only used to play old SNES games, simulators are used for software development
B. The emulator is shipped with the Android SDK and third party simulators are not
C. The emulator can virtualize sensors and other hardware features, while the simulator cannot
D. The emulator imitates the machine executing the binary code, rather than simulating the behavior of the code at a higher level.
Ans: D
66.The R file is a generated file
A. Automatically
B. Manually
C. Emulated
D. None of the above
Ans: A
67.An activity can be thought of as corresponding to what?
A. A Java project
B. A Java class
C. A method call
D. An object field
Ans: B
68.To create an emulator, you need an AVD. What does it stand for?
A. Android Virtual Display
B. Android Virtual Device
C. Active Virtual Device
D. Application Virtual Display
Ans: B
69.The Android SDK ships with an emulator.
A. True
B. False
Ans: A
70.The ___________ file specifies the layout of your screen.
A. Layout file
B. Manifest file
C. Strings XML
D. R file
Ans: A
71.The manifest explains what the application consists of and glues everything together.
A. True
B. False
Ans: A
72.The Android Software Development Kit (SDK) is all you need to develop applications for Android.
A. True
B. False
Ans: A
73.What is the driving force behind an Android application and that ultimately gets converted into a Dalvik executable?
A. Java source code.
B. R-file.
C. the emulator.
D. the SDK
Ans: A
74.While developing Android applications, developers can test their apps on...
A. Emulator included in Android SDK
B. Physical Android phone
C. Third-party Emulators (Youwave, etc.)
D. All three options will work.
Ans: D
75.What file is responsible for glueing everthing together , explaining what the applicatin consists of, what its main building blocks are, ext...?
A. Layout file
B. Strings XML
C. R file
D. Manifest file
Ans: D
76.The XML file that contains all the text that your application uses.
A. stack.xml
B. text.xml
C. strings.xml
D. string.java
Ans: C
77.Which of the following is the most "resource hungry" part of dealing with Activities on Android
A. Closing an app
B. Suspending an app
C. Opening a new app
D. Restoring the most recent app
Ans: C
78.What runs in the background and doesn't have any UI components?
A. Intents
B. Content Providers
C. Services
D. Applications
Ans: C
79.What is an Activity?
A. A single screen the user sees on the device at one time
B. A message sent among the major building blocks
C. A component that runs in the background without any interface.
D. Context referring to the application environment.
Ans: A
80.When an activity doesn't exist in memory it is in.
A. Starting state
B. Running state
C. Loading state
D. Inexistent state
Ans: A
81.Which of the following is NOT a state in the lifecycle of a service?
A. Starting
B. Running
C. Destroyed
D. Paused
Ans: D
82.There is no guarantee that an activity will be stopped prior to being destroyed.
A. True
B. False
Ans: A
83.Intents
A. are messages that are sent among major building blocks
B. trigger activities to being, services to start or stop, or broadcast
C. are asynchronous
D. all of these
Ans: D
84.In an explicit intent, the sender specifies the type of receiver.
A. True
B. False
Ans: B
85.An implicit intent is the sender specifies the type of receiver?
A. True
B. False
Ans: A
86.When the activity is not in focus, but still visible on the screen it is in?
A. running state
B. Paused state
C. stopped state
D. destroyed state
Ans: B
87.An activity in a stopped state is doing nothing.
A. True
B. False
Ans: B
88.Application contexts are independent of the activity life cycle.
A. True
B. False
Ans: A
89.Services have any user interface components
A. True
B. False
Ans: B
90.Broadcast receivers are Android's implementation of a system-wide publish/subscribe mechanism, or more precisely, what design pattern?
A. Observer
B. Facade
C. Mediator
D. Command
Ans: A
91.There can be only one running activity at a given time.
A. True
B. False
Ans: A
92.YAMBA stands for Yet Another Mobile Banking App.
A. True
B. False
Ans: B
93.Lists and adapters are more organizational aids than user interface elements in Android.
A. True
B. False
Ans: A
94.What built-in database is Android shipped with?
A. SQLite
B. Apache
C. MySQL
D. Oracle
Ans: A
95.Creating a UI (User Interface) in Android requires careful use of:
A. Java and SQL
B. XML and Java
C. XML and C++
D. Dreamweaver
Ans: B
96.A good example app should demonstrate most of the aspects of the application framework that are unique to Android.
A. True
B. False
Ans: A
97.What will services be used for in the Yamba project?
A. Recompile the source code
B. It will update tweets periodically in the background
C. The services will pause the app
D. Configures the user interface
Ans: B
98.Which answer is not part of the design philosophy talked about in chapter five?
A. Always whole and complete
B. Small increments
C. Lagre increments
D. Refactoring code
Ans: C
99.App Widgets are can be place on the home screen by the user to check for updates are available?
A. True
B. False
Ans: A
101.The android OS comes with many useful system services, which include processes you can easily ask for things such as your.
A. All of these and more.
B. Location
C. Sensor Readings
D. WiFi? Hot Spots
Ans: A
102.What does the Gargenta mean in his Design Philosophy when he says that the project will, Always be whole and complete?
A. He means that when we finish the entire project we will have a working application, even though there will be points along the way when we will stop and the application will not run.
B. He means that the program must always be able to compile.
C. He means that we will work on the program by adding self contained chunks to it so that at every stopping point the application runs as though it were a whole and complete application. Each additional chunk simply adds a new functionality to the application.
D. None of the above
Ans: C
103.An Android application is a loose collection of content providers, activities, broadcast receivers, and services.
A. True
B. False
Ans: A
104.Which of the following is NOT an activity we will be creating for the YAMBA project?
A. Preferences Activity
B. Update Activity
C. Timeline Activity
D. Status Activity
Ans: B
105.The timeline receiver will receive messages from the Android system.
A. True
B. False
Ans: B
106.Status data will be exposed to the rest of the Android system via:
A. Intents
B. A content provider
C. Network receivers
D. Altering permissions
Ans: B
107.If the UI begins to behave sluggishly or crash while making network calls, this is likely due to
A. Network latency
B. Hardware malfunctions
C. Virus on the Server
D. Activity manager contains too much.
Ans: A
108.How does Gargenta approach the problem of the app acting sluggishly due to network latency?
A. Starting over
B. Switching API levels
C. Refactoring code
D. Multithreading
Ans: D
109.In which technique, we can refresh the dynamic content in android?
A. Java
B. Ajax
C. Android
D. None of the Above
Ans:B
110.What is Pending Intent in android?
A. It is a kind of an intent
B. It is used to pass the data between activities
C. It will fire at a future point of time.
D. None of the Above
Ans:C
111.How to move services to foreground in android?
A. Services always work in Foreground only
B. No,We can't do this query
C. Using startService(Intent intent)
D. startFordgroud(int id, Notification notification).
Ans:D
112.How to pass the data from activity to services in android?
A. We can store the data in a common database and access the data on services as well as in Activity
B. We can't pass data from activity to services.
C. Using putExtra() method in intent, we can pass the data using setResult()
D. A & C
E. None of the above
Ans:D
113.What is sleep mode in android?
A. Only Radio interface layer and alarm are in active mode
B. Switched off
C. Air plane mode
D. None of the Above
Ans: A
114.Which permissions are required to get a location in android?
A. ACCESS_FINE and ACCESS_COARSE
B. GPRS permission
C. Internet permission
D. WIFI permission.
Ans: A
115.What are the debugging techniques available in android?
A. DDMS
B. Breaking point
C. Memory profiling
D. None of the above.
Ans: D
116.How to fix crash using log cat in android?
A. Gmail
B. log cat contains the exception name along with the line number
C. Google search
D. None of the above.
Ans: B
117.What is the HTTP response error code status in android?
A. status code < 100
B. status code > 100
C. status >= 400
D. None of the above
Ans: C
118.Is it mandatory to call onCreate() and onStart() in android?
A. No, we can write the program without writing onCreate() and onStart()
B. Yes, we should call onCreate() and onStart() to write the program
C. At least we need to call onCreate() once
D. None of the above
Ans: A
119.What is the main difference between set and list in android?
A. Both are same
B. Set can't contain duplicate values
C. List may contain duplicate values
D. B & C
E. A & C
Ans: D
120.What is a context in android ?
A. It is an interface to store global information about an application
B. It is used to create new components.
C. Android has two contexts, those are getContext() and getApplicationContext()
D. All of Above
E. None of Above
Ans: D
121.On which thread services work in android?
A. Worker Thread
B. Own Thread
C. Main Thread
D. None of the above.
Ans: C
122.What are the functionalities in asyncTask in android?
A. onPreExecution()
B. doInBackground()
C. onProgressUpdate()
D. onPostExecution()
E. onPostExecution()
Ans: E
123.How to upgrade SQlite the database from a lower version to higher version in android SQlite?
A. Using helper Class
B. Using cursor
C. Using intent
D. None of the above
Ans: A
124.What is an anonymous class in android?
A. Interface class
B. A class that does not have a name but have functionalities in it
C. Java class
D. Manifest file
Ans: B
125.What is an HTTP client class in android?
A. httprequest(get/post) and returns response from the server
B. Cookies management
C. Authentication management
D. None of the above
Ans: A
126.What is the JSON exception in android?
A. JSon Exception
B. Json Not found exception
C. Input not found exception
D. None of the above
Ans: A
127.How many levels of securities are there in android?
A. App level security and kernel level security
B. Android level security
C. Java level security
D. None of the above
Ans: A
128.What is the main difference between set and list in android?
A. Both are same
B. Set can't contain duplicate values
C. List may contain duplicate values
D. B & C
E. A & C
Ans: D
129.Is it possible to have an activity without UI to perform action/actions?
A. Not possible
B. Wrong question
C. Yes, it is possible
D. None of the above
Ans: C
130.What is broadcast receiver in android?
A. It will react on broadcast announcements.
B. It will do background functionalities as services.
C. It will pass the data between activities.
D. None of the Above
Ans: A
131.What is the life cycle of broadcast receivers in android?
A. send intent()
B. onRecieve()
C. implicitBroadcast()
D. sendBroadcast(), sendOrderBroadcast(), and sendStickyBroadcast().
Ans: B
132.What is the package name of HTTP client in android?
A - com.json
B - org.apache.http.client
C - com.android.JSON
D - org.json
Ans: B
133.What is a GCM in android?
A - Goggle Could Messaging for chrome
B - Goggle Count Messaging
C - Goggle Message pack
D - None of the above
Ans: A
134.What is JSON in android?
A. Java Script Object Native
B. Java Script Oriented Notation
C. Java Script Object Notation
D. None of the Above
Ans: C
135.What is the 9 patch tool in android?
A. Using with tool, we can redraw images in 9 sections.
B. image extension tool
C. image editable tool
D. Device features
Ans: A
136.How to kill an activity in Android?
A. finish()
B. finishActivity(int requestCode)
C. A & B
D. kill()
E. None of the Above
Ans: C
137.How many protection levels are available in the android permission tag?
A - There are no permission tags available in android
B - Normal, kernel, application
C - Normal, dangerous, signature, and signatureOrsystem
D - None of the above
Ans: C
138.What are the functionalities of Binder services in android?
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
E. None of the above
Ans: C
139.What is sandbox in android?
A. Each application runs securely in sandbox without interrupting another process
B. Android Box
C. Android development tool kit
D. None of the above
Ans: A
140.How many orientations does android support?
A. 4
B. 10
C. 2
D. None of the above
Ans: A
Respect and that i have a neat offer: Does Renovation Increase House Value home addition cost
ReplyDelete