Android

Android 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
Ans) 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


Android Objective type Question and Answers


1. An activity can be shut down by calling its__________ method.

Ans.   Finish() Method, onDestroy() Method
2.              Full form of PSTN is__________
Ans.    Public Switched Telephone Network

3.              Google acquired which OS________ 
Ans.    Android Operating System

4.              ______ acquired android in ________ year. (April/May-2015)
Ans.    Google, 2005

5.              First smart phone running android was________. (April/May-2015)
Ans.    HTC Dream T-Mobile G1

6.              _________ Company owns the android. (April/May-2015) (March/April-2017)
Ans.    Google

7.              Whom we can say older device name :(Laptop, Satellite Phone, PDA, Smart Phone) (March/April-2016)
Ans.    PDA

8.              Android is founded in __________.(March/April-2016)
Ans.    2003

9.              ________which Company purchased Android. (March/April-2016)
Ans.    Google

10.          Android is use____________for execute program.
Ans.    AVD

11.          In LinearLayout which orientation sets at runtime? (March/April-2016)
Ans.    Horizontal

12.          Cocoa is version of android? (March/April-2016)
Ans.    False

13.          The extension of manifest file is___________.(March/April-2016)
Ans.    .XML

14.          AVD stands for __________. (April/May-2015) (March/April-2016)
Ans.    Android Virtual Device

15.          What is emulator? (March/April-2017)
Ans.   An Android emulator is an Android Virtual Device (AVD) that represents a                                  specific Android device. You can use anAndroid emulator as a target platform          to                  run and test yourAndroid applications on your PC.

16.          ________ is an auto generated file in android. (March/April-2016)
Ans.    R.JAVA

17.          Which files are resource files? (March/April-2016)
Ans.    Animation Resources, Color State List Resource, Drawable Resources, Layout  Resource, Menu Resource, String Resources, Style Resource, Font ResourcesBool, Color, Dimension, ID, Integer, Integer Array, Typed Array

18.          AAPT stands for ___________(March/April-2016)
Ans.    Android Asset Packaging Tool


19.          Give the full form of ADT. (June/July-2017)
Ans.    Android Development Tools

20.          Give the full form of DVM. (June/July-2017) (March/April-2018)
Ans.    Dalvik Virtual Machine

21.          Android is Server operating system, is true or false? (June/July-2017)
Ans.    False

22.          What is res? (June/July-2017)
Ans.    The res/values folder is used to store the values for the resources that are used in many Android projects to include features of color, styles, dimensions    etc.

23.          Write the full form of SDK. (March/April-2018)
Ans.    Software Development Kit

24.          Write the full form of OHA (March/April-2018) (April/May-2015)
Ans.    Open Handset Alliance

25.          Write the full form of IPC. (March/April-2018)
Ans.    Interprocess communication

26.          PDA stands for_________.(March/April-2018)
Ans.    Personal Digital Assitant

27.          CDC stands for _________. (March/April-2018)
Ans.    connected device configuration

28.          MIDP stands for________. (March/April-2018)
Ans.    Mobile Information Device Profile

29.          JVM stands for ________. (March/April-2018)
Ans.    Java Virtual Machine

30.      Activity is the class that represents the ____________. (March/April-2016)
Ans.     View and Intent with Layout

31.        TableLayout is not     Layout in android.[true/false] (March/April-2016)
Ans.     false

32.       Toast is a__________ in android. (March/April-2016)
Ans.     view containing a quick little message for the user

33.       Which methods are android activity life cycle methods.
Ans.     onCreate(), onStart(), onStop() and onDestroy()

34.        HDPI stands for______. (June/July-2017)
Ans.     High Density Per Inch

35.        Widget is known as__________(June/July-2017)
Ans.     Readymaid control or Predefine Activity

36.        Margins are space outside the border, is true of false? (June/July-2017)
Ans.     True

37.       When the user selects a checkbox, the check box object receives an __________ event.                         (March/April-2018)
Ans.     onClick

38.       ___________layout is a layout that organizes its children into a single horizontal or vertical                row. (March/April-2018) (March/April-2017)
Ans.     ScrollableView with LinearLayout

39.      _________ Class used to contains different items. (March/April-2018)
Ans.     Menu

40.        ________ Class used to create screen container. (March/April-2018)
Ans.     View

41.        Display of screen is return by the __________ class. (March/April-2018)
Ans.     View

42.       Low level display refers to ___________. (March/April-2018)
Ans.     LDPI

43.        _______________ is used to create checkboxes and radio buttons. (March/April-2018)
Ans.     Checkbox class

44.        ImageItem always refers to an object of an ___________ class. (March/April-2018)
Ans.     Item class

45.        __________ Interface is used to listen changes made to the item.
Ans.     onItemChangeListener

46.        The WebView class is an extension of android’s __________ class that allows you to display               web pages as a part of your activity layout. (March/April-2018)
Ans.     View

47.        We can access any webpage stored at web server using _______.(March/April-2018)
Ans.     WebView

48.        _______ Class is very important for doing mobile connectivity with file or webpage.                           (March/April-2018)
Ans.     Url

49.        What is the default location of APK file? (March/April-2017) (April/May-2015)
Ans.     Project’s BIN directory

50         .apk file stands for __________. (March/April-2017)
Ans.     Android Package

51.        Which tag creates TextView widget in UI? (March/April-2017)
Ans.     XML tag <TextView>

52.        Which view display the web pages? (March/April-2017)
Ans.     WebView

53.        ________ intent specify the component to start by name. (April/May-2015)
Ans.     Explicit

54.        Layouts in android? (April/May-2015)
Ans.     LinearLayout, RelativeLayout, TableLayout, AbsoluteLayout, FrameLayout, ListView, GridView

55.       Android supports which kind of screen densities? (April/May-2015)
Ans.    HDPI

56.      Which method is the cursor class method? (March/April-2016)
Ans.    moveToFirst(), moveToLast(), moverToNext(), moveToPrevious(),isAfterLast(),getXXX()

57.       Base columns automatically add primary key called_____. (June/July-2017)
Ans.    Base Columns for each tables it automatically create an autoincremented   primary key              called _ID.

58.       Binary data is shared using the _________. (June/July-2017)
Ans.    SharedPreferences, SQLite, MySQL

59.       Which method is used to delete the file? (June/July-2017)
Ans.    Delete()

60.       Which method is used to query free space? (June/July-2017)
Ans.    getAvailableBlockSize()

61.      Which class having useful set of APIs for database operations? (June/July-2017)
Ans.    SQLiteDatabase interface and SQLiteOpenHelper Class

62.       DDMS is stands for _______________.(March/April-2016) (March/April-2017)
Ans.    Dalvik Debug Monito Service

63.       For database operation we have to extends ____ class. (March/April-2016)
Ans.    SQLOpenHelper class

64.      Which part of MVC, represents the data in your application? (June/July-2017)
Ans.    UIButton, UIView for View, .XcdatamodelId for Model

65.      Which part of MVC, manages the communication between view and the representation of the             data in your application? (June/July-2017)
Ans.    UIViewController, CLLocationManager and UINavigationController for Controller

66.      What is DDMS? (June/July-2017) (March/April-2017)
Ans.    The Dalvik Debug Monitor Server (DDMS) is a more advanced debugging tool from         the SDK that has also been integrated into Android Studio. This tool is able to monitor both a real device and the emulator.

67.       Write the full form of MCC. (March/April-2018) (April/May-2015)
Ans.    Mobile Country Code

68.       __________method is used to delete the file. (March/April-2018)
Ans.    Delete()

69.       _________ is used to display string. (March/April-2018)
Ans.    getText().toString()

70.       ___________ is not a database and hence it does not support SQL. (March/April-2018)
Ans.    SharedPreferences class

71.      We can read and write the file using ______ protocol. (March/April-2018)
Ans.    FTP

72.       Which Storage is not always available? (March/April-2017)
Ans.    External Storage

73.       By using which function we can query the external storage state? (March/April-2017)
Ans.    getExternalStorageState() of Environment Class

74.       What is the application class in android? (March/April-2017)
Ans.    The Application class is the base class for the all type of android app’s, it contains the activities and services’s with all type of controls. It is executed first when any application going to start.

75.       What is Model in MVC? (March/April-2017)
Ans.    Model objects encapsulate the data specific to an application and define the logic and computation that manipulate and process that data.

76.       _________ method is used to read from database. (April/May-2015)
Ans.    rawQuery()


77.     GPS stands for_____________. (March/April-2016) (June/July-2017) (March/April-2017)
Ans.    Global Positioning System / Global Positioning Service

78.       JSON stands for____________.(April/May-2015) (March/April-2016) (March/April-2017)
Ans.    Java Script Object Notation

79.      What is MNC? (June/July-2017)
Ans.    The Mobile Network Code (MNC) is a two digit code (North America) or three digit code (European Standard) that is used in combination with a Mobile Country Code (MCC) to identify a mobile network operator uniquely.

80.       ___________to perform a GET and download your data.
Ans.    Google Account

81.      Write the full form of NFC. (March/April-2018) (March/April-2017)
Ans.    Near Field Communication

82.      With the help of __________ method we can check the current status of voice call in handset.             (March/April-2018)
Ans.    getCallState()

83.      The standard location for displaying notifications and indicators on an android device is the                 ________. (March/April-2018)
Ans     Statusbar of device

84.      Use the __________ method to issue the notification. (March/April-2018)
Ans.    addAction() method

85.       _____________ is the base class of all services. (March/April-2018) (April/May-2015)
Ans.    Service Class

86.       Define LED notification. (March/April-2018)
Ans.    LED Notification is the way to communicate the information to the mobile users that you have something message on your device when your mobile device Screen is off. It notify the LED light after some interval by blinking the mobile device light.

87.       What is HTTP? (March/April-2018)
Ans.    An asynchronous callback-based Http client for Android built on top of Apache's HttpClient libraries. All requests are made outside of your app's main UI thread, but any callback logic will be executed on the same thread as the callback was created using Android's Handler message passing.

88.      Which is the key class in the google maps android API? (March/April-2017)
Ans.    GoogleMap class

89.      Most network connected Android apps use which protocol to send and receive data?                             (March/April-2017) (April/May-2015)
Ans.    Most network apps connect and interact with other devices with protocols such as Bluetooth, NFC, Wi-Fi P2P, USB, and SIP.

90.       What is ANR in android? (March/April-2017)
Ans.    ANR stands for “Application Not Responding”. It's a dialog box that appears when an Android app doesn't respond for more than 10 seconds or earlier.

91.      What is used to check the current status of voice call in handset?
Ans.    getCallState()

92.        ___________is the IDE for iPhone app development. (April/May-2015) (March/April-2016)              (March/April-2017)
Ans.     Xcode

93.       __________ tells the current interactive state of a control. (April/May-2015)
Ans.    ARKit position is important

94.       __________ is a visual design editor that’s integrated into Xcode. (June/July-2017)
Ans.    Xcode

95.      Name your application using_________(June/July-2017)
Ans.   Using XML or Text give name like newApp.xcodeproj

96.      AIDL stands for_____________(June/July-2017)
Ans.   Android Interface Definition Language

97.      In iPhone__________ operating system is used. (March/April-2018)
Ans.    iPhone OS

98.       A __________ is an application component that can perform long-running operations in the               background and does not provide a user interface. (March/April-2017) (March/April-2018)
Ans.   UIKit, ARKit and iCloud

99.       __________is used as basic development language of iPhone app. (March/April-2018)
Ans.    Objective-C Language, Now a Days SWIFT Language

100.    What is Xcode? (March/April-2018)
Ans.    Xcode is an integrated development environment (IDE) for macOS containing a suite of              software development tools developed by Apple for developing software for macOS,                    iOS, watchOS, and tvOS.

1 comment: