Professional Documents
Culture Documents
Unit 9 - Fragments, Files, Database: Quiz 2
Unit 9 - Fragments, Files, Database: Quiz 2
Unit 9 -
Fragments, Files, Database
Course
outline Quiz 2
The due date for submitting this assignment has passed. Due on 2016-09-21, 00:00 IST.
How to access
the portal ? Submitted assignment
Introduction to
Mobile
1) How is information shared between fragments: 1 point
Computing
Object reference is accessed through the corresponding activity.
Starting Android
Programming Something similar to the intent mechanism is used.
All information is made global so that it can accessed anywhere.
Android Wrong question, information cannot be shared between fragments.
Application
Basics No, the answer is incorrect.
Score: 0
Activity Accepted Answers:
Object reference is accessed through the corresponding activity.
Enhancing Your
Application 2) What is form factor of a mobile device: 1 point
https://onlinecourses.nptel.ac.in/noc16_cs13/unit?unit=71&assessment=77 1/7
25/07/2018 Mobile Computing - - Unit 9 - Fragments, Files, Database
6) Suppose there is a screen which has a navigation drawer having a list of clickable items. 1 point
Each item corresponds to a different screen and each of these screen has this drawer. Choose the
correct option:
onDestroyView()
onActivityCreated()
onRestart()
onDestroy()
https://onlinecourses.nptel.ac.in/noc16_cs13/unit?unit=71&assessment=77 2/7
25/07/2018 Mobile Computing - - Unit 9 - Fragments, Files, Database
No, the answer is incorrect.
Score: 0
Accepted Answers:
onRestart()
11)What are the various ways by which you can develop fragments? 1 point
12)What does the onCreateView() method return if a fragment doesn’t have any UI? 1 point
It throws an exception
Shows error
Returns null
It does not do anything
PreferenceFragment
ArrayListFragment
a and d
ListFragment
https://onlinecourses.nptel.ac.in/noc16_cs13/unit?unit=71&assessment=77 3/7
25/07/2018 Mobile Computing - - Unit 9 - Fragments, Files, Database
15)Why do we use the support library for fragments? 1 point
https://onlinecourses.nptel.ac.in/noc16_cs13/unit?unit=71&assessment=77 4/7
25/07/2018 Mobile Computing - - Unit 9 - Fragments, Files, Database
Android Appcompat v7
Google Mobile Services
Google Play Services
Android Support v4
22)Going from one activity to another, does this process support transition? 1 point
Yes
No
Yes, with custom animation support
Maybe
Yes, but it will only work if the source and destination fragments are inside distinct activities
Maybe
Yes, using method setExtra() and getExtra()
Yes, using method setArguments() and getArguments()
Immediately
After 1 second exactly
Prior to activity saving its state
After the activity saves its state
Activity
Intent
FragmentManager
FragmentActivityManager
https://onlinecourses.nptel.ac.in/noc16_cs13/unit?unit=71&assessment=77 5/7
25/07/2018 Mobile Computing - - Unit 9 - Fragments, Files, Database
FragmentManager
<img>
<div>
<html>
<h1>
27)Going from one fragment to another, does this process support transition? 1 point
No
Yes
Maybe
None of the above
Overloading
Transaction
None of these
Gradle building
Funded by
Powered by
https://onlinecourses.nptel.ac.in/noc16_cs13/unit?unit=71&assessment=77 7/7