MCQs > IT & Programming > PhoneGap MCQs > Basic PhoneGap MCQs

Basic PhoneGap MCQ

1. You will need a Macintosh computer in order to produce a Phonegap app that will run on an iPhone

Answer

Correct Answer: False

Note: This Question is unanswered, help us to find answer for this one

2. Which of the following statements is NOT true?

Answer

Correct Answer: In iOS, multiple "watchPosition" can be in effect at one time

Note: This Question is unanswered, help us to find answer for this one

3. Which thread is used to execute iOS plugin methods?

Answer

Correct Answer: UI Thread

Note: This Question is unanswered, help us to find answer for this one

4. When hiding a splash screen in iOS, what value do you need for "AutoHideSplashScreen" in the config.xml file?

Answer

Correct Answer: false

Note: This Question is unanswered, help us to find answer for this one

5. What is the correct command for installing a Phonegap plugin via CLI? (Example: Camera plugin)

Answer

Correct Answer: $ phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-camera.git

Note: This Question is unanswered, help us to find answer for this one

6. In order to submit a Phonegap app to the Apple iTunes App Store you would need to use

Answer

Correct Answer: Only "Application Loader"

Note: This Question is unanswered, help us to find answer for this one

7. Phonegap build can accommodate all third-party plugins for its build process?

Answer

Correct Answer: False

Note: This Question is unanswered, help us to find answer for this one

8. Regarding Android PhoneGap plugins, which thread is used to run JavaScript code in a WebView?

Answer

Correct Answer: WebCore

Note: This Question is unanswered, help us to find answer for this one

9. Which of the following are the two properties handled by the "batterycritical" event?

Answer

Correct Answer: level (to get battery percentage) isPlugged (to know whether or not the device is plugged in)

Note: This Question is unanswered, help us to find answer for this one

10. Remote debugging on an iOS device is possible on some platforms by using which of the following:

Answer

Correct Answer: Weinre

Note: This Question is unanswered, help us to find answer for this one

11. In Phonegap 3.0 a Plugin is called a

Answer

Correct Answer: Feature

Note: This Question is unanswered, help us to find answer for this one

12. Which of the following is true about the Capture object?

Answer

Correct Answer: It is assigned to the navigator.device object, and therefore has global scope

Note: This Question is unanswered, help us to find answer for this one

13. If you write an App in Phonegap, you will be able to run it on Android and iPhone without modifying your custom Javascript

Answer

Correct Answer: Maybe

Note: This Question is unanswered, help us to find answer for this one

14. When embedding Cordova's WebView on Android, what happens if you don't add the thread pool?

Answer

Correct Answer: The plugins will have no threads to run on

Note: This Question is unanswered, help us to find answer for this one

15. If you forget to add your iOS plugin's mapping to config.xml, what could happen?

Answer

Correct Answer: The app does not crash, but the Xcode log shows an error

Note: This Question is unanswered, help us to find answer for this one

16. The default security policy for outside domain access is to:

Answer

Correct Answer: Allow all network access to outside domains.

Note: This Question is unanswered, help us to find answer for this one

17. Assuming you have your platform SDK, Node.js and the Phonegap utility already installed, what is the correct command for building a project for version 3.0?

Answer

Correct Answer: $ phonegap create myproject com.example.myproject MyProject

Note: This Question is unanswered, help us to find answer for this one

18. What PhoneGap object can be used to get the device platform name?

Answer

Correct Answer: Device

Note: This Question is unanswered, help us to find answer for this one

19. Phonegap uses a simplified version of Javascript

Answer

Correct Answer: False

Note: This Question is unanswered, help us to find answer for this one

20. When a call to a Database object's transaction method is performed, what PhoneGap object should be used in order to invoke callbacks?

Answer

Correct Answer: SQLTransaction

Note: This Question is unanswered, help us to find answer for this one

21. If you wish to use Parse.com to host a database for your Phonegap app you will have to use a Plugin

Answer

Correct Answer: False

Note: This Question is unanswered, help us to find answer for this one

22. Which format is used to encode retrieved data through the FileReader object?

Answer

Correct Answer: base64

Note: This Question is unanswered, help us to find answer for this one

23. When the executeSql method of a SQLTransaction is called it will invoke its callback with a:

Answer

Correct Answer: SQLResultSet

Note: This Question is unanswered, help us to find answer for this one

24. Which method should be overriden by an Android Plugin?

Answer

Correct Answer: "execute"

Note: This Question is unanswered, help us to find answer for this one

25. Which of these parameters are not required when creating a Cordova project from the iOS command line?

Answer

Correct Answer: Package location

Note: This Question is unanswered, help us to find answer for this one

26. Which of these are NOT PhoneGap supported mobile platforms?

Answer

Correct Answer: (all of these)

Note: This Question is unanswered, help us to find answer for this one

27. In Phonegap 3.0, the connection object is exposed via:

Answer

Correct Answer: navigator.connection.type

Note: This Question is unanswered, help us to find answer for this one

28. Phonegap requires you to use HTML5

Answer

Correct Answer: False

Note: This Question is unanswered, help us to find answer for this one

29. Why is using a 9-patch technique recommended for adding a SplashScreen for Android?

Answer

Correct Answer: It's necessary to avoid splashscreen distortion in different screen sizes

Note: This Question is unanswered, help us to find answer for this one

30. Phonegap conforms to what browser protocol:

Answer

Correct Answer: Depends on destination OS

Note: This Question is unanswered, help us to find answer for this one

31. When debugging an iOS plugin's Objective-C side, which of the following lines should be added to config.xml?

Answer

Correct Answer: <plugin name="service_name" value="PluginClassName" />

Note: This Question is unanswered, help us to find answer for this one

32. Which of the following is NOT true about the Geolocation object?

Answer

Correct Answer: It uses synchronous functions that will block the main thread

Note: This Question is unanswered, help us to find answer for this one

33. Which of the following are valid methods of the FileReader object?

Answer

Correct Answer: readAsDataURL, readAsText, readAsBinaryString

Note: This Question is unanswered, help us to find answer for this one

34. Which of the following code can be used to override the back button behavior of a device?

Answer

Correct Answer: document.addEventListener("backbutton", function() { // New behavior here... }, false);

Note: This Question is unanswered, help us to find answer for this one

35. In Phonegap for Android the MainActivity class is extended by what Cordova class

Answer

Correct Answer: DroidGap

Note: This Question is unanswered, help us to find answer for this one

36. What is the main function of the localStorage object?

Answer

Correct Answer: It allows you to save data as key-value pairs through the W3C storage interface

Note: This Question is unanswered, help us to find answer for this one

37. In order to compile and run a Phonegap app in the iPhone simulator with Xcode you will need

Answer

Correct Answer: None of these

Note: This Question is unanswered, help us to find answer for this one

38. CSS Media Queries are required in Phonegap

Answer

Correct Answer: False

Note: This Question is unanswered, help us to find answer for this one

39. The "options" string for the InAppBrowser must not contain:

Answer

Correct Answer: Blank spaces

Note: This Question is unanswered, help us to find answer for this one

40. To debug an app using the iOS simulator, you can use Safari’s developer tools

Answer

Correct Answer: True

Note: This Question is unanswered, help us to find answer for this one

41. Cordova is distributed by

Answer

Correct Answer: Apache

Note: This Question is unanswered, help us to find answer for this one

42. The PhoneGap Storage API is based on which database's specifications?

Answer

Correct Answer: W3C WebSQL

Note: This Question is unanswered, help us to find answer for this one

43. Which of these permissions are required when using the PhoneGap Contacts API in Android?

Answer

Correct Answer: android.permission.GET_ACCOUNTS, android.permission.READ_CONTACTS, android.permission.WRITE_CONTACTS

Note: This Question is unanswered, help us to find answer for this one

44. To which file in your Cordova-Android application's folder do you need to add your plugin?

Answer

Correct Answer: res/xml/config.xml

Note: This Question is unanswered, help us to find answer for this one

45. You can only access the camera on an iPhone when using Phonegap 2.7 and above

Answer

Correct Answer: False

Note: This Question is unanswered, help us to find answer for this one

46. Javascript Lambda Functions can be used in Phonegap

Answer

Correct Answer: YES

Note: This Question is unanswered, help us to find answer for this one

47. When catching exceptions and returning errors, which of the following sides are critical to warn about results?

Answer

Correct Answer: JavaScript error callbacks

Note: This Question is unanswered, help us to find answer for this one

48. You will need a Macintosh computer in order to produce a Phonegap app that will be distributed in the Apple iTunes App Store

Answer

Correct Answer: True

Note: This Question is unanswered, help us to find answer for this one

49. The "capture" object is assigned to the navigator.device object, therefore it has _______ scope in Javascript.

Answer

Correct Answer: global

Note: This Question is unanswered, help us to find answer for this one

50. The Phonegap API has a function for taking a photo with the device camera or retrieving a one from the device image gallery. Which is correct?

Answer

Correct Answer: camera.getPicture

Note: This Question is unanswered, help us to find answer for this one

51. iOS plugins should use the "pluginInitialize" method for their ______ logic.

Answer

Correct Answer: startup

Note: This Question is unanswered, help us to find answer for this one

52. You can use high resolution graphics for retina display devices in Phonegap

Answer

Correct Answer: True

Note: This Question is unanswered, help us to find answer for this one

53. A plugin for which native capability is currently only available with a third-party plugin

Answer

Correct Answer: NFC

Note: This Question is unanswered, help us to find answer for this one

54. In order to generate a clean, new, PhoneGap project in Android using a Terminal, we need to:

Answer

Correct Answer: Make sure that the "tools" and "platform-tools" folders are in the PATH

Note: This Question is unanswered, help us to find answer for this one

55. Anonymous Javascript functions are prohibited in Phonegap

Answer

Correct Answer: NO

Note: This Question is unanswered, help us to find answer for this one

56. In order to access device-level features (i.e. access to camera) in version 3.0, you must implement it as a plugin. The plugin is added (or removed) to your project by:

Answer

Correct Answer: Using the CLI’s plugin command

Note: This Question is unanswered, help us to find answer for this one

57. Which of the following events is fired when a PhoneGap application is sent to the background?

Answer

Correct Answer: "pause"

Note: This Question is unanswered, help us to find answer for this one

58. Which class should be extended by Android plugins?

Answer

Correct Answer: CordovaPlugin

Note: This Question is unanswered, help us to find answer for this one

59. Which of the following objects can be graphically customized?

Answer

Correct Answer: None of these

Note: This Question is unanswered, help us to find answer for this one

60. When developing iOS PhoneGap plugins, you execute the plugin by using a call from:

Answer

Correct Answer: JavaScript using cordova.exec function

Note: This Question is unanswered, help us to find answer for this one

61. Which callback function do we need to implement in order to get info from the Compass using the CompassHeading object?

Answer

Correct Answer: "compassSuccess"

Note: This Question is unanswered, help us to find answer for this one

62. To which directory/directories do you copy your splash screen image for Android development?

Answer

Correct Answer: Res/drawable directories

Note: This Question is unanswered, help us to find answer for this one

63. Phonegap requires you to use XHTML

Answer

Correct Answer: False

Note: This Question is unanswered, help us to find answer for this one

64. Which of the following best describes PhoneGap's architecture?

Answer

Correct Answer: PhoneGap has a plugin-based architecture.

Note: This Question is unanswered, help us to find answer for this one

65. What does function "camera.getPicture" do?

Answer

Correct Answer: Open the device's default camera application

Note: This Question is unanswered, help us to find answer for this one

66. The "onprogress" property is most closely associated with which PhoneGap object?

Answer

Correct Answer: FileTransfer

Note: This Question is unanswered, help us to find answer for this one

67. jquery is a required library in a Phonegap project

Answer

Correct Answer: False

Note: This Question is unanswered, help us to find answer for this one

68. Phonegap uses native UI instead of CSS to position HTML elements

Answer

Correct Answer: False

Note: This Question is unanswered, help us to find answer for this one

69. In order to deploy a Phonegap app to an iPhone or iPad you will need a:

Answer

Correct Answer: Provisioning Profile and Certificate from Apple (both C and D)

Note: This Question is unanswered, help us to find answer for this one

70. When writing a Phonegap app for android you would tell Phonegap which plugins you wanted to use in which file:

Answer

Correct Answer: config.xml

Note: This Question is unanswered, help us to find answer for this one

71. Phonegap requires jquery

Answer

Correct Answer: False

Note: This Question is unanswered, help us to find answer for this one

72. The syntax to call a native Phongap feature from within its Javascript file begins with

Answer

Correct Answer: cordova.exec(

Note: This Question is unanswered, help us to find answer for this one

73. What sytax would you use to execute custom code when a certain event fires:

Answer

Correct Answer: document.addEventListener(

Note: This Question is unanswered, help us to find answer for this one

74. The Adobe PhoneGap Build service allows compiling a project for multiple platforms in the cloud, by uploading:

Answer

Correct Answer: HTML, CSS and Javascript assets

Note: This Question is unanswered, help us to find answer for this one

75. What is required to run the Phonegap Command Line Interface

Answer

Correct Answer: Node.js

Note: This Question is unanswered, help us to find answer for this one

76. Regarding the Notification plugin, the "confirmCallback" is called when the user:

Answer

Correct Answer: Presses one of the buttons on the confirmation dialog box

Note: This Question is unanswered, help us to find answer for this one

77. In order to deploy a Phonegap app to an Android device you will need a

Answer

Correct Answer: None of these

Note: This Question is unanswered, help us to find answer for this one

78. Which language is the entry point for any plugin?

Answer

Correct Answer: JavaScript

Note: This Question is unanswered, help us to find answer for this one

79. Phonegap does NOT support the following Platforms

Answer

Correct Answer: OS/2

Note: This Question is unanswered, help us to find answer for this one

80. In order to know device reachability, we can use the following PhoneGap object:

Answer

Correct Answer: navigator.connection

Note: This Question is unanswered, help us to find answer for this one

81. Phonegap is not compatible with which Javascript framework

Answer

Correct Answer: Phonegap is compatible with all HTML, CSS and Javascript including frameworks.

Note: This Question is unanswered, help us to find answer for this one

82. Phonegap is owned by:

Answer

Correct Answer: Adobe

Note: This Question is unanswered, help us to find answer for this one

83. Changes to the DOM in javascript need to be triggered after which Event:

Answer

Correct Answer: deviceready

Note: This Question is unanswered, help us to find answer for this one

84. Which event allows us to know when the Cordova application is fully loaded?

Answer

Correct Answer: "ondeviceready"

Note: This Question is unanswered, help us to find answer for this one

85. When creating an iOS Phonegap project from the command line the compiler creates which files?

Answer

Correct Answer: All of the above

Note: This Question is unanswered, help us to find answer for this one

86. Phonegap is a

Answer

Correct Answer: Mobile application framework

Note: This Question is unanswered, help us to find answer for this one

87. When writing a Phonegap app for iOS you would tell Phonegap which plugins you wanted to use in which file:

Answer

Correct Answer: config.xml

Note: This Question is unanswered, help us to find answer for this one

88. When can PHP be used in conjunction with a Phonegap app?

Answer

Correct Answer: Only when making network protocols via (XmlHTTPRequests, WebSockets,..) to communicate with backend services.

Note: This Question is unanswered, help us to find answer for this one

89. Developing a Phonegap plugin for iOS requires you to interface Javascript with which language?

Answer

Correct Answer: Objective-C

Note: This Question is unanswered, help us to find answer for this one

90. It is safe to make calls to the Phonegap API after which Javascript event fires:

Answer

Correct Answer: deviceReady

Note: This Question is unanswered, help us to find answer for this one

91. What function do you need to use to communicate between the Cordova JavaScript and native environment?

Answer

Correct Answer: cordova.exec

Note: This Question is unanswered, help us to find answer for this one

92. Which of the following best describes a hybrid app?

Answer

Correct Answer: One that has features of both a web application and a native application.

Note: This Question is unanswered, help us to find answer for this one

93. Which Language will you need to know in order to build a custom Phonegap plugin for Android

Answer

Correct Answer: Java

Note: This Question is unanswered, help us to find answer for this one

94. By default the first user created content in a Phonegap app is found in:

Answer

Correct Answer: index.html

Note: This Question is unanswered, help us to find answer for this one

95. In order to deploy a Phonegap project to an iOS device you must use which IDE?

Answer

Correct Answer: Xcode

Note: This Question is unanswered, help us to find answer for this one

96. It is possible to use bootstrap.js in a Phonegap App

Answer

Correct Answer: True

Note: This Question is unanswered, help us to find answer for this one

97. True or False? The Eclipse IDE can be used to debug both Javascript code and native side PhoneGap plugins in an Android app?

Answer

Correct Answer: True

Note: This Question is unanswered, help us to find answer for this one

98. In order to build an app in Phonegap you will need to know

Answer

Correct Answer: HTML and Javascript

Note: This Question is unanswered, help us to find answer for this one

99. The User Interface in Phonegap takes place in what kind of object

Answer

Correct Answer: WebView

Note: This Question is unanswered, help us to find answer for this one

100. Cordova is the opensource foundation for Phonegap

Answer

Correct Answer: True

Note: This Question is unanswered, help us to find answer for this one

101. Which of these languages ​​are used by a PhoneGap app?

Answer

Correct Answer: All of these

Note: This Question is unanswered, help us to find answer for this one

102. PhoneGap is ___ solution.

Answer

Correct Answer: Open source

Note: This Question is unanswered, help us to find answer for this one

103. It is possible to host a PHP server locally in Phonegap

Answer

Correct Answer: False

Note: This Question is unanswered, help us to find answer for this one

104. A "SQLError" object is:

Answer

Correct Answer: An object that is thrown when an error occurs when manipulating a database

Note: This Question is unanswered, help us to find answer for this one