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
A widget that allows us to refresh the screen is called
Anonymous Quiz
8%
StatelessWidget
77%
StatefulWidget
3%
StateleastWidget
13%
All of above
Which of the following are the advantages of flutter
Anonymous Quiz
8%
Cross platform development
11%
Minimal code
5%
Faster development
76%
All of above
Which function is responsible for starting the program?
Anonymous Quiz
18%
runApp()
74%
main()
3%
run()
5%
flutter()