Android Programming - The Complete Practice Test Set 1

What is LastKnownLocation in android?


Options are :

  • To find the last location of a phone
  • To find known location of a phone
  • To find the last known location of a phone. (Correct)
  • None of the above

Answer : To find the last known location of a phone.

Android Programming - The Complete Practice Test Set 4

Which method is used to find GPS enabled or disabled pro-grammatically in android?


Options are :

  • finish()
  • getGPSStatus()
  • onProviderDisable() (Correct)
  • getGPS().

Answer : onProviderDisable()

What is a base adapter in android?


Options are :

  • Base Adapter is a common class for any adapter, which can we use for both ListView and spinner (Correct)
  • A kind of adapter
  • Data storage space
  • None of the above.

Answer : Base Adapter is a common class for any adapter, which can we use for both ListView and spinner

What is breakpoint in android?


Options are :

  • Breaks the application
  • Breaks the development code
  • Breaks the execution. (Correct)
  • None of the above.

Answer : Breaks the execution.

What is DDMS in android?


Options are :

  • Dalvik memory server
  • Device memory server
  • Dalvik monitoring services
  • Dalvik debug monitor services (Correct)

Answer : Dalvik debug monitor services

What is log message in android?


Options are :

  • Log message is used to debug a program. (Correct)
  • Same as printf()
  • Same as Toast().
  • None of the above.

Answer : Log message is used to debug a program.

What is ADB in android?


Options are :

  • Image tool
  • Development tool
  • Android Debug Bridge (Correct)
  • None of the above.

Answer : Android Debug Bridge

How many ports are allocated for new emulator?


Options are :

  • 2 (Correct)
  • 0
  • 10
  • None of the above.

Answer : 2

What is APK in android?


Options are :

  • Android packages
  • Android pack
  • Android packaging kit (Correct)
  • None of the above.

Answer : Android packaging kit

What are the debugging techniques available in android?


Options are :

  • DDMS
  • Breaking point
  • Memory profiling
  • None of the above. (Correct)

Answer : None of the above.

Android Programming - The Complete Practice Test Set 4

How to fix crash using log cat in android?


Options are :

  • Gmail
  • log cat contains the exception name along with the line number (Correct)
  • Google search
  • None of the above.

Answer : log cat contains the exception name along with the line number

What are the functionalities of HTTP Client interface in android?


Options are :

  • Connection management
  • Cookies management
  • Authentication management
  • All of the above (Correct)
  • None of the above

Answer : All of the above

What is an HTTP client class in android?


Options are :

  • httprequest(get/post) and returns response from the server (Correct)
  • Cookies management
  • Authentication management
  • None of the above

Answer : httprequest(get/post) and returns response from the server

Android Programming - The Complete Practice Test Set 4

What does httpclient.execute() returns in android?


Options are :

  • Http entity
  • Http response (Correct)
  • Http result
  • None of the above.

Answer : Http response

What is the package name of JSON?


Options are :

  • com.json
  • in.json
  • com.android.JSON
  • org.json (Correct)

Answer : org.json

What is the package name of HTTP client in android?


Options are :

  • com.json
  • org.apache.http.client (Correct)
  • com.android.JSON
  • org.json

Answer : org.apache.http.client

Android Programming - The Complete Practice Test Set 2

Data can be read from local source XML in android through


Options are :

  • XML resource parser (Correct)
  • XML pull parsing
  • DOM parsing
  • None of the above

Answer : XML resource parser

What is the library of Map View in android?


Options are :

  • com.map
  • com.goggle.gogglemaps
  • in.maps
  • com.goggle.android.maps (Correct)

Answer : com.goggle.android.maps

In which technique, we can refresh the dynamic content in android?


Options are :

  • Java
  • Ajax (Correct)
  • Android
  • None of the Above

Answer : Ajax

What is JSON in android?


Options are :

  • Java Script Object Native
  • Java Script Oriented Notation
  • Java Script Object Notation (Correct)
  • None of the Above

Answer : Java Script Object Notation

What are the JSON elements in android?


Options are :

  • integer, boolean
  • boolean
  • null
  • Number, string, boolean, null, array, and object (Correct)

Answer : Number, string, boolean, null, array, and object

What is the HTTP response error code status in android?


Options are :

  • status code < 100
  • status code > 100
  • status >= 400 (Correct)
  • None of the above

Answer : status >= 400

What is the JSON exception in android?


Options are :

  • JSon Exception (Correct)
  • Json Not found exception
  • Input not found exception
  • None of the above

Answer : JSon Exception

How to find the JSON element length in android JSON?


Options are :

  • count()
  • sum()
  • add()
  • length() (Correct)

Answer : length()

What is a GCM in android?


Options are :

  • Goggle Could Messaging for chrome (Correct)
  • Goggle Count Messaging
  • Goggle Message pack
  • None of the above

Answer : Goggle Could Messaging for chrome

What is ANR in android?


Options are :

  • When the application is not responding ANR will occur. (Correct)
  • Dialog box is called as ANR.
  • When Android forcefully kills an application, it is called ANR
  • None of the above

Answer : When the application is not responding ANR will occur.

What are the functionalities in asyncTask in android?


Options are :

  • onPreExecution()
  • doInBackground()
  • onProgressUpdate()
  • onPostExecution()
  • onPostExecution() (Correct)

Answer : onPostExecution()

How many threads are there in asyncTask in android?


Options are :

  • Only one (Correct)
  • Two
  • AsyncTask doesn't have tread
  • None of the Above

Answer : Only one

What is broadcast receiver in android?


Options are :

  • It will react on broadcast announcements. (Correct)
  • It will do background functionalities as services.
  • It will pass the data between activities.
  • None of the Above

Answer : It will react on broadcast announcements.

On which thread broadcast receivers will work in android?


Options are :

  • Worker Thread
  • Main Thread (Correct)
  • Activity Thread
  • None of the Above

Answer : Main Thread

Comment / Suggestion Section
Point our Mistakes and Post Your Suggestions