Android text android 2

Ace your homework & exams now with Quizwiz!

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

How many kind of Android service do we have?

2

58. Which doctype is correct for HTML5?

<!DOCTYPE html>

Which doctype is correct for HTML5?

<!DOCTYPE html>

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>

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

A Yes

What setListAdapter() function used for?

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

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.

What is an Activity?

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

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

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

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

A. URI with the number to call

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

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

ACCESS_FINE_LOCATION

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 is the parent class for the main application class in an Android application that has a user interface?

Activity Correct

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 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 restoring the state of an An

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()

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

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

All of above

Android: Which statements are correct about Broadcast receivers ?

All of above

Android: when will onUpgrade() be invoked ?

All of above

Android is based on Linux for the following reason.

All of these

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

29. Which company developed android?

Android Inc

Which company developed android?

Android Inc Correct

14. What does the .apk extension stand for?

Android Package

Which company developed android

Android inc

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

15. 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 Program Kit Incorrect

What does the apk extension

Application program kit

What is an Activity

Asingle screen in an application , with supporting Java

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

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()

Android MapActivity is

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

63. IntentFilters are typically defined via

Both of above

What are 2 ways a Service can run ?

Bouned and Unbouned

73. IntentFilters are typically defined via

C. Both of above

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

How to show or hide a Sencha Touch component ?

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

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

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

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

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

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

91. Which statements are correct about Broadcast receivers?

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)

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

E. 2

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

100. How to play a video in HTML5?

E. Only a & c

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

In HTML5, onblur and onfocus are:

Event attribute

62. 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

What is base of all Sencha Touch component?

Ext COmponent

70. What is base of all Sencha Touch component?

Ext.Component

What is base of all sencha touch component ?

Ext.Component

In Android, normally SDCard is

External storage

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

F. None of above

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

False

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

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

Can you deploy executable JARs on Android?

False Correct

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

False Correct

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

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

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

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

Implicit Intents

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

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

How to play a video in HTML5 ?

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

Which statement is correct about web storage ?

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

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.

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

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

JSONObject

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;);

Android is based on which language?

Java |

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

which of the following file(s) is

Layout file

What is NOT correct about Store in Sencha Touch ?

Load data via a proxy

Which class do we use for listening location update ?

LocationListener class

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

LocationManager.GPS_PROVIDER and LocationManager.NETWORK_PROVIDER

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

Many

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

MapViewActivity class

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 Android?

Muffin Correct

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

NDK

For writing Android code using C

NDK

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

NDK Correct

23. Does Android support AWT and Swing?

No

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

No

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

Non of above

52. What statement is NOT correct about Canvas?

None of above

Android: Which statement does not correct about Activity?

None of above

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

What is contained within the Layout xml file?

Orientations and layouts that specify what the display looks

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

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

PendingIntent

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

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

Result Code

59. Which database is natively supported by android?

SQLite

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

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

Read the following content and answer the question

SmsManager&lt

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

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

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

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

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

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.

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 application requires

39. What is contained within the manifest xml file?

The permissions the application requires Correct

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

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

True

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

True

65. Does HTML5 native support for local storage?

True

Android UI is threadsafe

True

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

On android, a layout can contain other layout ?

True

Read the following 2 URLs and answer the question

True

To install and run Sencha Touch, we need:

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

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

URI with the number to call

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()

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()

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

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 to register a broadcast reciever?

Via AndroidManifest.xml file

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

What is the permission you need to declare in AndroidManifes

WRITE_EXTERNAL_STORAGE

61. Graphics defined by SVG is in which format?

XML

Does CSS support to detecting device size and orientation ?

YES

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

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

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()

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

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

absract

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

Android: When will onUpgrade() be invoked?

all of

How to set position of a Sencha Touch component?

all of above

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

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

app.js

Which file is entry point for Sencha Touch app?

app.js

IntentFilter are typically defind via

both of

IntentFilters are typically defined via

both of

How to change the main color of Sencha Touch application ?

change the $base-color variable in app.scss

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

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

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

findViewById(int id)

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();

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

getFormInstanceagetValues();

Intents designate the target

implicit inten

SQLite database save data in

internal storage

What is an intent

is a bunlde

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

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 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

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

notify(...)

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()

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

onCreateDialog(int)

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

onInit

Which of the following is NOT a life

onInit

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

onInit Correct

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

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

setContentView(R.layout.some_layout)

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

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

startActivity(intent);

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

string.xml

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

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

Does HTML5 native support for local storage?

true

On android, a layout can contain other layout?

true

Which method to opena Http connection to an Uri?

url.openConnection()

What is the correct HTML5 element for playing video files?

video

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_width" and "layout_height" to display the component big enough to enclose its content only?

wrap_content

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()

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


Related study sets

Cisco Networking ITN Module 16 Review

View Set

CHAPTER 19 The Cardiovascular System: The Heart

View Set

*HURST REVIEW Qbank/Customize Quiz - Safety and Infection Control

View Set

History of the Holocaust Week 4 Terms

View Set

CIS121 Programming and Logic Chapter 4

View Set