MCQ ON Android

Question


When contentProvider would be activated?

 

 

A )   using Intent

 

 

B )   using SQLite

 

 

C )   using ContentResolver

 

 

D )   none of the above

 

Question

 

 

 

Once installed on a device, each Android application lives in              ?

 

 

A )   device memory

 

 

B )   external memory

 

 

C )   security sandbox

 

 

D )   none of the above


Question

 

 

 

Definition of Loader?

 

 

A )   loaders make it easy to synchronously load data in an activity or fragment.

 

B )   loaders make it easy to asynchronously 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.

 

Question

 

 

 

Which component is not activated by an Intent?

 

 

A )   activity

 

 

B )   services

 

 

C )   contentProvider

 

 

D )   broadcastReceiver


Question

 

Parent class of Service?

 

 

A )   Object

 

 

B )   Context

 

 

C )   ContextWrapper

 

 

D )   ContextThemeWrapper

 

Question

 

 

 

You can shut down an activity by calling its                method

 

 

A )   onDestory()

 

 

B )   finishActivity()

 

 

C )   finish()

 

 

D )   none of the above

 

Question

 

 

 

What are the Direct subclasses of Activity?

 

 

3


A )   ListActivity

 

 

B )    ActivityGroup

 

 

C )   FragmentActivity

 

 

D )   all the aove

 

Question

 

 

 

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

 

Question

 

Which are the screen sizes in Android?

 

 

4

 
A )   small

 



C )   large

 

 

D )   all of the above

 

Question

 

Parent class of Activity?

 

 

A )   object

 

 

B )   context

 

 

C )   activityGroup

 

 

D )   contextThemeWrapper

 

Question

 

 

 

Which one is NOT related to fragment class?

 

 

A )   dialogFragment

 

 

B )   listFragment

 

 

C )   preferenceFragment

 

 

D )   cursorFragment


Question

 

 

 

 

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.

 

Question

 

 

Layouts in android?

 

 

A )   Frame Layout

 

 

B )   Linear Layout

 

 

C )   Relative Layout

 

 

D )   All of the above


Question

 

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 ) All of the above

 

Question

 

What are the indirect Direct subclasses of Services?

 

 

A )   recognitionService

 

 

B )   remoteViewsService

 

 

C )   spellCheckerService

 

 

D )   inputMethodService

 

Question

 

If you need your interface to work across different processes, you can create an interface for the service with a ?


B )   Messenger

 

 

C )   AIDL

 

 

D )   b or c

 

Question

 

Which are the screen densities in Android?

 

 

A )   low density

 

 

B )   medium density

 

 

C )   extra high density

 

 

D )   all of the above

 

Question

 

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 )   all the above


 

 

Question

 

How many ways to start services?

 

 

A )   started

 

 

B )   bound

 

 

C )   a & b

 

 

D )   messenger

 

Question

 

What are the indirect Direct subclasses of Activity?

 

 

A )   launcherActivity

 

 

B )   preferenceActivity

 

 

C )   tabActivity

 

 

D )   all the above

 

Question

 

What file is responsible for glueing everything together, explaining what the application consists of, what its main building blocks are, ext.…?


A )   Layout file

 

 

B )   Strings XML

 

 

C )   R file

 

 

D )   Manifest file

 

Question

 

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.

 

Question

 

Which piece of code used in Android is not open source?

 

 

A )   Keypad driver

 

 

B )   WiFi? driver

 

 

C )   Audio driver


D )   Power management

 

Question

 

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

 

Question

 

What year was the Open Handset Alliance announced?

 

 

A )   2005

 

 

B )   2006

 

 

C )   2007

 

 

D )   2008

 

Question

 

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 behaviour of the code at a higher level

 

Question

 

Which among these are NOT a part of Android’s native libraries?

 

 

A )   Webkit

 

 

B )   Dalvik

 

 

C )   OpenGL

 

 

D )   SQLite

 

Question

 

How does Gargenta approach the problem of the app acting sluggishly due to network latency?


B )   Switching API levels

 

 

C )   Refactoring code

 

 

D )   Multithreading

 

Question

 

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.

 

 

 

 

Question

 

Dialog classes in android?

 

 

A )   AlertDialog

 

 

B )   ProgressDialog

 

 

C )   DatePickerDialog


D )   All of the above

 

Question

 

Which of these are not one of the three main components of the APK?

 

 

A )   Dalvik Executable

 

 

B )   Resources

 

 

C )   Native Libraries

 

 

D )   Webkit

 

Question

 

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

 

Question

 

When the activity is not in focus, but still visible on the screen it is in?


A )   running state

 

 

B )   stopped state

 

 

C )   paused state

 

 

D )   destroyed state

 

Question

 

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

 

Question

 

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)

 

Question

 

If you want share the data across the all applications ,you should go for?

 

 

A )   Shared Preferences

 

 

B )   Content provider

 

 

C )   Internal Storage

 

 

D )   SQLite Databases

 

Question

 

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

 

Question

 

Creating a UI (User Interface) in Android requires careful use of…


A )   Java and SQL

 

 

B )   XML and Java

 

 

C )   XML and C++

 

 

D )   Dream weaver

 

Question

 

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 )   Both a&b

 

 

D )   None of the above

 

Question

 

The XML file that contains all the text that your application uses.

 

 

A )   stack.xml

 

 

B )   text.xml


C )   strings.xml

 

 

D )   string.java

 

Question

 

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

 

Question

 

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


Question

 

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

 

Question

 

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

 

Question

 

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

 

Question

 

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

 

Question

 

When an activity doesn’t exist in memory it is in

 

 

A )   Starting state

 

 

B )   Running state

 

 

C )   Loading state


D )   Inexistent state

 

Question

 

What built-in database is Android shipped with?

 

 

A )   SQLite

 

 

B )   Apache

 

 

C )   MySQL

 

 

D )   Oracle

 

Question

 

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

 

Question

 

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 separate company monitors the Android Market for Google

 

Question

 

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

 

Question

 

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

 

Question

 

What was the first phone released that ran the Android OS?

 

 

A )   Google gPhone

 

 

B )   T-Mobile G1

 

 

C )   Motorola Droid

 

 

D )   HTC Hero

 

Question

 

Why the so few users are 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


Question

 

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 those

 

 

 

 

Question

 

Which one is not a nickname of a version of Andriod?

 

 

A )   cupcake

 

 

B )   Gingerbread

 

 

C )   Honeycomb

 

 

D )   Muffin

 

Question

 

The                       file specifies the layout of your screen?

 

 

A )   Layout file


B )   Manifest file

 

 

C )   Strings XML

 

 

D )   R file

 

Question

 

Which of the following is NOT a state in the lifecycle of a service?

 

 

A )   Starting

 

 

B )   Running

 

 

C )   Destroyed

 

 

D )   Paused

 

Question

 

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


Question

 

What does the .apk extension stand for?

 

 

A )   Application Package

 

 

B )   Application Program Kit

 

 

C )   Android Proprietary Kit

 

 

D )   Android Package

 

 

 

 

Question

 

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


Question

 

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 ,Each additional chunk simply adds a new functionality to the application

 

D )   None of the above

 

Question

 

When did Google purchase Android?

 

 

A )   2007

 

 

B )   2005

 

 

C )   2008

 

 

D )   2010


Question

 

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

 

 

 

 

Question

 

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

 

Question

 

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

 

Question

 

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

 

Question

 

Broadcast receivers are Android’s implementation of a system-wide publish/subscribe mechanism, or more precisely, what design pattern?

 

A )   Observer

 

 

B )   Mediator

 

 

C )   Command


D )   Facade

 

Question

 

What operating system is used as the base of the Android stack?

 

 

A )   Linux

 

 

B )   Windows

 

 

C )   Java

 

 

D )   XML

 

Question

 

Android is based on Linux for the following reason

 

 

A )   Security

 

 

B )   Portability

 

 

C )   Networking

 

 

D )   All of these

 

Question

 

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

 

Question

 

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

 

Question

 

Android is licensed under which open source licensing license?

 

 

A )   Gnu’s GPL

 

 

B )   OSS

 

 

C )   Apache/MIT


D )   Sourceforge

 

Question

 

What part of the Android 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

 

Question

 

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

 

Question

 

What year was development on the Dalvik virtual machine started?


B )   2005

 

 

C )   2007

 

 

D )   2006

 

Question

 

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

 

Question

 

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

 

Question

 

What runs in the background and doesn’t have any UI components?

 

 

A )   Intents

 

 

B )   Content Providers

 

 

C )   Services

 

 

D )   Applications

 

Question

 

Android Applications must be signed

 

 

A )   After they are installed

 

 

B )   Before they are installed

 

 

C )   Never

 

 

D )   Within two weeks of installation

 

Question

 

Which of the following is/are appropriate for saving the state of an Android application?


A )   Activity.onFreeze()

 

 

B )   Activity.onPause()

 

 

C )   Activity.onStop()

 

 

D )   Activity.onDestroy()

 

Question

 

Which of the following are valid features that you can request using requestWindowFeature?

 

A )   FEATURE_NO_TITLE

 

 

B )   FEATURE_NO_ICON

 

 

C )   FEATURE_RIGHT_ICON

 

 

D )   Both a& c

 

Question

 

Which answer is not part of the design philosophy talked about in chapter five?

 

 

A )   Always whole and complete

 

 

B )   Small increments

 

 

C )   large increments


D )   Refactoring code

 

Question

 

Which of the following can be used to bind data from an SQL database to a ListView in an Android application?

 

A )   SimpleCursor

 

 

B )   SimpleCursorAdapter

 

 

C )   SimpleAdapter

 

 

D )   SQLiteCursor

 

Question

 

Which of the following can you use to display a progress bar in an Android application?

 

A )   ProgressBar

 

 

B )   ProgressDialog

 

 

C )   ProgressView

 

 

D )   Both a&b


Question

 

Which of the following should be used to save the unsaved data and release resources being used by an Android application?

 

A )   Activity.onStop()

 

 

B )   Activity.onPause()

 

 

C )   Activity.onDestroy()

 

 

D )   Activity.onShutdown()

 

Question

 

Which of the following would you have to include in your project to use the SimpleAdapter class?

 

A )   import android.content

 

 

B )   import android.widget

 

 

C )   import android.database

 

 

D )   import android.database.sqlite

 

Question

 

Which of the following would you have to include in your project to use the APIs and classes required to access the camera on the mobile device?


A )   Import android drivers

 

 

B )   Import android hardware camera

 

 

C )   Import android camera

 

 

D )   Import android util

 

Question

 

Which of the following are classes that can be used to handle the Bluetooth functionality on a device?

 

A )   Adapter

 

 

B )   Manager

 

 

C )   Matcher

 

 

D )   BluetoothAdapter

 

Question

 

What is the purpose of the ContentProvider class?

 

 

A )   To play rich media content files

 

 

B )   To create and publish rich media files

 

 

C )   To share data between Android applications


D )   To access the global information about an application environment

 

Question

 

Which of the following is the parent class for the main application class in an Android application that has a user interface?

 

A )   MIDLet

 

 

B )   AndroidApp

 

 

C )   Activity

 

 

D )   AppLet

 

Question

 

Which of the following are UI elements that you can use in a window in an Android application?

 

A )   TextBox

 

 

B )   TextView

 

 

C )   EditText

 

 

D )   Both b&c


Question

 

Which of the following fields of the Message class should be used to store custom message codes about the Message?

 

A )   tag

 

 

B )   what

 

 

C )   arg1

 

 

D )   userData

 

Question

 

What is “Android-dx”?

 

 

A )   A command line tool to create Android project files

 

 

B )   A framework to create unit tests for Android projects

 

 

C )   A tool to generate Android byte code from .class files

 

 

D )   A resource editor to create user interface for Android applications

 

Question

 

The R file is a(an) generated file

 

 

A )   Automatically


B )   Manually

 

 

C )   Emulated

 

 

D )   none of the above

 

Question

 

Immediate base class for activity and services

 

 

A )   CONTEXT

 

 

B )   APPLICATIONCONTEXT

 

 

C )   CONTEXTAPP

 

 

D )   ONCREATE

 

Question

 

Which of the following can you use to add items to the screen menu?

 

 

A )   Activity.onCreateOptionsMenu

 

 

B )   Activity.onCreate

 

 

C )   Activity.onPrepareOptionsMenu

 

 

D )   Both a&b

 

 

 

 

41


Question

 

Which of the following can be accomplished by using the TelephoneNumberUtil class?

 

A )   Save a phone number to the contacts in the phone device

 

 

B )   Retrieve a phone number from the contacts in the phone device

 

 

C )   Delete a phone number from the contacts in the phone device

 

 

D )   Format an international telephone number

 

Question

 

Which of the following function calls can be used to start a Service from your Android application?

 

A )   bindService

 

 

B )   startService

 

 

C )   runService

 

 

D )   Both a&b

 

Question

 

42

 
What is “Android-Positron”?

 



B )   A framework to create unit tests for Android projects

 

 

C )   A resource editor to create user interface for Android applications

 

 

D )   A tool to generate Android byte code from .class files

 

Question

 What was the first phone released that ran the Android OS?

 

A.  Google gPhone

 

B.   T-Mobile G1

 

C.  Motorola Droid

 

D.  HTC Hero

 

Question

 Which one is NOT related to fragment class?

 

·        A. DialogFragment

 

·        B. ListFragment

 

·        C. PreferenceFragment

 

·        D. CursorFragment


Question

Text Box: A	makes a specific set of the application data available to other

applications

 

·        A. Content provider

 

·        B. Broadcast receivers

 

·        C. Intent

 

·        D. None of these

 

Question

Which among these are NOT a part of Android’s native libraries?

 

·        A. Webkit

 

·        B. Dalvik

 

·        C. OpenGL

 

·        D. SQLite

 

Question

During an Activity life-cycle, what is the first callback method invoked by the system?

·        A. onStop()

 

·        B. onStart()

 

·        C. onCreate()

 

·        D. onRestore()


Question

What Activity method you use to retrieve a reference to an Android view by using the id attribute of a resource XML?

·        A. findViewByReference(int id);

 

·        B. findViewById(int id)

 

·        C. retrieveResourceById(int id)

 

·        D. findViewById(String id)

 

Question

 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

 

Question

The requests from Content Provider class is handled by method

 

·        A. onCreate

 

·        B. onSelect

 

·        C. onClick

 

·        D. ContentResolver


Question

 

 

What year was the Open Handset Alliance announced?

 

·        A. 2005

 

·        B. 2006

 

·        C. 2007

 

·        D. 2008

 

 

 

Question

 Which among these are NOT a part of Android’s native libraries?

 

·        A. Webkit

 

·        B. Dalvik

 

·        C. OpenGL

 

·        D. SQLite

 

 

 

Question

 

 

 What does the src folder contain?

 

·        A. Image and icon files

 

·        B. XML resource files


·        C. The application manifest file

 

·        D. Java source code files

 

 

 

Question

 Android releases since 1.5 have been given nicknames derived from how?

 

·        A. Adjective and strange animal

 

·        B. Food

 

·        C. Something that starts w/ ‘A’ -> Something that starts w/ ‘B’…

 

·        D. American states

 

Question

 

 

What are the indirect Direct subclasses of Services?

 

·        A. RecognitionService

 

·        B. RemoteViewsService

 

·        C. SpellCheckerService

 

·        D. InputMethodService

 

Question

 

 

The android library that provides access to UI pre-built elements such as buttons, lists, views etc. is

·        A. android.text


·        B. android.os

 

·        C. android.view

 

·        D. android.webkit

 

 

 

Question

 

 

Which one is not a nickname of a version of Andriod?

 

·        A. cupcake

 

·        B. Gingerbread

 

·        C. Honeycomb

 

·        D. Muffin

 

 

 

Question

 

 

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)


 

Question

 

 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

 

 

 

 

Question

 

 

Android is based on Linux for the following reason.

 

·        A. Security

 

·        B. Portability

 

·        C. Networking

 

·        D. All of these

 

 

 

Question

 

 

Which among the following are part of "Application" layer of Android Architecture


·        A. Contacts

 

·        B. Browser

 

·        C. Phone

 

·        D. All of these

 

 

 

Question

 

 

Which company developed android?

 

·        A. Apple

 

·        B. Google

 

·        C. Android Inc

 

·        D. Nokia

 

 

 

Question

 

 

 When contentProvider would be activated

 

·        A. Using Intent

 

·        B. Using SQLite

 

·        C. Using ContentResolver

 

·        D. None


 

 

Question

 

 

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

 

·        D. All of the above

 

Question

 

 

 When developing for the Android OS, Java bytecode is compiled into what?

 

·        A. Java source code

 

·        B. Dalvik application code

 

·        C. Dalvik byte code

 

·        D. C source code

 

 

 

Question

 

 

 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

 

 

 

Question

 

 

DVM is developed by

 

·        A. Linus Torvald

 

·        B. Dennis Ritchie

 

·        C. Dan Bornstein

 

·        D. None of these

 

Question

 

Which among these are NOT a part of Android's native libraries?

 

A.             Webkit

 

B.             Dalvik

 

C.             OpenGL

 

D.             SQLite


Question

 

Android is based on Linux for the following reason.

 

A.             Security

 

B.             Portability

 

C.             Networking

 

D.             All of these

 

 

Question

 

What operating system is used as the base of the Android stack?

 

A.             Linux

 

B.             Windows

 

C.             Java

 

D.             XML

 

 

Question

 

What year was development on the Dalvik virtual machine started?

 

A.      2003

 

B.       2005

 

C.       2007

 

D.      2006


 

 

Question

 

When you distribute your application commercially,you'll want to sign it with your own key.

A.             True

 

B.             False

 

 

 

Question

 

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

 

 

 

Question

 

Which of these are not one of the three main components of the APK?

 

A.             Dalvik Executable

 

B.             Resources

 

C.             Native Libraries

 

D.             Webkit


 

 

Question

 

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)

 

 

Question

 

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

 

Question

 

Android Applications must be signed.

 

A.             After they are installed

 

B.             Before they are installed


C.             Never

 

D.             Within two weeks of installation

 

 

Question

 

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

 

Question

 

The AWT and Swing libraries have been removed from the Android library set.

 

A.             True

 

B.             False

 

 

 

Question

 

The R.java file is where you edit the resources for your project.

 

A.             True

 

B.             False


Question

 

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

 

 

Question

 

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.

 

Question

 

Your Java source code is what is directly run on the Android device.

 

A.             True

 

B.             False


Question

 

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.

 

 

Question

 

The R file is a(an) generated file

 

A.             Automatically

 

B.             Manually

 

C.             Emulated

 

D.             None of the above


Question

 

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

 

 

Question

 

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

 

Question

 

The Android SDK ships with an emulator.

 

A.             True

 

B.             False


Question

 

The                  file specifies the layout of your screen.

 

A.             Layout file

 

B.             Manifest file

 

C.             Strings XML

 

D.             R file

 

Question

 

The manifest explains what the application consists of and glues everything together.

A.             True

 

B.             False

 

 

Question

 

The Android Software Development Kit (SDK) is all you need to develop applications for Android.

A.             True

 

B.             False


Question

 

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

 

 

Question

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.

 

Question

 

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


 

 

Question

 

The XML file that contains all the text that your application uses.

 

A.             stack.xml

 

B.             text.xml

 

C.             strings.xml

 

D.             string.java

 

 

Question

 

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

 

 

Question

 

What runs in the background and doesn't have any UI components?

 

A.             Intents

 

B.             Content Providers


C.             Services

 

D.             Applications

 

Question

 

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.

 

 

Question When an activity doesn't exist in memory it is in.

A.             Starting state

 

B.             Running state

 

C.             Loading state

 

D.             Inexistent state.

 

 

Question

 

Which of the following is NOT a state in the lifecycle of a service?

 

A.             Starting

 

B.             Running

 

C.             Destroyed


D.             Paused

 

Question

 

There is no guarantee that an activity will be stopped prior to being destroyed.

A.             True

 

B.             False

 

 

Question

 

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

 

 

Question

 

In an explicit intent, the sender specifies the type of receiver.

 

A.             True

 

B.             False


Question

 

an implicit intent is the sender specifies the type of receiver?

 

A.             True

 

B.             False

 

 

Question

 

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

 

Question

 

An activity in a stopped state is doing nothing.

 

A.             True

 

B.             False

 

 

Question

 

Application contexts are independent of the activity life cycle.

 

A.             True


B.             False

 

 

Question

 

Services have any user interface components

 

A.             True

 

B.             False

 

 

Question

 

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

 

 

Question

 

There can be only one running activity at a given time.

 

A.             True

 

B.             False


Question

 

YAMBA stands for Yet Another Mobile Banking App.

 

A.             True

 

B.             False

 

 

Question

 

Lists and adapters are more organizational aids than user interface elements in Android.

A.             True

 

B.             False

 

 

Question

 

What built-in database is Android shipped with?

 

A.             SQLite

 

B.             Apache

 

C.             MySQL

 

D.             Oracle

 

Question

 

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

 

 

Question

 

A good example app should demonstrate most of the aspects of the application framework that are unique to Android.

A.             True

 

B.             False

 

 

Question

 

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


Question

 

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

 

Question

 

App Widgets are can be place on the home screen by the user to check for updates are available?

A.             True

 

B.             False

 

Question

 

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


Question

 

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

 

 

Question

 

An Android application is a loose collection of content providers, activities, broadcast receivers, and services.

A.             True

 

B.             False


Question

 

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

 

Question

 

The timeline receiver will receive messages from the Android system.

 

A.             True

 

B.             False

 

Question

 

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


Question

 

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.

 

 

 

Question

 

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

 

 

 

Question

What is the use of versionCode attribute in AndroidManifest.xml file?

 

 

A)  It is used to define the current application version.

B)   It is used to define the current application name.


C)   It is used to define the public version that will be displayed to users.

D)  None of the above..

 

Question

Android is open source true or false?

 

 

A)  True

B)   False

 

Question

What is used by android for relational data storage?

 

 

A)  Tomcat

B)   SQL

C)   SQLiteDatabase

D)  None of the above.

 

Question

What is true about an Android Virtual Device (AVD)?

 

 

A)  An AVD is an emulator instance that enables you to model an actual device.

B)   You can create more than one AVDs in order to test your applications with several different configurations.

C)   You cannot create more than one AVDs.

D)  Option A and B are correct.

 

Question

In which file, permissions are set in Android?


A)  Src

B)   AndroidManifest.xml

C)   Bin

D)  None of the above.

 

Question

 

 

In which file, all string constant should be stored in android?

A)  AndroidManifest.xml

B)   Bin

C)   strings.xml

D)  None of the above.

 

Question

 

 

Which virtual machine is used by Android to run application?

 

 

A)  JVM

B)   Dalvik VM

C)   AVD

D)  None of the above.

 

Question

What is the full form of DDMS?

 

 

A)  Dalvik Debug Monitoring Service

B)   Dalvik Design Monitoring Service


C)   Direct Debug Monitoring Service

D)  None of the above.

 

Question

choose the correct option regarding activity in android.

 

 

A)  Activity is a class.

B)   When you create an android application your activity (class) is, by default inherited from Activity class.

C)   Option A and B are correct.

D)  None of the above.

 

Question

In Android, visual components are called.

 

 

A)  Views

B)   Components

C)   DLL

D)  None of the above.

 

Question

Which tool is used to monitor and control the Emulators on which you are debugging your applications.

 

A)  Android Asset Packaging Tool (AAPT)

B)   Dx

C)   DDMS

D)  None of the above.


Question

Which tool is used to monitor and control the Emulators on which you are debugging your applications.

 

A)  Android Asset Packaging Tool (AAPT)

B)   Dx

C)   DDMS

D)  None of the above.

 

Question

What is the default layout in android application?

 

 

A)  RelativeLayout

B)   TableLayout

C)   LinearLayout

D)  FrameLayout

 

Question

When a button is clicked, which listener you can use?

 

 

A)  SetOnClickListener

B)   OnClickListener

C)   ClickListener

D)  None of the above.

 

Question

OnCheckedChangeListener can be used with which control?


A)  RadioButton

B)   CheckBox

C)   Option A and B are correct.

D)  None of the above.

 

Question

To display text which control you will use?

 

 

A)  EditText

B)   TextView

C)   label

D)  None of the above.

 

Question

Which method sets the minimum number of characters the user must type before the suggestions appear as a drop-down menu, while working with ArrayAdapter?

 

A)  SetMinChar()

B)   MinChar()

C)   setThreshold()

D)  None of the above.

 

Question

What code you will write to create an array in strings.xml fi le located in the res/values folder?

 

A)


 

<string-array name=”days”>

<item>Sunday</item>

<item>Monday</item>

<item>Tuesday</item>

</string-array> B)

<string name=”days”>

<item>Sunday</item>

<item>Monday</item>

<item>Tuesday</item>

</string> C)

string item[3];

<item>Sunday</item>

<item>Monday</item>

<item>Tuesday</item>

 

 

D) None of the above.

 

Question

How will you access the array that is created in strings.xml file located in the res/values folder? Suppose that array name is days and spinner control is


used.

 

 

A)  ArrayAdapter adapter= ArrayAdapter.createFromResource(this, R.array.days, android.R.layout.simple_spinner_item);

B)   findViewByID(days);

C)   String arr[]=(array)findViewByID(days);

D)  None of the above.

 

Question

How will you access the array that is created in strings.xml file located in the res/values folder? Suppose that array name is days and spinner control is used.

 

A)  ArrayAdapter adapter= ArrayAdapter.createFromResource(this, R.array.days, android.R.layout.simple_spinner_item);

B)   findViewByID(days);

C)   String arr[]=(array)findViewByID(days);

D)  None of the above.

 

Question

To embed a web browser in your activity which view you will use?

 

 

A)  RichTextView

B)   Browser

C)   WebView

D)  None of the above.


Question

How will you access the array that is created in .java file ? Suppose that array name is days.

 

A)  ArrayAdapter<String> adapter = new ArrayAdapter<String> (days);

B)   ArrayAdapter<String> adapter = new ArrayAdapter<String> (this, android.R.layout.simple_dropdown_item_1line, days);

C)   ArrayAdapter<String> adapter = new ArrayAdapter<String> (android.R.layout.simple_dropdown_item_1line, days);

D)  None of the above.

 

 

A)  ComboBox

B)   List

C)   Spinner

D)  None of the above.

 

Question

Which component is not activated by Intent?

 

 

A)  Services

B)   Activity

C)   contentProvider

D)  None of the above.

 

Question

To share data across packages in Android which object you will prefer?


A)  SharedPreference

B)   ContentProvider

C)   DataProvider

D)  None of the above.

 

Question

To query a content provider, you specify the query string in the form of a URI. The format of the query URI is as follows:

 

<standard_prefix>://<authority>/<data_path>/<id> What you will write in place of <standard_prefix> ?

A)  content

B)   object

C)   ContentProvider

D)  None of the above.

 

Question

For reading the contacts from the Contacts, Which permission you will set in AndroidManifest.xml file if you are using ContentProvider.

 

A)  FIND_CONTACTS

B)   GET_CONTACTS

C)   READ_CONTACTS

D)  None of the above.


Question

SimpleCursorAdapter object maps a cursor to which view, defined in your XML file?

 

A)  TextViews

B)   ImageViews

C)   Both A and B option are correct.

D)  None of the above.

 

Question

What are the predefined query string constants available in Android?

 

 

A)  ContactsContract.Contacts.CONTENT_URI

B)   Browser.SEARCHES_URI

C)   MediaStore.Images.Media.INTERNAL_CONTENT_URI

D)  All of the above.

 

Question

Choose the correct option according to the given option.

 

 

Statement 1: A content provider behaves very much like a database — you can query it,

edit its content, as well as add or delete content.

 

 

Statement 2: Content providers let you centralize content in one place and have many

different applications access it as needed.


Statement 3: A content provider does not provide the facility to centralize content.

 

 

A)  Only option 1 is correct.

B)   Only option 2 is correct.

C)   Option 1 and 2 are correct.

D)  Option 1 and 3 are correct.

 

Question

For Creating your own content provider which class you will inherit?

 

 

A)  Content

B)   ContentProvider

C)   Object.

D)  None of the above.

 

Question

For Creating your own content provider which class you will inherit?

 

 

A)  Content

B)   ContentProvider

C)   Object.

D)  None of the above.

 

Question

Choose the correct option regarding activity in android.

 

 

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.

 

Question

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?

 

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.

 

Question

What is the permission for using the camera?

 

 

A.  android.permission.USE_CAMERA

B.   android.permission.CAMERA

C.   android.permission.hardware.CAMERA

D) None of the above.

 

Question

The Log class supports which log types?

 

 

A)  Error

B)   Warning


C)   Debug

D)  All of the above.

 

Question

If you need to pass data back from an activity, Which method you should use?

 

 

A)  startActivity()

B)   startActivityForResult()

C)   ActivityForResult()

D)  None of the above.

 

Question

If you want to navigate from one activity to another then android provides you which class?

 

A)  Object

B)   startActivity

C)   Intent

D)  None of the above.

 

Question

The types of intents in android is\are

 

 

A)  Explicit intents

B)   Implicit intents

C)   Start intents

D)  Option A and B are correct.


Question

In android mini-activities are also known as.

 

 

A)  Adapter

B)   Activity

C)   Fragments

D)  None of the above

 

Question

How will you reference a textbox control in java file, that is available in XML file and the ID is txtName.

 

A)  EditText txtEmpName; txtEmpName=findViewById(R.id.txtName);

B)   EditText txtEmpName; txtEmpName=(EditText)findViewById(R.id.txtName);

C)   EditText txtEmpName; txtEmpName=(EditText)findViewById(txtName);

D)  None of the above.

 

Question

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”

 

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.

 

Question

How will you get the data in secondActivity? Refer question 10.

 

 

A)  Intent intent=new Intent;

String str= intent.getStringExtra("name"); Toast.makeText(this, str , Toast.LENGTH_LONG).show();

 

B)   Intent intent=getIntent();

String str= intent.getStringExtra("name"); Toast.makeText(this, str , Toast.LENGTH_LONG).show();

 

C)   Intent intent=getIntent();

String str= intent.getText("name");

Toast.makeText(this, str , Toast.LENGTH_LONG).show();


 

D)  None of the above.

 

Question

For creating Fragments the java class needs to extend which base class?

 

 

A)  MainActivity

B)   MiniActivity

C)   Fragment

D)  None of the above.

 

Question

Which element is used to display Google map in your UI.

A)  View

B)   Map

C)   MapView

D)  None of the above.

 

Question

For using Google map which permission you will specify in the AndroidManifest.xml?

 

A)  USEMAP

B)   USE_GOOGLE_MAP

C)   INTERNET

D)  None of the above.


Question

What is geocoding?

 

 

A)  Geocoding is the act of converting an address into its coordinates (latitude and longitude).

B)   Geocoding converts a pair of location coordinates into an address.

C)   Geocoding means geographical coding.

D)  None of the above.

 

Question

If you have used the Google Maps API into your Android application but it does not show the map when the application is loaded, what could be the possible reasons?

 

A)  No Internet connection

B)   Incorrect placement of the element in the AndroidManifest.xml file

C)   Missing INTERNET permission in the AndroidManifest.xml file

D)  All of the above.

 

Question

To enable zoom control on google map, Which method of MapView is used? Suppose that instance of MapView is mapView.

 

A)  ZoomControls.Enabled=true.

B)   mapView.setBuiltInZoomControls(true);

C)   mapView= ZoomControls(true);

D)  None of the above.


Question

By default, Google Maps displays the map of the United States when it is first loaded. How you can display the particular location?

 

A)  You cannot change the default locaction.

B)   setZoom= true.

C)   By using the animateTo() method of the MapController class.

D)  None of the above.

 

Question

How will you add marker on map?

 

 

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.

 

Question

Which class is used to access to the system location services?

 

 

A)  LocationManager

B)   Object

C)   GoogleManager

D)  None of the above.

 

Question

How will you instantiate LocationManager object?


A)  LocationManager LM =new LocationManager();

B)   LocationManager LM = getSystemService(Context.LOCATION_SERVICE).

C)   LocationManager LM = Context.LOCATION_SERVICE.

D)  None of the above.

 

Question

If you know the address of a location but want to know its latitude and longitude, then which class is used?

 

A)  Geocoder

B)   Location

C)   MapViewLocation

D)  None of the above.

 

Question

What are the different location provider are available that you can use to obtain lacation data?

 

A)  LocationManager.GPS_PROVIDER

B)   LocationManager.NETWORK_PROVIDER

C)   LocationManager.PASSIVE_PROVIDER

D)  All of the above.

 

Question

Which permission you need to declare in your AndroidManifest.xml file for sending SMS.

 

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)  None of the above.

 

Question

Which class is used to send SMS programmatically?

 

 

A)  SmsSender

B)   SmsManager

C)   SMS

D)  None of the above.

 

Question

What code you will write to send the SMS to another AVD? Suppose that the AVD no is 5556

 

A)  SmsManager sms=new SmsManager(); sms.sendTextMessage("5556", null, "Hello Android", null, null);

 

B)   SmsManager sms=new SmsManager(); sendSMS("5556", null, "Hello Android", null, null);

 

C)   SmsManager sms=SmsManager.getDefault(); sms.sendTextMessage("5556", null, "Hello Android", null, null);

 

D)  None of the above.


Question

How to get feedback on message sent?

 

 

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.

 

Question

What is the purpose of the ImageSwitcher?

 

 

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.

 

Question

What types of menus is/are supported by Android?

 

 

A)  Option menu and Context menu

B)   Only Option menu

C)   Only Context menu

D)  None of the above.

 

Question

Which is Parent class of Activity?

 

 

A)  ActivityGroup


B)   Context

C)   BaseActivity

D)  ContextThemeWrapper

 

Question

Which is/are related to fragment class?

 

 

A)  dialogFragment

B)   listFragment

C)   preferenceFragment

D)  All of the above.

 

Question

Which permission you need to declare in your AndroidManifest.xml file for initiating a call using the system in-call Activity?

 

A)  CALL_NUMBER uses-permission

B)   DIAL_PHONE uses-permission

C)   CALL_PHONE uses-permission

D)  None of the above.

 

Question

To initate a call using the Intent which code you will write?

 

 

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.

 

Question

For accessing the subscriber identity module (SIM) detail which class you will use?

 

A)  SimManager

B)   TelephonyManager

C)   MobileManager

D)  All of the above.

 

Question

For sending sms through Intent which code is correct?

 

 

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)  None of the above.

 

Question

What is/are storage option available in android?

 

 

A)  SharedPreferences

B)   SQLiteDatabase

C)   ContentProvider

D)  All of the above.

 

Question

Which objects stores the data only in key-value pair?

 

 

A)  Shared Preferences

B)   SQLite Database

C)   Content Provider

D)  None of the above.

 

Question

Shared Preferences stores the data in which format?

 

 

A)  TXT

B)   XML

C)   DOC

D)  None of the above.


Question

Which objects stores only primitive data type?

 

 

A)  Shared Preferences

B)   SQLite Database

C)   Content Provider

D)  None of the above.

 

Question

You want to store website name by using SharedPreferences. Choose the correct option for doing this.

 

A)  SharedPreferences obj=getSharedPreferences("MySharedFile", Context.MODE_PRIVATE);

obj.putString(“name”, “CareerRide.com”); obj.commit();

B)   SharedPreferences obj= new SharedPreferences ("MySharedFile", Context.MODE_PRIVATE);

String n=obj.getString("name", null);

C)   SharedPreferences obj=getSharedPreferences("MySharedFile", Context.MODE_PRIVATE);

Editor editor=obj.edit(); editor.putString(“name”, “CareerRide.com”); editor.commit();

D)  None of the above.


Question

You want to read website name by using SharedPreferences. Choose the correct option for doing this.

 

A)  SharedPreferences obj=getSharedPreferences("MySharedFile ", Context.MODE_PRIVATE);

String n=obj.getString("name", null);

B)   SharedPreferences obj= new SharedPreferences ("MySharedFile", Context.MODE_PRIVATE);

String n=obj.getString("name", null);

C)   String n=obj.getString("name", null);

D)  None of the above.

 

Question

To write files on the external storage, which permission you will write in AndroidManifest.xml file

 

A)  WRITE_STORAGE

B)   WRITE_EXTERNAL_DATA

C)   WRITE_EXTERNAL_STORAGE

D)  None of the above.

 

Question

In order to use internal storage to write some data in the file, which method will be used?This method returns FileOutputStream.

 

A)  openFileInput()

B)   openFileOutput()


C)   openForWrite()

D)  None of the above.

 

Question

To check whether the media(external storage) is available, which method of Environment class you will use?

 

A)  getExternalStorageState()

B)   getExternalStorage()

C)   getExternalStateData()

D)  None of the above.

 

Question

If you want share the data from one application to other applications,ou will which object you will use?

 

A)  SQLite Databases

B)   Internal Storage

C)   Shared Preferences

D)  Content Provider

 

Question

Which of the following statements is correct?

 

 

A)  Permissions are not specified in AndroidManifest.xml.

B)   The AndroidManifest.xml is optional.

C)   The AndroidManifest.xml must supply a unique Application package name for


your App.

D)  None of the above.

 

Question

is the full form of AVD in Android?

 

 

A)  Android Virtual Device

B)   Android Virtual Display

C)   Actual Virtual Display

D)  All of the above.

 

Question

Android provides the following functionality.

 

 

A)  Security

B)   Networking

C)   Portability

D)  All of the above.

 

Question

What runs in the background and does not have any user interface?

 

 

A)  Pending Intent

B)   Service

C)   Intent

D)  None of the above.

 

Question

Which one is not a nickname of android OS?

A)  Honeycomb

B)   CupCake

C)   Muffin

D)  None of the above.


Comments

Popular posts from this blog

Windows 11 is Free ?

PC Under 10000 for basic use

MCQ ON PYTHON