Professional Documents
Culture Documents
Feedback: Your Answer Is Correct. The Correct Answer Is: 2
Feedback: Your Answer Is Correct. The Correct Answer Is: 2
Modify MainActivity.java
key activity file as shown in the code below. Here we will check the device's orientation and
we will switch between various fragments accordingly.
Select one:
a. 3.
b. 1.
c. 4.
d. 2.
Feedback
Question 2
Correct
Mark 1.00 out of 1.00
Flag question
Question text
It is a method in Fragment lifecycle where called to eventually clean the fragment but not
assured to be called by the Android application.
Select one:
a. onStop()
b. onPause()
c. onDestroyView()
d. onDestroy()
Feedback
Question 3
Correct
Mark 1.00 out of 1.00
Flag question
Question text
It is a method in the Fragment lifecycle where The machine calls this callback when first
drawing of its user interface is time for the fragment. To draw a UI for your fragment you
must return from this method a View component which is the root of the layout of your
fragment.
Select one:
a. onActivityCreated()
b. onCreateView()
c. onAttach()
d. onCreate()
Feedback
Question 4
Correct
Mark 1.00 out of 1.00
Flag question
Question text
In which steps in how to construct fragments of your own where Create res / layout / lm
fragment.xml and res / layout / pm fragment.xml layout files, and describe all fragments for
your layouts.
Select one:
a. 4.
b. 1.
c. 3.
d. 2.
Feedback
Question 5
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Select one:
a. onCreate()
b. onCreateView()
c. onAttach()
d. onActivityCreated()
Feedback
Question 6
Correct
Mark 1.00 out of 1.00
Flag question
Question text
In which steps in how to construct fragments of your own where Defines constants required
in res / values / strings.xml file
Select one:
a. 4.
b. 5.
c. 6.
d. 7.
Feedback
Question 7
Correct
Mark 1.00 out of 1.00
Flag question
Question text
It is a method in the Fragment lifecycle where the system calls this method the first
indication the user has left the fragment. Usually this is where you should commit any
changes that are to persist beyond the current user session.
Select one:
a. onStop()
b. onDestroy()
c. onPause()
d. onDestroyView()
Feedback
Flag question
Question text
Select one:
a. onStart()
b. onResume()
c. onPause()
d. onStop()
Feedback
Question 9
Correct
Mark 1.00 out of 1.00
Flag question
Question text
In which steps in how to construct fragments of your own where Run the application to
launch the Android emulator, and check the outcome of the application changes.
Select one:
a. 7.
b. 6.
c. 4.
d. 5.
Feedback
Question 10
Correct
Mark 1.00 out of 1.00
Flag question
Question text
It is a type of fragment where Fragments with a different list view are considered fragments
of the list
Select one:
a. Single frame fragments
b. List fragments
c. Fragments transaction
d. Group fragments
Feedback
Question 11
Correct
Mark 1.00 out of 1.00
Flag question
Question text
In which steps in how to construct fragments of your own where Run the application to
launch the Android emulator, and check the outcome of the application changes.
Select one:
a. 4.
b. 5.
c. 7.
d. 6.
Feedback
Question 12
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Select one:
a. onStop()
b. onDestroyView()
c. onPause()
d. onDestroy()
Feedback
Question 13
Correct
Mark 1.00 out of 1.00
Flag question
Question text
It is a type of fragment where Using transaction with fragment and may move one fragment
to another.
Select one:
a. Group fragments
b. Fragments transaction
c. List fragments
Question 14
Correct
Mark 1.00 out of 1.00
Flag question
Question text
It is a method in the Fragment lifecycle where When the fragment is formed the system calls
this process. The basic components of the fragment that you choose to maintain will be
initialized when the fragment is interrupted or halted and resumed.
Select one:
a. onActivityCreated()
b. onCreateView()
c. onCreate()
d. onAttach()
Feedback
Question 15
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Select one:
a. onCreate()
b. onActivityCreated()
c. onCreateView()
d. onAttach()
Feedback
Question 16
Correct
Mark 1.00 out of 1.00
Flag question
Question text
In which steps in how to construct fragments of your own where To describe your fragments
and associated methods, build a two java files PM Fragment.java and LM Fragement.java
under the package com.example.myfragments.
Select one:
a. 2.
b. 4.
c. 1.
d. 3.
Feedback
Question 17
Correct
Mark 1.00 out of 1.00
Flag question
Question text
It is a method in the Fragment lifecycle where the method onStart() is called when the
fragment becomes visible.
Select one:
a. onResume()
b. onPause()
c. onStart()
d. onStop()
Feedback
Question 18
Correct
Mark 1.00 out of 1.00
Flag question
Question text
It is a type of fragment where Single fragments of frames are used for hand-holding devices
such as mobile devices, here we can display only one fragment as a view.
Select one:
a. Fragments transaction
b. List fragments
c. Single frame fragments
d. Group fragments
Feedback
Question 19
Correct
Mark 1.00 out of 1.00
Flag question
Question text
In which steps in how to construct fragments of your own where Using Android StudioIDE
to build and label an Android program as MyFragments under a com.example.myfragments
set, with blank Event.
Select one:
a. 1.
b. 2.
c. 3.
d. 4.
Feedback
Question 20
Correct
Mark 1.00 out of 1.00
Flag question
Question text
It is a method in Fragment lifecycle where Upon calling this form, fragment view will
destroy.
Select one:
a. onDestroyView()
b. onDestroy()
c. onPause()
d. onStop()
Feedback