Mobile Programming-MCQ Solutions

"Prepare for BCA 6th Semester Mobile Programming with key questions on Android fragment lifecycle, SQLite, UI layouts, and Swift syntax. Perfect for exam revision!"

Mobile Programming-MCQ Solutions

Circle the correct answer.

  1. Which of the following is not a lifecycle method of a fragment?
    Answer: c) onBegin()

  2. Which method is used to terminate an Activity and remove it from the stack?
    Answer: a) finish()

  3. Which layout helps build complex flat UIs?
    Answer: c) ConstraintLayout

  4. Which view allows swiping between fragments?
    Answer: b) ViewPager

  5. What menu appears on long press?
    Answer: b) Context menu

  6. Which class is used to manage SQLite databases in Android?
    Answer: b) SQLiteOpenHelper

  7. Which method comes after onCreateView() in the fragment lifecycle?
    Answer: b) onActivityCreated()

  8. What method is used to get a GoogleMap object when the map is ready?
    Answer: c) getMapAsync()

  9. Which of the following is the correct syntax to declare a constant in Swift?
    Answer: a) let x=10

  10. Which control allows for multi-line editable text in iOS?
    Answer: d) UITextView