Application Development Questions

Q:

Which API is used to write test scripts that help in exercising the application's user interface elements?

Answer

 UI Automation API is used to automate test procedures. Tests scripts are written in JavaScript to the UI Automation API.  This in turn simulates user interaction with the application and returns log information to the host computer.

Report Error

View answer Workspace Report Error Discuss

1 3331
Q:

Why cannot you run standard Java bytecode 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

0 3208
Q:

What is the use of controller object UIApplication?

Answer

Controller object UIApplication is used without subclassing to manage the application event loop.


It coordinates other high-level app behaviors. 


It works along with the app delegate object which contains app-level logic.

Report Error

View answer Workspace Report Error Discuss

2 2825
Q:

Write code snippet to retrieve IMEI number of Android phone?

Answer

TelephonyManager class can be used to get the IMEI number. It provides access to information about the telephony services on the device.


Code


        TelephonyManager mTelephonyMgr = (TelephonyManager)


        getSystemService(Context.TELEPHONY_SERVICE);


        String imei = mTelephonyMgr.getDeviceId();

Report Error

View answer Workspace Report Error Discuss

0 2810
Q:

What JSON framework is supported by iOS (iPhone OS) ?

Answer

  • SBJson framework is supported by iOS.

  • It is a JSON parser and generator for Objective-C (Objective-C is the primary programming language you use when writing software for OS X and iOS. It is a superset of the C-programming language and provides object-oriented capabilities and a dynamic runtime).

  • SBJson provides flexible API's and additional control that makes JSON handling easy.

Report Error

View answer Workspace Report Error Discuss

8 2663
Q:

What is the proper way of setting up an Android-powered device for app development?

Answer

The following are steps to be followed prior to actual application development in an Android-powered device:


- Declare your application as “debuggable” in your Android Manifest.


- Turn on “USB Debugging” on your device.


- Set up your system to detect your device.


 

Report Error

View answer Workspace Report Error Discuss

0 2657
Q:

HTML documents are saved in

A) Machine language codes B) ASCII text
C) Special binary format D) None of the above
 
Answer & Explanation Answer: B) ASCII text

Explanation:

Word and WordPad can save documents as ASCII text and HTML, but this approach can lead to problems. NotePad should launch with a new document open.

From the File pull-down menu, Select "Save As," save the file to the Desktop, and name the file using the ".html" extension (e.g., "home.html").

Report Error

View Answer Report Error Discuss

0 2567
Q:

A Website address is a unique name that identifies a specific

A) Link B) PDA
C) Web browser D) Website
 
Answer & Explanation Answer: D) Website

Explanation:
Report Error

View Answer Report Error Discuss

0 2392