Nội dung text Mobile Programming MCQs.pdf
Prepared by Uni Bytes / www.unibytes.xyz Don't use our content without permission. Tribhuvan University Faculty of Humanities and Social Science Semester: VI Subject: Mobile Programming 2020 Batch Multiple Choice Questions i. Which of the following layout is used for designing the user interface in android programming? a) Flow Layout b) Absolute Layout c) Border Layout d) Grid Bag Layout ii. Which one is not nickname of version of android? a) Cupcake b) Gingerbreads c) Honeycomb d) Muffin iii. Which of the following component is used to manage lifecycle of each application? a) Activity manager b) Location manager c) Notification manager d) Package manager iv. Which lifecycle method is called when an Activity becomes visible to the user but is not yet interactive?? a) onStart() b) onResume() c) onRestart() d) onCreate() v. Which class can be used to navigate from one activity to another activity? a) Bundle b) Intent c) Toast d) Object vi. Which method is called when an AlertDialog’s positive button is clicked? a) onShow() b) onCancel() c) onClick() d) onLongClick() vii. Which method is used to add a Fragment to an Activity dynamically? a) addFragment() b) attachFragment() c) replace() d) add() viii.Which class is used for handling API responses in Volley? a) Response b) RequestQueue c) JsonObjectRequest d) ResponseListener ix. Which permission must be declared in the Android manifest to access the device’s location? a) android.permission.ACCESS_COARSE_LOCATION b) android.permission.INTERNET c) android.permission.CALL_PHONE d) android.permission.ACCESS_FINE_LOCATION x. What is the keyword used to declare a constant in swift? a) Var b) const c) let d) static Don’t Forget to Follow Uni Bytes
Prepared by Uni Bytes / www.unibytes.xyz Don't use our content without permission. Tribhuvan University Faculty of Humanities and Social Science Semester: VI Subject: Mobile Programming 2019 Batch Multiple Choice Questions i. Which of the following is not mobile platform? a) Android b) Ubuntu touch c) Tizen d) THE OS ii. Which of the following component is Linux kernel in Android architecture? a) Location manager b) Power management c) Surface manager d) webkit iii. Which of the following layout is used to design custom layouts. a) Absolute Layout b) Constraints Layout c) Relative Layout d) Linear Layout iv. How to register event source with event listener in event handling? a) Widget. addEventlistener() b) Widget.setEventListener() c) Widget.registerEventListener() d) Widget.setEventSource. v. During activity lifecycle, which of the following callback is invoked after onStop0 to bring back interactivity with activity? a) onStart() b) onResume() c) onRestart() d) onPause() vi. If you want to navigate from one fragment to another then android provides which class? a) Bundle b) Intent c) Toast d) Object vii. What is mini activity in android? a) Activity b) Layout c) Adapter d) Fragment viii.Which menu is called floating menu in android? a) Context menu b) Popup menu c) Option menu d) Sticky menu ix. To use Volley API in android application, which permission must to add in manifest file? a) android.permission.ACCESS FINE LOCATION b) android. permission CALL_PHONE c) android.permission.ACCESS COARSE LOCATION d) android. permission. INTERNET x. What does the question mark (2) indicate a particular property in swift? a) Optional b) Missing c) Changed d) Necessary Don’t Forget to Follow Uni Bytes
Prepared by Uni Bytes / www.unibytes.xyz Don't use our content without permission. Tribhuvan University Faculty of Humanities and Social Science Semester: VI Subject: Mobile Programming 2018 Batch Multiple Choice Questions i. Which of the following is not layout used for designing the user interface in android programming? a. Linear Layout b. Absolute Layout c. Flow layout d. Table Layout ii. Which of the following View display one child at a time and act as dropdown list? a. EditText b. CheckBox c. RadioButton d. Spinner iii. Which of the following package is used for Button View? a. android.app .* b. android.intent .* c. android. View .* d. android.widget .* iv. During activity lifecycle, what is first callback invoked by the system? a. onStart() b. onStop() c. onCreate() d. onReume() v. If you need to pass data from one activity to another activity, then which of the following method you should use? a. startActivity ForResult() b. ActivityForResult() c. setResult() d. startActivity() vi. Which one is not menu supported in android programming? a. Dropdown Menu b. Context Menu c. Option Menu d. Popup Menu vii. Which of the following View supports both vertical and horizontal scrolling? a. ListView b. Recycler View c. GridView d. Image View viii.Which one is not method of SQLiteOpenHelper class? a. onCreate() b. Close() c. onStop() d. onUpgrade() ix. Which of the following is incorrect data type inswift? a. UInt b. Char c. Double d. Optional x. Which permissions are required to get Location in android programming? a. ACCES_FINE and ACCESS_COARSE b. GPRS Permission c. Internet Permission d. WIFI Permission Don’t forget to follow us on Facebook