• 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

Answer : D

Explanation

Context is used to create new components or objects like views and it is used to start activity and services. Android has two kinds of contexts and those are getContext() and getApplicationContext().

Q 2 - WHich of the following is/are are the subclasses in Android?

A - Action Bar Activity

B - Launcher Activity

C - Preference Activity

D - Tab Activity

E - All of above

Answer : E

Explanation

Action bar,Launcher, Preference and Tab activities are subclasses of activities in android

Answer : A

Explanation

Services work in the background without any UI and it updates UI by using thread. By default, every service is having a main thread.

Answer : D

Explanation

sendBroadcast() &miuns; It's normal broadcast.

sendOrderBroadcast() &miuns; It has an order priority

sendStickyBroadcast() &miuns; Intent passed with broadcast for future users.

Answer : B

Explanation

Anonymous class doesn't have class name but has some functionalities in it.

Answer : C

Android debug bridge is a client and a server modelled tool and acts as a bridge between client and server.

Answer : D

HTTP Client has the capabilities to manage connections, cookies and Authentication.

Answer : A

Each application runs securely in sandbox without interrupting another process. If an application is running in a sandbox, outside application can't touch sandbox application

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