PRM391

Ace your homework & exams now with Quizwiz!

20. Which method to open a Hap connection to an Uri?

url.openConnection()

Which method to opena Http connection to an Uri?

url.openConnection()

What is a fragment like an activity?

They have a lifecycle that includes multiple of callback methods.

Which of the following statement correctly describes about the ResourceCursorAdapter?

This adapter extends CursorAdapter and knows how to create views from resources.

What was Google's main business motivation for supporting Android?

To allow them to advertise more

Choose whether the statement is true or false Does PhoneGap support iOS, Android, Windows Phone, BlackBerry, webOS, Bada, Symbian at the same time?

True

Does AsyncTask create new thread in background?

True

Google licensed some proprietary apps.

True

On android, a layout can contain other layout ?

True

Read the following 2 URLs and answer the question

True

26. How will you pass data to sub-activities?

Use Bundles

How will you pass data to sub-activities?

Use Bundles Correct

How to define a new Sencha Touch class ?

Use Ext.define()

08. How to define a new Sencha Touch class?

Use Extdefine()

85. How to set layout's attribute programmatically in android?

Use LayoutParams class

How to set layout's attribute programmatically in android ?

Use LayoutParams class

How to set layout?s attribute programmatically in android ?

Use LayoutParams class

48. How to set data for a Spinner control?

Use method setAdapter()

How to set data for a Spinner control?

Use method setAdapter()

13. Which of the following are true about Intent.CALL_ACTION?

Used to dial a phone number on the device , Used when a phone number is to be dialled without showing a UI on the device

Which of the following are true about Intent.CALL_ACTION?

Used when a phone number is to be dialled without the user having to explicitly initiate the call. Incorrect

How does Google check for malicious software in the Android Market?

Users report malicious software to Google

As an Android programmer, what version of Android should you use as your minimum development target?

Versions 1.6 or 2.0

How to register a broadcast reciever?

Via AndroidManifest.xml file

74. How to register a broadcast receiver?

Via AndroidManifestxml file

51. How does Android system manage activity's life cycle

Via system activity stack

51. How does Android system manage activity?s life cycle

Via system activity stack

How does Android system manage activity's life cycle

Via system activity stack Correct

How does Android system manage activity?s life cycle

Via system activity stack Correct

What is the correct HTML5 element for playing video files?

video

Android: What is value on component's attribute "layout_width" and "layout_height" to display the component big enough to enclose its content only?

wrap_content

Android: What is value on component?s attribute ?layout_width? and ?layout_height? to display the component big enough to enclose its content only?

wrap_content

Setting the android:layout_width and android:layout_height attributes to ________ indicates that the view should be just large enough to fit its content.

wrap_cotent

How to listen to an event in Sencha Touch class ?

write event handler within listeners:{} body

How to get the form data in sencha touch?

x-type.getValues()

Which HTML5 element is used to display a scalar measurement within a known range?

<meter>

25. You must declare all application components in Manifest file in this way:

<provider> elements for content providers

Applications that require filtering based on screen size can use the attributes.

<supports-screens>

69. Which permission needed in order to use MapActivity?

<uses-permission android:name="android.permission.INTERNET" />

Which permission needed in order to use MapActivity?

<uses-permission android:name="android.permission.INTERNET" />

53. What is the correct HTML5 element for playing video files?

<video>

108. How to define a new Sencha Touch class?

A. Use Extdefine()

74. How to register a broadcast receiver?

A. Via AndroidManifestxml file

119. How to listen to an event in Sencha Touch class?

A. Write event handler within listeners:{} body

127. In class SQLiteOpenHelper class, there are 2 methods we should usually override. What are they?

A. onCreate() and onUpgrade()

82. By default UI components made in the UI editor should have text defined in file?

A. string.xml

117. What is value on component's attribute layout_widtlf and layout_heighl to display the component big enough to

A. wrap_content

intent flag, when finish() method called on A4. What will be the current running activity?

A3

current running activity?

A4

currtent running activity?

A4

In Android, which manifest permission is needed when use GPS location

ACCESS_FINE_LOCATION

Intent filter contain these component?

Action, data, type and category.

7. Which of the following is the parent class for the main application class in an Android application that has a user interface?

Activity

Which of the following is the based class for the main application class in an Android application that has a user interface?

Activity

Which of the following is the parent class for the main

Activity

Which of the following should be used to save the unsaved data and release resources being used by an Android application?

Activity.onDestroy() Correct

22. Which of the following is/are appropriate for saving the state of an Android application?

Activity.onPause()

Which of the following is appropriate for saving the state of an Android application

Activity.onPause()

Which of the following is/are appropriate

Activity.onPause()

Android: Which statements are correct about Broadcast receivers ?

All of above

Android: when will onUpgrade() be invoked ?

All of above

Why cannot you run standard

Android use dalvik

12. Why cannot you run standard Java bytecode on Android?

Android uses Dalvik Virtual Machine

Why cannot you run standard Java bytecode on Android?

Android uses Dalvik Virtual Machine Correct

"Gingerbread" is nickname of

Android version 2.3.x

81. ?Gingerbread? is nickname of

Android version 2.3.x

?Gingerbread? is nickname of

Android version 2.3.x

Which one of the following is correct?

AnimateCamera() will smoothly animate the map from its original state to the new state supplied by the CameraUpdate.

Which of the following method can be used to create "OK" button for a AlertDialog?

Any of them

15. Android is licensed under which open source licensing license?

Apache/MIT

Android is licensed under which open source licensing license?

Apache/MIT

Android is licensed under which open source licensing license?

Apache/MIT Correct

What does the .apk extension stand for?

Application Package

What does the .apk extension stand for?

Application Program Kit Incorrect

What does the apk extension

Application program kit

What is a key difference with the distribution of apps for Android based devices than other mobile device platform applications?

Applications are distributed by multiple vendors with different policies on applications.

From a phone manufacturer's point of view, what makes Android so great?

Aside from some specific drivers, it provides everything to make a phone work

What is an Activity

Asingle screen in an application , with supporting Java

Files in the assets folders are accessed via a( n ) ________.

AssetManager

Name the class for performing background asynchronous task

AsyncTask

123. Which attribute will be used in XML if the Java code needs a reference to View?

B. android: id

120. Which method to open a Hap connection to an Uri?

B. url.openConnection()

To share data across packages in Android which object you will prefer?

ContentProvider

A/An _____ is a/an ____ that appears when the user performs a long-click on an element. It provides actions that affect the selected content or context frame.

Context menu - floating menu

75. In auto-generated code of an Android app, what is R class?

Contains IDs of the project resources

In auto-generated code of an Android app, what is R class?

Contains IDs of the project resources

Which class does the Activity class extend?

Context.

25. The Intent object is passed to this method to deliver the message to all interested broadcast receivers

Context.sendBroadcast()

The Intent object is passed to this method to deliver

Context.sendBroadcast()

The Intent object is passed to this method to deliver the message to all interested broadcast receivers

Context.sendBroadcast() Correct

What is the name of the program that converts Java byte code into Dalvik byte code?

Dex compiler

____ are useful for cases in which you need to obtain the user's response before continuing with execution.

DialogFragment.

Context menus are launched using ________.

a long-click on a View control.

30. Can you deploy executable JARs on Android?

False

5. The R.java file is where you edit the resources for your project

False

71. On android services, onStart() and onBind() are the same?

False

A device with Android installed is needed to develop apps for Android.

False

Android is built upon the Java Micro Edition (J2ME) version of Java.

False

Does Android support AWT and Swing

False

In Android, can we change the GPS setting by write my own Java code?

False

In Android, does Service create new thread in background

False

The R.java file is where you edit the resources for your project.

False

Your Java source code is what is directly run on the Android device.

False

Can you deploy executable JARs on Android?

False Correct

The LVL request is not responsible for providing the following information about the expansion files that the application requires:

File size

Which action does the method setZoomControlsEnabled() support?

For the + and - buttons

34. Which of the following is layout that you can use in a window in an Android application?

FrameLayout

Which of the following is layout that you can use in a window in an Android application?

FrameLayout

122. Which are location providers in android

GPS

22. Which are location providers in android

GPS

The intent can communicate messages among

activities , services , broadcast receiver

10. The intents can communicate messages among any of the three core components of an application:

activities, services, broadcast receivers

The intents can communicate messages among any of the three core components of an application:

activities, services, broadcast receivers Correct

How to set position of a Sencha Touch component?

all of above

Zbmgr tool is used to

all of the above

bmgr tool is used to

all of the above

What part of the Android platform is open source?

all of these answers #The entire stack is an open source platform

Android: which attribute will be used in XML if the Java code needs a reference to View ?

android: id

41. Android: Which attribute will be used in XML if the Java code needs a reference to View?

android:id

Android: Which attribute will be used in XML if the Java code needs a reference to View?

android:id

what is false with respect to onBind()

calling startService() results in a call to onBind()

How to change the main color of Sencha Touch application ?

change the $base-color variable in app.scss

How do you programmatically determine whether a RadioButton is checked

check the isChecked() method of each RadioButton to determine whether it has been checked.

To get data from Webserver to Android application, which of the following class you need to use to establish connection?

HttpURLConnection

Which kind of application when creating with Sencha Touch?

Hubrid app

60. Which kind of application when creating with Sencha Touch?

Hybrid app

Intents do not name a target and the field for the component name is left blank

Implicit Intents Correct

17. Where will you declare your activity so the system can access it?

In the manifest xml file

20. Where can you define the icon for your Activity?

In the manifest xml file

Where will you declare your activity so the system can access it?

In the manifest xml file Correct

Where can you define the icon for your Activity?

In the style xml file

Which type is not supported in SQLite?

STRING

Which of the following statement is false about Sencha Touch?

Sencha Touch is fully based on web standards such as PHP, Python.

When comparing the features of Sencha Touch and jQuery Mobile, what the following statement is true?

Sencha Touch supports a more MVC style application design, whereas jQuery mobile will simply be a load of markup and a load of jQuery script converting your HTML elements into touch friendly interface components.

The Emulator is identical to running a real phone EXCEPT when emulating/simulating what?

Sensors

Statement A: android.telephony.SmsManager class can send SMS on both GSM and CDMA network

Statement A is True, and Statement B is False

To develop your own service in Android, which of the following step you need to do?

Step 2 is: implements onStartCommand, onBind, onUnbind, onRebind, onCreate, onDestroy methods

What method is used to determine how many fingers are being tracked by Android?

getPointerCount()

Name the methods that you need to override in your own implementation of a content provider?

getType(), onCreate(), query(), insert(), delete(), and update().

Which statement is Not correct about PhoneGap ?

it doesn't support for Java phone

Which statement is Not correct about PhoneGap ?

it doesn?t support for Java phone

What is true about localStorage ?

it is never expired

How many css file can be included in a Sencha Touch project ?

many

16. Intent myIntent = new Intent(this. ActivityTwo.class); myIntentputExtra("Value1". "This value one for ActivityTwo "); myIntentputExtra("Value2". "This value two ActivityTwo");

myIntent is explicit Intent

Which of following is true?

myIntent is explicit intent

78. Intent mylntent = new Intent(IntentACTION_VIEW Uri.pars("http://www.google.com")); startActivity(myIntent):

myIntent is implicit Intent

startActivity(myIntent):

myIntent is implicit Intent

Intent myintent = new Intent(this, ActivityTwo.class);

myIntent.putExtra("Value1", "This value one for ActivityTwo")

Which of the following is NOT a life-cycle methods of an Activity?

onInit Correct

87. Which method to display a dialog?

show()

When using android.app.AlertDialog.Builder class to display a

show()

Which method to display a dialoge ?

show()

How will you launch an Activity

startActivity

Does HTML5 native support for local storage?

true

On android, a layout can contain other layout?

true

67. How to apply stylesheet with HTML element by id?

#id

How to apply stylesheet with HTML element by id?

#id

Choose right kind of layouts supported in Sencha Touch.

- Justify Layout

Sencha Touch is

- a Java framework

16. What is an Activity?

. A single screen in an application, with supporting Java code

20. Where can you define the icon for your Activity?

. In the manifest xml file

36. Which of the following methods is used to return a View from a layout file given the ID of the View?

. findViewById(int id)

How many main approaches to build GUI of Android app?

1

Which Android version had the greatest share of the market as of January 2011?

1.5

02. How many main approaches to build GUI of Android app?

2

How many kind of Android service do we have?

2

The methods startForeground() and stopForeground() were introduced in which API level.

2.0

128. Android: Is the main thread called the UI thread?

A Yes

the following content about Fragment

A fragment can be displayed without be embedded in an activity.

What onListItemClick() function used for?

A method called when an item in a list is selected.

16. What is an Activity?

A single screen in an application, with supporting Java code

What is a change Gravity?

A tool that changes the linear alignment of a control so that is is aligned to the left, center, right top or bottom of an

125. You must declare all application components in Manifest file in this way:

A. <provider> elements for content providers

92. What are 2 ways a Service can run?

A. Bounded and Unbounded

93. How to show or hide a Sencha Touch component?

A. Call .show() or .hide() method of component itself

88. How to change the main color of Sencha Touch application?

A. Change the $base-color variable in app.scss

112. What are location providers in Android?

A. GPS & Network

118. What is TRUE about localStorage?

A. It is never expired

Which of the following is the parent class for the main application class in an Android application that has a user interface?

Activity Correct

Which are levels user interacts with UI in android?

Activity level and view level

9. Which of the following should be used to save the unsaved data and release resources being used by an Android application?

Activity.onDestroy()

Which of the following should be used to save the unsave

Activity.onDestroy()

Which of the following is appropriate for restoring the state of an An

Activity.onPause()

Which of the following is/are appropriate for saving the state of an Android application?

Activity.onPause() Correct

46. Which dialog box can you use in you Android application?

AlertDialog

13. Android: When will onUpgrade() be invoked?

All of above

56. Android: When will onUpgrade() be invoked?

All of above

91. Which statements are correct about Broadcast receivers?

All of above

81. "Gingerbread" is nickname of

B. Android versiov2.3.x

106. How to make a TextView to be editable?

B. Either set its attribute editable ='true' or Use EditText class instead of TextView class

96. In android, normally SDCard is

B. External storage

103. Android UI is threadsafe

B. False

121. Which statement is NOT correct about PhoneGap?

B. It doesn't support for Java phone

107. What is NOT correct about Store in Sencha Touch?

B. Load data via a Proxy

105. Which class do we use for listening location update?

B. LocationManager class

111. There are five different methods to store persistent data. They are: Shared Preferences. Internal Storage. External Storage. Network and __?

B. SQLite Database

98. On android, a layout can contain other layout?

B. True

89. Does HTML5 native support for local storage?

B. Yes

95. Do we need to declare all of Controller in app.js with Sencha Touch?

B. Yes

Android MapActivity is

Base class with code to manage the boring necessities of any activity that displays a MapView

Android Applications must be signed.

Before they are installed

63. IntentFilters are typically defined via

Both of above

73. IntentFilters are typically defined via

Both of above

92. What are 2 ways a Service can run?

Bounded and Unbounded

What are 2 ways a Service can run ?

Bouned and Unbouned

83. SQLite database save data in

C. Internal storage

85. How to set layout's attribute programmatically in android?

C. Use LayoutParams class

116. Intent myIntent = new Intent(this. ActivityTwo.class);

C. myIntent is explicit Intent

80. Android: Where we can create tables and columns to them, create views or triggers?

C. onCreate()

87. Which method to display a dialog?

C. show()

79. In android intent. The activity can be embedded inside of another activity that hosts gadgets is belonged to

CATEGORY_GADGET

In android intent. The activity can be embedded inside of another activity that hosts gadget is belonged to

CATEGORY_GADGET

24. The Intent object is passed to this method to launch a new activity or get an existing activity to do something new

Context.startActivity()

The Intent object is passed to this method to launch

Context.startActivity()

The Intent object is passed to this method to launch a new activity or get an existing activity to do something new

Context.startActivity() Correct

11. The Intent object is passed to this method to initiate a service or deliver new instructions to an ongoing service

Context.startService()

The Intent object is passed to this method to initiate

Context.startService()

The Intent object is passed to this method to initiate a service or deliver new instructions to an ongoing service

Context.startService() Correct

The plus(+) means in statement android:id="@+id/my_id"?

Create new id and add to resources

Which shortcut key we can use to change orientation in an AVD simulator?

Ctrl+F11

113. Android: When will onUpgrade() be invoked?

D. All of above

110. Android MapActivity is

D. Base class with code to manage the boring necessities of any activity that displays a MapView

115. What is not true about the Android application lifecycle

D. Each activity of an app is run in its own process

99. Which statement is correct about web storage?

D. It is key/value data

129. Android: Which statement does not correct about Activity?

D. None of above

94. Android: When a dialog is requested for the first time, which method will Android call from your Activity?

D. onCreateDialog(int)

Which among these are NOT a part of Android's native libraries?

Dalvik

102. How many main approaches to build GUI of Android app?

E. 2

100. How to play a video in HTML5?

E. Only a & c

15. What is not true about the Android application lifecycle

Each activity of an app is run in its own process

What is not true about the Android application lifecycle

Each activity of an apps is run in its own process

Which of the following is NOT a right codename of Android version?

Eclair

How to make a TextView to be editable?

Either set attribute editable = "true" or Use EditText class instead of TextView class

How to make a TextView to be editable?

Either set attribute editable = ?true? or Use EditText class instead of TextView class

06. How to make a TextView to be editable?

Either set its attribute editable ='true' or Use EditText class instead of TextView class

How is a simulator different from an emulator?

Emulators are only used to play old SNES games, simulators are used for software development | The emulator imitates the machine executing the binary code, rather than simulating the behavior of the code at a higher level.

In HTML5, onblur and onfocus are:

Event attribute

62. In HTML5, onblur and onfocus are:

Event attributes

In HTML5, onblur and onfocus are:

Event attributes

2. Intents designate the target component by its name and they are typically used for application-internal messages.

Explicit Intents

Intents designate the target component by its name and they are typically used for application-internal messages.

Explicit Intents Correct

(Choose 1 answer)

Explicit Intents specify an exact Activity class to run in the other app.

Which of the following statement is false?

Explicit Intents specify an exact Activity class to run in the other app.

What is base of all Sencha Touch component?

Ext COmponent

70. What is base of all Sencha Touch component?

Ext.Component

96. In android, normally SDCard is

External storage

In Android, normally SDCard is

External storage

101. What is NOT a new elements of input type in HTML5?

F. None of above

03. Android UI is threadsafe

False

19. Is it possible to run java source code directly on Android?

False

The R.java file is where you edit the resources for your project

False Correct

Android releases since 1.5 have been given nicknames derived how?

Food

12. What are location providers in Android?

GPS & Network

What are location providers in Android ?

GPS & Wifi

In Android, the process technical to convert an address into its latitude and longitude is called

Geocoding

A user who has paid for your application and who has uninstalled it, but not requested a refund, is NOT allowed to reinstall it later if:

Google pulls it due to violation of the rules.

What is the name of the control for adding horizontal scrolling?

HorizontalScrollView

What is the permission you need to declare in your Android.manifest.xml for a HTTP connection

INTERNET

8. Intents do not name a target and the field for the component name is left blank

Implicit Intents

Which statement is correct about web storage ?

It can be accessed by serveral web page running in the same domain

21. Which statement is NOT correct about PhoneGap?

It doesn't support for Java phone

What is Content Provider?

It is a means to share data between applications which are by default run in completely different space by Dalvik instances.

99. Which statement is correct about web storage?

It is key/value data

18. What is TRUE about localStorage?

It is never expired

In auto-generated code of an Android app, what is R class

It is the main controller of the app

What is the android:versionCode attribute in the AndroidManifest.xml file?

It is used to programmatically check if an application can be upgraded.

What happen if the latitude is less than -90 or greater than 90?

It returns an IllegalArgumentException

Assume that we have an Android object named stored in reader variable, and inside it has a child object named

JSONObject mainObj = reader.getJSONObject(&amp;quot;main&amp;quot;);

An activity can be thought of as corresponding to what?

Java class

What is the driving force behind an Android application and that ultimately gets converted into a Dalvik executable?

Java source code.

Android is based on which language?

Java |

97. Which of the following is best choice for simple animations for your website?

JavaScript

PhoneGap uses HTML5, CSS, and __________ to write and deploy application.

JavaScript

Which of the following is best choice for simple animation for your website ?

JavaScript

How many activities are in focus at any time?

Just one

Which are location provider in Android ?

LBS

The ___________ file specifies the layout of your screen.

Layout file

which of the following file(s) is

Layout file

What operating system is used as the base of the Android stack?

Linux

07. What is NOT correct about Store in Sencha Touch?

Load data via a Proxy

What is NOT correct about Store in Sencha Touch ?

Load data via a proxy

In Android, which is two location providers that you can use to obtain your position data?

LocationManager.GPS_PROVIDER and LocationManager.NETWORK_PROVIDER

Setting the choice mode on a ListView object to CHOICE_MODE_SINGLE will:

Make the ListView track only "selected" item.

124. How many CSS files can be included in a Sencha Touch project?

Many

24. How many CSS files can be included in a Sencha Touch project?

Many

90. Which activity class do you need to inherit to show Google map?

MapActivity class

Which activity class do you need to inherit to show Google Map ?

MapViewActivity class

Which services are not provided as part of the Android SDK?

Mapping services.

What paramaters we need to make a Toast?

Message, duration and context.

4. Which one is not a nickname of a version of Android?

Muffin

Which on is not a nickname of

Muffin

Which one is not a nickname of a version of Andriod?

Muffin

Which one is not a nickname of a version of Android?

Muffin Correct

3. For writing Android code using C/C++, you need to use__________

NDK

For writing Android code using C

NDK

What is NOT a new elements of input type in HTML5 ?

Non of above

01. What is NOT a new elements of input type in HTML5?

None of above

29. Android: Which statement does not correct about Activity?

None of above

30. Android: Which statement is NOT correct about Toasts?

None of above

52. What statement is NOT correct about Canvas?

None of above

Android: Which statement does not correct about Activity?

None of above

Screen has turned off' is an example

Normal broadcast

To display a notification on upper left of Android screen, which of the following class you need to use?

NotificationManager + Notification

31. Android is based on which language?

Objective C

Which of the following used to detect when a user clicks or taps on a button?

OnClickListene

38. Which of the following used to detect when a user clicks or taps on a button?

OnClickListener

26. How to set position of a Sencha Touch component?

Only a & b

00. How to play a video in HTML5?

Only a & c

Although most people's first thought when they think of Android is Google, Android is not actually owned by Google. Who owns the Android platform?

Open Handset Alliance

The ________ menu accessed through the device's Menu button provides actions and operations for the app's current screen.

Options

What is contained within the Layout xml file?

Orientations and layouts that specify what the display looks

You need to process when user clicks on a notification on upper left of Android screen

PendingIntent

What is the difference between PhoneGap and Apache Cordova?

PhoneGap is a distribution of Apache Cordova.

What is not a type of dialogs available within the Android SDK?

PresentationDialog

59. Which database is natively supported by android?

SQLite

11. There are five different methods to store persistent data. They are: Shared Preferences. Internal Storage. External Storage. Network and __?

SQLite Database

There are five different methods to store persistent data. They are: Sharred Preferrences, Internal Storage, External Storage, Network and ... ?

SQLite Database

Which database is natively supported by android?

SQlite

When you want system to run the service indefinitely, by restarting it when get killed, use

START_STICKY

What was the first phone released that ran the Android OS?

T-Mobile G1

Which of the following Sensor types did the SensorCompass application use?

TYPE_MAGNETIC_FIELD and TYPE_ACCELEROMETER.

28. Which of the following are UI elements that you can use in a window in an Android application?

TextView

49. Which of the following are UI elements that you can use in a window in an Android application?

TextView

Which of the following are UI elements that you can use in a window in an Android application?

TextView

Which of the following are UI elements that you can use in a window in an Android application?

TextView Correc

What is NotificationManager class?

The NotificationManager class is used to display notifications on the device's status bar

45. What is NotificationManager class?

The NotificationManager class is used to display notifications on the device?s status bar

What is NotificationManager class?

The NotificationManager class is used to display notifications on the device?s status bar

Given the following statements using openFileOutput function to store data into a file in Android:

The created file can be accessed by all the other applications at the same time.

How is a simulator different from an emulator?

The emulator imitates the machine executing the binary code, rather than simulating the behavior of the code at a higher level.

What is a funny fact about the start of Android?

The first version of Android was released without an actual phone on the market

In Android, what is contained within the XML files in layout folder?

The layouts and direction of screen of the app

the following content

The method is addProximityAlert() is used for monitoring a location

What is contained within the manifest xml file?

The permissions the app requires

What is contained within the manifest xml file?

The permissions the application requires

Android: Which statement is not correct about Toasts ?

Toasts are perfect for informing your users of event without forcing them

114. Android AsyncTask create new thread in background

True

14. Android AsyncTask create new thread in background

True

47. On android, a layout can contain other layout?

True

The AWT and Swing libraries have been removed from the Android library set.

True

The Android SDK ships with an emulator.

True

The Android Software Development Kit (SDK) is all you need to develop applications for Android.

True

The manifest explains what the application consists of and glues everything together.

True

To install and run Sencha Touch, we need:

True

When you distribute your application commercially,you'll want to sign it with your own key.

True

When you have two or more activities with the same INTENT FILTER action name, the Android OS will display a

True

There is a kind of animation that using an XML file to define a sequence of pictures using

Tween Animation

Function connection.type will return a list of connection type, they are

UNKNOWN, ETHERNET, WIFI, CELL_2G, CELL_3G, CELL_4G, NONE.

09. If the action is ACTION_CALL. what the data field would be?

URI with the number to call

If the action is ACTION_CALL, what the data field would be ?

URI with the number to call

Toast is a class to display a message in Android. How to set position of a Toast

Using setGravity()

In Android, how do you access the string resource stored in the strings

Using the getResources() method

How can you define the minimum version of Android required

Using the minSdkVersion attribute in the AndroidMan

How do you specify the minimum version of Android required by your application?

Using the minSdkVersion attribute in the AndroidManifest.xml file.

What is not a subclass of android.app.Fragment class?

WebFragment

Which of these are not one of the three main components of the APK?

Webkit

What is a type of autocompletion controls?

What is a type of autocompletion controls?

Which piece of code used in Android is not open source?

WiFi? driver

Does HTML5 native support for local storage ?

Yes

Given the following code AsyncHttpClient asynClient = new AsyncHttpClient()

Yes, if it is not yet completed (success or failed)

How do you access the string resource stored in the strings.xml fil

You can use the getResources()

Android: When will onUpgrade() be invoked?

all of

The easiest way is to "anchor" your views to the four edges of the screen: when the screen orientation changes, the views can anchor neatly to the edges.

anchoring

What is the permission for using the camera?

android.permission.CAMERA

23. Which attribute will be used in XML if the Java code needs a reference to View?

android: id

57. Which file is entry point for Sencha Touch app?

app.js

76. How to get the form data in Sencha Touch?

getFormInstanceagetValues();

Intents designate the target

implicit inten

Intent myintent = new Intent(this, ActivityTwo.class);

myIntent.putExtra(?Value1?, ?This value one for ActivityTwo?)

Which statement correctly changes the nameLabel TextView to Nguyen Van A?

nameLabel.setText("Nguyen Van A") |

44. Which statement correctly changes the nameLabel TextView to Nguyen Van A?

nameLabel.setText("Nguyen Van A");

44. Which statement correctly changes the nameLabel TextView to Nguyen Van A?

nameLabel.setText(?Nguyen Van A?);

In Android, which statement is NOT correct about AsyncTask

none of

What statement is NOT correct about Canvas?

none of

27. In class SQLiteOpenHelper class, there are 2 methods we should usually override. What are they?

onCreate() and onUpgrade()

94. Android: When a dialog is requested for the first time, which method will Android call from your Activity?

onCreateDialog(int)

Android: When a dialog is requested for the first time, which method Android call from your Activity ?

onCreateDialog(int)

In Android, which of the following statement is CORRECT to reload a layout

setContentView(R.layout.some_layout)

27. How will you launch an Activity within your application?

startActivity(intent);

Which is not the value of attribute android:inputType?

string

82. By default UI components made in the UI editor should have text defined in file?

string.xml

By default, UI component made in the UI editor should have text defined in file ?

string.xml

What is Android MIME type that indicates that this type and subtypes are nonstandard, vendor-specific forms?

vnd

17. What is value on component's attribute layout_widtlf and layout_heighl to display the component big enough to enclose its content only?

wrap_content

40. Android: What is value on component's attribute "layout_width" and "layout_height" to display the component big enough to enclose its content only?

wrap_content

40. Android: What is value on component?s attribute ?layout_width? and ?layout_height? to display the component big enough to enclose its content only?

wrap_content

Android: What is value on component's attribute "layout_height" to display the component big enough to enclose its content only ?

wrap_content

Android: What is value on component?s attribute ?layout_height? to display the component big enough to enclose its content only ?

wrap_content

Graphics defined by SVG is in which format?

xml

72. Android: Do we need API key for displaying Google Maps in Android?

yes

77. Is color a new HTML5 element of input type?

yes

Is color a new HTML5 element of input type?

yes

the corresponding audio effect class.

ischeckable()

109. If the action is ACTION_CALL. what the data field would be?

A. URI with the number to call

What year was development on the Dalvik virtual machine started?

2005

When did Google purchase Android?

2005

What year was the Open Handset Alliance announced?

2007

Maximum results returned by getFromLocationName() method can be

5

58. Which doctype is correct for HTML5?

<!DOCTYPE html>

Which doctype is correct for HTML5?

<!DOCTYPE html>

What setListAdapter() function used for?

A command that projects your data to the onscreen list on your device by connecting the listActivity

What is an Activity?

A single screen in an application, with supporting Java code Correct

97. Which of the following is best choice for simple animations for your website?

A. JavaScript

90. Which activity class do you need to inherit to show Google map?

A. MapActivity class

104. Do we need to register all of View classes in app.js with Sencha Touch?

A. No

Android system uses intents to

All of the above.

Which sensor types that can appear in an Android device?

All of the others

With the Cursor, you can:

All of the others.

Android is based on Linux for the following reason.

All of these

Which of the following are not a component of an APK file?

All of these are components of the APK

While developing Android applications, developers can test their apps on...

All three options will work.

1. What is an intent object?

An Intent object is a bundle of information

What is an intent object?

An Intent object is a bundle of information Correct

To persist your changes to preference made via the editor, you can use apply() or commit(). When does the apply() method is added in Android?

Android 2.3

29. Which company developed android?

Android Inc

Which company developed android?

Android Inc Correct

14. What does the .apk extension stand for?

Android Package

To create an emulator, you need an AVD. What does it stand for?

Android Virtual Device

Which company developed android

Android inc

The R file is a(an) generated file

Automatically

What does pressure sensor measure?

Barometric pressure, which could detect altitude for example or be used for weather predictions.

10. Android MapActivity is

Base class with code to manage the boring necessities of any activity that displays a MapView

73. IntentFilters are typically defined via

C. Both of above

93. How to show or hide a Sencha Touch component?

Call .show() or .hide() method of component itself

How to show or hide a Sencha Touch component ?

Call.show() or .hide() method of component itself

______ provides an application with the ability to work with images, either captured directly from the camera or retrieved from the device's photo repository.

Camera PhoneGap API

Besides specifying the action, the data, and the type, an Intent object can also specify a _______.

Category

88. How to change the main color of Sencha Touch application?

Change the $base-color variable in app.scss

66. How to check if browser supports web storage?

Check if typeof(Storage) !== "undefined"

How to check if browser supports web storage?

Check if typeof(Storage) !== "undefined"

66. How to check if browser supports web storage?

Check if typeof(Storage) !== ?undefined?

How to check if browser supports web storage?

Check if typeof(Storage) !== ?undefined?

In auto-generated code of an Android app, what is R class?

Contains ID of the project resources

50. In auto-generated code of an Android app, what is R class?

Contains IDs of the project resources

98. On android, a layout can contain other layout?

True

91. Which statements are correct about Broadcast receivers?

D. All of above

When developing for the Android OS, Java byte code is compiled into what?

Dalvik byte code

130. Android: Which statement is NOT correct about Toasts?

E. None of above

126. How to set position of a Sencha Touch component?

E. Only a & b

Which of the following statement is false?

EditText controls are derived from Control class.

What is base of all sencha touch component ?

Ext.Component

86. What is base of all Sencha Touch component?

ExtComponent

How to play a video in HTML5 ?

Insert<video> tag to HTML5 page only, the video is played automatically

One of the key aspects of Android programming is using the _____ to call activities from other applications.

Intent

Which data storage option is used to store private data on the device memory?

Internal Storage

83. SQLite database save data in

Internal storage

What is the name of Android class do we need to use to build up an JSON object?

JSONObject

Which class do we use for listening location update ?

LocationListener class

05. Which class do we use for listening location update?

LocationManager class

For writing Android code using C/C++, you need to use__________

NDK Correct

How can I check if an activity is already running before starting it?

NEW_TASK_LAUNCH in the startActivity() method call.

04. Do we need to register all of View classes in app.js with Sencha Touch?

No

23. Does Android support AWT and Swing?

No

Do we need to declare all of Controller in app.js with Sencha Touch ?

No

18. What is contained within the Layout xml file?

Orientations and layouts that specify what the display looks like

32. What is contained within the Layout xml file?

Orientations and layouts that specify what the display looks like

43. What is contained within the Layout xml file?

Orientations and layouts that specify what the display looks like

What is contained within the Layout xml file?

Orientations and layouts that specify what the display looks like

What is contained within the Layout xml file?

Orientations and layouts that specify what the display looks like Correct

What is contained within the Layout xml file?

Orientations and layouts that specify what the display looks like.

In Android, which layout mode defines the positions of each component relative to each other

RelativeLayout

55. What is NOT correct about Controller in Sencha Touch?

Responsible for responding to events that occur within your app

What is NOT correct about Controller in Sencha Touch?

Responsible for responding to events that occur within your app\

33. Activity results handled by the onActivityResult() method are differentiated from one another using which

Result Code

33. Activity results handled by the onActivityResult() method are differentiated from one another using which parameter?

Result Code

Activity results handled by the onActivityResult() method are differentiated from one another using which parameter?

Result Code

The emulated device for android.

Runs the same code base as the actual device, all the way down to the machine layer.

6. Which of the following are UI elements that you can not use in a window in an Android application?

SliderBar

Which of the following are UI elements that you can not use in a window in an Android application?

SliderBar Correct

Which class do you use to send SMS messages in your application without using built-in Messaging application?

SmsManager

Read the following content and answer the question

SmsManager&lt

If your app takes a while to load, use a (an) _________ an image the will be displayed when the icon it tapped on the screen so that the user sees an immediate response white waiting for the app to load.

Splash screen

Statement A: dp is the default units for fonts. Statement B: sp is the default measurement unit for views

Statement A is False, and Statement B is False

There are two statements

Statement A is False, and Statement B is False

What is the purpose of the IntentService class?

The IntentService runs the tasks in a separate thread and automatically stops the service when the task has finished execution.

45. What is NotificationManager class?

The NotificationManager class is used to display notifications on the device's status bar

Android UI is threadsafe

True

37. What is the android:versionCode attribute in the AndroidManifest.xml file?

The android:versionCode attribute is used to programmatically check if an application can be upgrade

What is the android:versionCode attribute in the AndroidManifest.xml file?

The android:versionCode attribute is used to programmatically check if an application can be upgrade

39. What is contained within the manifest xml file?

The permissions the application requires Correct

Android doesn't make any assumptions about a device's screen size, resolution, or chipset.:

True

54. Does CSS support to detecting device size and orientation?

True

65. Does HTML5 native support for local storage?

True

What is the permission you need to declare in AndroidManifes

WRITE_EXTERNAL_STORAGE

_______ are displays of timely information on the user's Home screen, such as the current weather, stock prices and news.

Widgets

Android tries hard to _____low-level components, such as the software stack, with interfaces so that vendor-specific code can be managed easily.

absract

19. How to listen to an event in Sencha Touch class?

Write event handler within listeners:{} body

61. Graphics defined by SVG is in which format?

XML

Does CSS support to detecting device size and orientation ?

YES

28. Android: Is the main thread called the UI thread?

Yes

72. Android: Do we need API key for displaying Google Maps in Android?

Yes

77. Is color a new HTML5 element of input type?

Yes

84. Does CSS support to detecting device size and orientation?

Yes

89. Does HTML5 native support for local storage?

Yes

95. Do we need to declare all of Controller in app.js with Sencha Touch?

Yes

Android: Is the main thread called the UI thread?

Yes

Do we need to register all of View classes in app.js with Sencha Touch

Yes

35. How do you access the string resource stored in the strings.xml file?

You can use the getResources() method

42. How do you programmatically determine whether a RadioButton is checked?

You should check the isChecked() method

How do you programmatically determine whether a RadioButton is checked?

You should check the isChecked() method

What mechanism acts as the "glue" between a data source and a ListView control?

a data adapter.

Android tries hard to _____low-level components, such as the software stack, with interfaces so that vendor-specific code can be managed easily

absract

Which file is entry point for Sencha Touch app?

app.js

foreground service

both a & c

IntentFilter are typically defind via

both of

IntentFilters are typically defined via

both of

37. What is the android:versionCode attribute in the AndroidManifest.xml file?

dai cmn nhat

Which of the following are true about Intent.

dai nhat

In Android, what does dp unit stand for

density-independent

13. Which of the following are true about Intent.CALL_ACTION?

dial + dialled

Given a table data (click to see the figure). And assume that this is on a device at 160 dpi

dp * scaler = px

As discussed, there are 4 main components in Android application. And in AndroidManifest.xml file, you need to declare:

elements for configurations

Intents do not name a target

explicit inten

"Time, in milliseconds, to wait before the gesture fades out after the user is done drawing it" is the description of the following property:

fadeOffset

Can you deploy excu

false

Is it possible to run java source

false

On android service, onStart() and onBind() are the same?

false

The R.java file is where you

false

36. Which of the following methods is used to return a View from a layout file given the ID of the View?

findViewById(int id)

Which of the following methods is used to return a View from a layout file given the ID of the View?

findViewById(int id)

Which built-in HTML5 object is used to draw on the canvas?

getContext

In Android, which method you can use to obtain the path of the external storage

getExternalStorageDirectory()

68. How to get the form data in Sencha Touch?

getFormInstance().getValues();

How to get the form data in Sencha Touch?

getFormInstance().getValues();

If you try to acces the column which does not exit, system throws

illegalArgumentException

SQLite database save data in

internal storage

What is an intent

is a bunlde

Which is the method you need to use to post a notification to be shown in the status bar?

notify(...)

80. Android: Where we can create tables and columns to them, create views or triggers?

onCreate()

Android: where we can create tables and comlumns to them, create views or triggers ?

onCreate()

In class SQLiteOpenHelper class, there are 2 method we usually override. What are they?

onCreate() and onUpdagrade()

21. Which of the following is NOT a life-cycle methods of an Activity?

onInit

Which of the following is NOT a life

onInit

64. Which Android File API to create a file?

openFileOutput()

Which Android File API to create a file

openFileOutput()

Which Android File API to create a file?

opentfileoutput()

When you need to use mp3 file in Android application, which folder you need to create and store mp3 file?

raw folder

Which of the following are UI elements

textview

In Sencha Touch, app folder contains

the Models, Views, Controllers and Stores for your app.

In Android, what is the meaning of the following code in MainActivity class?

the main thread calls the UI thread

URIMatcher is used for.

to figure out the URIs.

Android Async Task create new thread in background

true

Can PhoneGap framework support for playing audio?

true

Can PhoneGap work with Contacts data of mobile device?

true

Choose whether the statement is TRUE or FALSE

true

Does CSS support to detecting device size and orientation?

true


Related study sets

Exam 2: Pneumothorax & Hemothorax (NCLEX)

View Set

CISSP all ISC2 chapters combined

View Set

Life & Health Law 1 (Chapter 26)

View Set

Geography and History of the World A

View Set