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()
Which of the following is true regarding flutter
Anonymous Quiz
10%
Flutter is free and open source
10%
Flutter is a UI toolkit for creating fast, beautiful and natively compiled mobile applications
5%
Flutter use one programming language and a single codebase
75%
All of above
Which one of the following works in flutter
Anonymous Quiz
2%
Hot salsa
7%
Cold reload
71%
Hot reload
20%
Hot restart
pubspec.yaml file doesn't contain:-
Anonymous Quiz
23%
Project settings
0%
Project assets
70%
Project language
8%
Project dependencies
The package name that used to deal with database in flutter is called
Anonymous Quiz
5%
Sqlmap
74%
Sqflite
19%
Sqlite
2%
Sql
When building for ios flutter is restricted to an _____ compilation strategy
Anonymous Quiz
3%
JIT
0%
Transaction
3%
Recompiling
95%
AOT(Ahead—Of—Time)