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
Which of the following applies a context menu on a ListView?
Anonymous Quiz
3%
ListView lv = getListView(); lv.registerForContextMenu()
11%
ListView lv= getListView(); registerForContextMenu(lv);
3%
ListView lv = (ListView) findViewById(R.id.list_view_id); registerForContextMenu(lv)
0%
getListView().setConextMenuEnabled(true)
83%
B & C
Which Which of the following does NOT correctly describe interface
android.widget.Adapter?
android.widget.Adapter?
Anonymous Quiz
6%
It provides access to the data items
53%
It provides access to deprecated ListView methods
25%
It is responsible for making a View for each item in the data set.
17%
t is an object that acts as a bridge between a View and underlying data for that view.
.When is the intent resolution process triggered?
Anonymous Quiz
65%
When the system receives an implicit intent to start an activity.
5%
When the system receives an explicit intent to start an activity.
19%
When an explicit intent starts a service.
11%
When the application calls method startAcitivyIntentResolution.
Which of the following applies to the onDraw() method of class View?
Anonymous Quiz
8%
It must be overridden if a customized drawing of a view is required.
3%
It uses the Canvas parameter to draw the border of the activity that contains it.
3%
It takes one parameter of type Canvas.
6%
It takes two parameters: a Canvas and a View.
81%
A & C
What is the location of the APK generated by the build system of Android Studio?
Anonymous Quiz
29%
app/build/apk
5%
app/apks
63%
app/build/outputs/apk
3%
app/intermediates/outputs/apk
Which of the following statements is NOT correct about Android fragments?
Anonymous Quiz
8%
Multiple fragments can be combined in a single activity.
73%
The life-cycle of a fragment is totally independent of the activity hosting it.
14%
Fragments have their own life-cycle.
5%
You can add/remove fragments to and an activity dynamically; i.e. while the activity is running.
Which of the following statements is incorrect about Android Device Monitor in Android
Studio?
Studio?
Anonymous Quiz
15%
You can display a list of currently running threads and select one to check its stack trace.
50%
It can add dynamically Google SDK libraries to the Android image running on the emulator.
9%
You can do simulations of network zone speed and bandwidth limitations.
26%
You can forcibly execute garbage collection and check the present heap usage status.
Which of the following is incorrect about intents?
Anonymous Quiz
8%
. They can be used to start a service.
50%
They can be used to start database insertion.
25%
They can be used to start a dialog-themed activity.
17%
They can be used to start an Activity.
Method onDraw() of class android.view.View has the following signature:
Anonymous Quiz
14%
public boolean onDraw(Canvas)
11%
public void onDraw(Color)
58%
public void onDraw(Canvas)
17%
public Canvas onDraw()
To create a blank Wear activity in Android Studio, the project should have a minimum SDK
version >= 20.
version >= 20.
Anonymous Quiz
67%
True
33%
Flase
To create a customized Adapter for a compound list item layout , you should:
Anonymous Quiz
30%
Extend class android.widget.Adapter or any of its descendants then override method getView()
21%
. Extend class android.widget.ListView or any of its descendants, then override method getView()
24%
Extend class android.widget.AbsAdapter or any of its descendants, then override method getView()
24%
Extend class android.widget.6Adapter or any of it descendants then override method getAdapterView()
When publishing an update to your application to the market, the following must be taken
into consideration:
into consideration:
Anonymous Quiz
12%
The package name must be the same, but the .apk may be signed with a different private key.
24%
The package name does not have to be the same and the.apk can be signed with adifferent private key
48%
The package name must be the same and the .apk must be signed with the same private key
15%
The package name does not have to be the same,but the .apk must be signed with the same private key
👍2
.Which of these is the incorrect method for an Application to save local data?
Anonymous Quiz
15%
Extend PreferencesActivity and save in an XML file.
9%
Save as a file in the local file system.
21%
Save in the database using SQLite.
56%
Save in the hash table file using the Dictionary class.
Which of the following lines of code is used to pass a value to the next activity?
Anonymous Quiz
12%
Intent i = new Intent(this,newActivity); i.addExtra(“test”); startActivity(i);
6%
Intent i = new Intent(this,newActivity); i.putValue(“test”); startActivity(i);
6%
Intent i = new Intent(this,newActivity); i.putValue(“value1”,“test”); startActivity(i);
76%
Intent i = new Intent(this,newActivity); i.putExtra(“value1”,“test”); startActivity(i);
Which of the following lines of code sets the entire Activity window as a WebView?
Anonymous Quiz
18%
WebView webview = new WebView(this); webview.setAsWindow;
9%
setContentView(R.layout.webview);
15%
setContentView(“http://www.androidatc.com”);
59%
WebView webview = new WebView(this); setContentView(webview);
👍1
Consider the following the code :
public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.game_menu, menu); return true; } Which of the following is true about the code above?
public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.game_menu, menu); return true; } Which of the following is true about the code above?
Anonymous Quiz
28%
This method handles clicks and assign actions to menu items.
50%
This function inflates an XML file in the res/menu folder into menu items.
16%
This method inflates an XML file in the res/layout folder into layout.
6%
The code is auto generated and should not be edited.