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.
Which of the following is a rule that developers must always follow when writing multi-
threaded Android applications?
threaded Android applications?
Anonymous Quiz
15%
A worker thread must not be created from inside the UI thread.
9%
Each UI thread must not create more than one worker thread.
6%
The UI thread must never be blocked.
3%
The Android UI must not be accessed from outside the UI thread.
68%
C&D
Which of the following is NOT true about class AsyncTask?
Anonymous Quiz
16%
It must be used by sub-classing it.
19%
It must be created on the UI thread.
44%
Its sub-class override at least two methods: doInBackground, onPostExecute.
22%
It uses three generic types.
When the user clicks on an action item in the action bar, which of the following Activity
methods does the system call?
methods does the system call?
Anonymous Quiz
42%
onOptionsItemSelected()
14%
onActionButtonSelected()
11%
onActionBarItemSelected()
33%
onOptionsItemClicked()
Gradle is the build system used in Android Studio. It builds, tests, runs, and packages your
apps.
apps.
Anonymous Quiz
33%
False
67%
True
Which of the following is NOT correct about the Gradle build system of Android Studio?
Anonymous Quiz
11%
The Gradle build file is called build.gradle.
44%
. Gradle supports generating only one build variant.
33%
Gradle uses the Groovy syntax to configure the build.
11%
A build is configured by using elements provided by the Android plugin for Gradle.
To use the material design features of Android 5.0, you should set the
android:targetSdkVersion attribute to 20 in your application’s build.gradle file.
android:targetSdkVersion attribute to 20 in your application’s build.gradle file.
Anonymous Quiz
58%
False
42%
True
Which of the following is NOT true about the R.java file?
Anonymous Quiz
3%
It is auto-generated during the build of the project.
12%
It is used by developers to access any resource through an ID.
68%
It can be modified manually to change the ID of a resource.
18%
It contains resource IDs for all resources in your /res/ folder.
IS4 PM_2025
Photo
What is the second layer from top called in the following diagram of Android’s Architecture
Anonymous Quiz
70%
Application framework.
8%
Linux kernel.
13%
Android runtime.
10%
Applications layer.
Consider the following code :
@Override
public void onCreateContextMenu(ContextMenu menu, View v,
ContextMenuInfo menuInfo) {
super.onCreateContextMenu(menu, v, menuInfo);
menu.setHeaderTitle("Menu");
AdapterContextMenuInfo cmi = (AdapterContextMenuInfo) menuInfo;
menu.add(1, cmi.position, 0, "Open file");
menu.add(2, cmi.position, 0, "Save file");
}
@Override
public void onCreateContextMenu(ContextMenu menu, View v,
ContextMenuInfo menuInfo) {
super.onCreateContextMenu(menu, v, menuInfo);
menu.setHeaderTitle("Menu");
AdapterContextMenuInfo cmi = (AdapterContextMenuInfo) menuInfo;
menu.add(1, cmi.position, 0, "Open file");
menu.add(2, cmi.position, 0, "Save file");
}
IS4 PM_2025
Consider the following code : @Override public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) { super.onCreateContextMenu(menu, v, menuInfo); menu.setHeaderTitle("Menu"); AdapterContextMenuInfo cmi = (AdapterContextMenuInfo)…
Which of the following best explains the code above?
Anonymous Quiz
15%
The code inflates an xml file into menu items.
58%
The code creates menu items for context menu programmatically.
3%
The code assign actions to menu items.
24%
The code Opens a menu resource file, modifies it, and saves the changes.
IS4 PM_2025
Photo
Which UI does the following code builds?
Anonymous Quiz
12%
An edit text to the left of a text view and a button beneath it
9%
An edit text to the right of a text view and a button to the right of the text view
55%
An edit text to the right of a text view and a button beneath them
24%
A text view, an edit text beneath it and the button beneath the edit text