• Android Video Tutorials

Android Online Quiz



Following quiz provides Multiple Choice Questions (MCQs) related to Android. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.

Questions and Answers

Q 1 - How to get a response from an activity in Android?

A - startActivityToResult()

B - startActiivtyForResult()

C - Bundle()

D - None of the above

Answer : B

Explanation

startActivityForResult(Intent intent,int requestCode) will give the response from second activity to first activity as a result.

Answer : C

Explanation

Manifest.xml is having information about application as number components in your application,Activity information,service information, and icon about an application

Each application has at least one Manifest file. Without manifest file we can't generate the APK file.

Answer : A

Explanation

When an Application is not responding ANR will be occur, and it will stop the process or an application

Q 4 - How to store heavy structured data in android?

A - Shared Preferences

B - Cursor

C - SQlite database

D - Not possible

Answer : C

Explanation

We can store structured data in SQlite database only. SQlite database is very efficient and faster to read and store the data.

Answer : A

Explanation

There is only an object which can be accessed by all other class.

Answer : A

The log message is used to debug a program. Some of log messages are shown below

log.d-Debugging log
log.i Informative log
log.e-Error log 
log.w-Warning log
log.v-verbose log

Q 7 - What is the library of Map View in android?

A - com.map

B - com.goggle.gogglemaps

C - in.maps

D - com.goggle.android.maps

Answer : D

com.google.android.maps is the library of the map view in android. We can access google maps by calling this library.

Answer : B

Fragment is a peace of an activity. If you want to move your application in 360 degrees, you can do this by using a fragment.

Answer : C

Using with Javac, we can compile Java files

Use dx tool to convert all Java class files to single dex file

Use AAPT tool to create apk file

Sign the apk file by using jar signer

Zipalign of signed apk

Answer : E

Give same id for both notifications.

nm.notify(1,notification);
android_questions_answers.htm
Advertisements