Application Development Questions

Q:

What is ADB in Android ?

Answer

Adb is short for Android Debug Bridge. It allows developers the power to execute remote shell commands. Its basic function is to allow and control communication towards and from the emulator port.

Report Error

View answer Workspace Report Error Discuss

3 1556
Q:

XML preserves white spaces.

A) TRUE B) FALSE
Answer & Explanation Answer: A) TRUE

Explanation:

True, the given statement that xml preserves white spaces is correct.

Report Error

View Answer Workspace Report Error Discuss

1 1522
Q:

A website main page is called

A) start page B) bookmark
C) search page D) browser page
 
Answer & Explanation Answer: A) start page

Explanation:

A website main page is called as start page or home page.

Report Error

View Answer Report Error Discuss

Filed Under: Application Development - Technology
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

1 1516
Q:

How can your application perform actions that are provided by other application e.g. sending email?

Answer

Intents are created to define an action that we want to perform and the launches the appropriate activity from another application.


Code


        Intent intent = new Intent(Intent.ACTION_SEND);


        intent.putExtra(Intent.EXTRA_EMAIL, recipientArray);


        startActivity(intent);

Report Error

View answer Workspace Report Error Discuss

0 1505
Q:

Why cannot you run standard Java byte code on Android ?

Answer

Android uses Dalvik Virtual Machine (DVM) which requires a special bytecode. We need to convert Java class files into Dalvik Executable files using an Android tool called "dx". In normal circumstances, developers will not be using this tool directly and build tools will care for the generation of DVM compatible files.

Report Error

View answer Workspace Report Error Discuss

1 1499
Q:

What are meta tags used for?

Answer

-To store information usually relevant to browsers and search engines.


-To only store information usually relevant to browsers


-To only store information about search engines.


-To store information about external links

Report Error

View answer Workspace Report Error Discuss

0 1494
Q:

Describe Android Application Architecture.

Answer

Android Application Architecture has the following components:


> Services - like Network Operation


> Intent - To perform inter-communication between activities or services


> Resource Externalization - such as strings and graphics


> Notification signaling users - light, sound, icon, notification, dialog etc.


> Content Providers - They share data between applications

Report Error

View answer Workspace Report Error Discuss

0 1479
Q:

What is session storage and how can you create one?

Answer

Session storage is same like local storage but the data is valid for a session. In simple words the data is deleted as soon as you close the browser.


To create a session storage you need to use “sessionStorage.variablename” . In the below code we have a created a variable called as “clickcount”.


If you refresh the browser the count increases. But if you close the browser and start again the “clickcount” variable starts from zero.


if(sessionStorage.clickcount)


{


sessionStorage.clickcount=Number(sessionStorage.clickcount)+1;


}


else


{


sessionStorage.clickcount = 0;


Report Error

View answer Workspace Report Error Discuss

1 1469