PRM
How to apply stylesheet with HTML element by id
#id
How many main approaches to build GUI of Android app
1
How many kind of Android service do we have
2
How many main approaches to build GUI of Android app
2
Which doctype is correct for HTML5
<!DOCTYPE html>
You must declare all application components in Manifest file in this way
<provider> elements for content providers
Which permission needed in order to use MapActivity
<uses-permission android:name="android.permission.INTERNET" />
What is the correct HTML5 element for playing video files
<video>
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
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
In Android, which manifest permission is needed when use GPS location
ACCESS_FINE_LOCATION
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
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 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()
Which of the following should be used to save the unsaved data and release resources being used by an Android application
Activity.onDestroy() Correct
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()
Which of the following is/are appropriate for saving the state of an Android application
Activity.onPause() Correct
Which dialog box can you use in you Android application
AlertDialog
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
Which statements are correct about Broadcast receivers
All of above
Android is based on Linux for the following reason
All of these
What is an intent object
An Intent object is a bundle of information Correct
Which company developed android
Android Inc
Which company developed android
Android Inc Correct
What does the .apk extension stand for
Android Package
Which company developed android
Android inc
Why cannot you run standard
Android use dalvik
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
"Gingerbread" is nickname of
Android versiov2.3.x
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
Android MapActivity is
Base class with code to manage the boring necessities of any activity that displays a MapView
IntentFilters are typically defined via
Both of above
What are 2 ways a Service can run
Bounded and Unbounded
What are 2 ways a Service can run
Bouned and Unbouned
In android intent. The activity can be embedded inside of another activity that hosts gadget is belonged to
CATEGORY_GADGET
In android intent. The activity can be embedded inside of another activity that hosts gadgets is belonged to
CATEGORY_GADGET
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
How to change the main color of Sencha Touch application
Change the $base-color variable in app.scss
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
In auto-generated code of an Android app, what is R class
Contains IDs of the project resources
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()
The Intent object is passed to this method to deliver the message to all interested broadcast receivers
Context.sendBroadcast() Correct
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()
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
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()
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
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 its attribute editable ='true' or Use EditText class instead of TextView class
In HTML5, onblur and onfocus are
Event attribute
In HTML5, onblur and onfocus are
Event attributes
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
What is base of all Sencha Touch component
Ext.Component
What is base of all sencha touch component
Ext.Component
What is base of all Sencha Touch component
ExtComponent
In Android, normally SDCard is
External storage
In android, normally SDCard is
External storage
Android UI is threadsafe
False
Can you deploy executable JARs on Android
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
Is it possible to run java source code directly on Android
False
On android services, onStart() and onBind() are the same
False
The R.java file is where you edit the resources for your project
False
Can you deploy executable JARs on Android
False Correct
Is it possible to run java source code directly on Android
False Correct
The R.java file is where you edit the resources for your project
False Correct
Which of the following is layout that you can use in a window in an Android application
FrameLayout
Which are location providers in android
GPS
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
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
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
Intents do not name a target and the field for the component name is left blank
Implicit Intents Correct
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
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
SQLite database save data in
Internal storage
Which statement is correct about web storage
It can be accessed by serveral web page running in the same domain
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
Which statement is correct about web storage
It is key/value data
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
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(&quot;main&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
Which of the following is best choice for simple animations for your website
JavaScript
How many activities are in focus at any time
Just one
Choose right kind of layouts supported in Sencha Touch
Justify Layout
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
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
Which class do we use for listening location update
LocationManager class
In Android, which is two location providers that you can use to obtain your position data
LocationManager.GPS_PROVIDER and LocationManager.NETWORK_PROVIDER the following content The method is addProximityAlert() is used for monitoring a location
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
MapActivity class
Which activity class do you need to inherit to show Google Map
MapViewActivity class
Which on is not a nickname of
Muffin
Which one is not a nickname of a version of Android
Muffin
Which one is not a nickname of a version of Android
Muffin The R.java file is where you edit the resources for your project False
Which one is not a nickname of a version of Android
Muffin Correct
For writing Android code using C
NDK
For writing Android code using C/C++, you need to use
NDK
For writing Android code using C/C++, you need to use__________
NDK Correct
Do we need to declare all of Controller in app.js with Sencha Touch
No
Do we need to register all of View classes in app.js with Sencha Touch
No
Does Android support AWT and Swing
No
What is NOT a new elements of input type in HTML5
Non of above
Android: Which statement does not correct about Activity
None of above
Android: Which statement is NOT correct about Toasts
None of above
What is NOT a new elements of input type in HTML5
None of above
What statement is NOT correct about Canvas
None of above
To display a notification on upper left of Android screen, which of the following class you need to use
NotificationManager + Notification
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
Which of the following used to detect when a user clicks or taps on a button
OnClickListener
How to set position of a Sencha Touch component
Only a & b
How to play a video in HTML5
Only a & c
What is contained within the Layout xml file
Orientations and layouts that specify what the display looks
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
What is NOT correct about Controller in Sencha Touch
Responsible for responding to events that occur within your app
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
Which database is natively supported by android
SQLite
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
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<
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
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
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
What is contained within the manifest xml file
The permissions the application requires
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
Android AsyncTask create new thread in background
True
Android UI is threadsafe
True
Can PhoneGap framework support for playing audio
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
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
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
If the action is ACTION_CALL. what the data field would be
URI with the number to call
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 define a new Sencha Touch class
Use Extdefine()
How to set layout's attribute programmatically in android
Use LayoutParams class
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
How to register a broadcast receiver
Via AndroidManifestxml file
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
How to listen to an event in Sencha Touch class
Write event handler within listeners:{} body
Graphics defined by SVG is in which format
XML
Does CSS support to detecting device size and orientation
YES
Android: Do we need API key for displaying Google Maps in Android
Yes
Android: Is the main thread called the UI thread
Yes
Do we need to declare all of Controller in app.js with Sencha Touch
Yes
Do we need to register all of View classes in app.js with Sencha Touch
Yes
Does CSS support to detecting device size and orientation
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()
How do you access the string resource stored in the strings.xml file
You can use the getResources() method
How do you programmatically determine whether a RadioButton is checked
You should check the isChecked() method
Sencha Touch is
a Java framework
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
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
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
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
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
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()
How to get the form data in Sencha Touch
getFormInstance().getValues()
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
Intent myIntent = new Intent(this. ActivityTwo.class)
myIntent is explicit Intent
Which of following is true
myIntent is explicit intent
Intent myIntent = new Intent(Intent.ACTION_VIEW.Uri.pars(http://google.com)): startActivity(myIntent):
myIntent is implicit Intent
Intent mylntent = new Intent(IntentACTION_VIEW Uri.pars("http://www.google.com")); 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")
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 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()
In class SQLiteOpenHelper class, there are 2 methods we should usually override. What are they
onCreate() and onUpgrade()
Android: When a dialog is requested for the first time, which method Android call from your Activity
onCreateDialog(int)
Android: When a dialog is requested for the first time, which method will Android call from your Activity
onCreateDialog(int)
Which of the following is NOT a life
onInit
Which of the following is NOT a life-cycle methods of an Activity
onInit
Which of the following is NOT a life-cycle methods of an Activity
onInit Correct
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 dialog
show()
Which method to display a dialoge
show()
How will you launch an Activity
startActivity
How will you launch an Activity within your application
startActivity(intent)
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
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 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 open a Hap connection to an Uri
url.openConnection()
Which method to opena Http connection to an Uri
url.openConnection()
What is the correct HTML5 element for playing video files
video
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
What is value on component's attribute layout_widtlf and layout_heighl to display the component big enough to
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
Android: Do we need API key for displaying Google Maps in Android
yes
Is color a new HTML5 element of input type
yes