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!"
Circle the correct answer.
-
Which of the following is not a lifecycle method of a fragment?
Answer:c) onBegin() -
Which method is used to terminate an Activity and remove it from the stack?
Answer:a) finish() -
Which layout helps build complex flat UIs?
Answer:c) ConstraintLayout -
Which view allows swiping between fragments?
Answer:b) ViewPager -
What menu appears on long press?
Answer:b) Context menu -
Which class is used to manage SQLite databases in Android?
Answer:b) SQLiteOpenHelper -
Which method comes after
onCreateView()in the fragment lifecycle?
Answer:b) onActivityCreated() -
What method is used to get a GoogleMap object when the map is ready?
Answer:c) getMapAsync() -
Which of the following is the correct syntax to declare a constant in Swift?
Answer:a) let x=10 -
Which control allows for multi-line editable text in iOS?
Answer:d) UITextView