Which of the following is not an Android component (i.e. a point from which the system can
enter your application)?
enter your application)?
Anonymous Quiz
79%
Layout
5%
Activity
8%
Service
8%
Content Provider
Which one of the following is not a valid name for process state?
Anonymous Quiz
5%
Background
3%
A Visible
88%
Bound
5%
Foreground
What is the role of the R.java file in an Android application project?
Anonymous Quiz
5%
It contains the target SDK version number.
3%
It contains information about content providers of the Android application.
5%
It contains instructions to build the Android application project.
87%
It contains all resource IDs allowing the developer to reference them from the code using integers
What is a correct statement about an XML layout file?
Anonymous Quiz
3%
A layout PNG image file.
3%
A file that contains a single activity widget.
11%
A file that contains all application permission information.
84%
.A file used to draw the content of an Activity.
What is the parent class of all Activity widgets?
Anonymous Quiz
12%
Widget
76%
View
2%
Layout
10%
ViewGroup
What is the name of the class used by Intent to store additional information?
Anonymous Quiz
5%
Parcelable
82%
Bundle
3%
Extra
11%
DataStore
Which of the following is not included in the Android application framework?
Anonymous Quiz
8%
NotificationManager
5%
WindowManager
15%
PackageManager
72%
DialerManager
.Which of these files contains text values that you can use in your application?
Anonymous Quiz
82%
res/values/strings.xml
0%
res/Text.xml
5%
res/layout/Main.xml
13%
AndroidManifest.xml
What does the Android project folder “res/” contain?
Anonymous Quiz
8%
Java Activity classes
0%
Libraries
26%
Java source code
66%
Resource files
👍1
What does this code do?
Intent intent = new Intent(); intent.setAction(Intent.ACTION_VIEW); intent.setData(android.net.Uri.parse("http://www.androidatc.com")); startActivity(intent);
Intent intent = new Intent(); intent.setAction(Intent.ACTION_VIEW); intent.setData(android.net.Uri.parse("http://www.androidatc.com")); startActivity(intent);
Anonymous Quiz
22%
Starts a sub-activity.
0%
Starts a service.
6%
Sends results to another activity.
72%
Starts an activity using an implicit intent.
Which method should you use to start a sub-activity?
Anonymous Quiz
8%
Starts an activity using an implicit intent.
81%
startActivityForResult(Intent intent)
8%
startSubActivity(Intent intent)
3%
startService(Intent intent)
.Which of the following packages does not have classes needed for Android network
connections?
connections?
Anonymous Quiz
11%
startService(Intent intent)
11%
org.apache.http
76%
android.location
3%
.Which of the following tools creates certificates for signing Android applications?
Anonymous Quiz
22%
logcat
68%
keytool
8%
certgen
3%
adb
Which Android permission you should add to allow your application to read the device’s address
book?
book?
Anonymous Quiz
3%
READ_PHONE_STATE
14%
READ_PHONE_CONTACTS
59%
READ_CONTACTS
24%
READ_ADDRESS_DATA
Which of the following methods is called in an Activity when another activity gets into the
foreground?
foreground?
Anonymous Quiz
11%
onStop()
83%
onPause()
3%
onDestroy()
3%
onExit()
Which of the following attributes is used to set an activity screen to landscape orientation?
Anonymous Quiz
11%
screenOrientation=”landscape”
11%
android:ScreenOrientation=“landscape”
74%
android:screenOrientation=”landscape”
3%
screenorientation = landscape
What is not true about the AndroidManifest.xml file?
Anonymous Quiz
57%
It declares the views used within the application.
14%
It declares user permissions the application requires.
3%
It declares application components.
27%
It declares hardware and software features used within the application.
If your application is throwing exception android.content.ActivityNotFoundException, which
of the following could resolve the problem?
of the following could resolve the problem?
Anonymous Quiz
6%
Create a new broadcast receiver
56%
Add the activity to AndroidManifest.xml]
11%
Create a new sub-class of the View class
28%
Create the activity layout
Consider the following code:
Intent intent = new Intent();
intent.setAction(Intent.ACTION_VIEW); intent.setData(android.net.Uri.parse("http://www.androidatc.com")); startActivity(intent); Which of the following is correct about the code above?
Intent intent = new Intent();
intent.setAction(Intent.ACTION_VIEW); intent.setData(android.net.Uri.parse("http://www.androidatc.com")); startActivity(intent); Which of the following is correct about the code above?
Anonymous Quiz
6%
It sends a result to a new Activity in a Bundle.
6%
It will not compile without adding the INTERNET permission the Manifest file.
20%
It starts any activity in the application that has a WebView in its layout.
69%
When it is executed, the system starts an intent resolution process to start the right Activity.
Which of the following Android View sub-classes uses the WebKit rendering engine to
display web pages?
display web pages?
Anonymous Quiz
5%
PageView
3%
MapView
3%
HttpClient
89%
WebView
Which of the following lines of codes adds zoom controls to a WebView?
Anonymous Quiz
92%
webView.getSettings().setBuiltInZoomControls(true);
3%
webView.getZoomSettings().setControls(CONTROLS.enabled);
6%
webView.getSettings().setZoomControls(true);
0%
Zoom controls are included by default in WebViews