Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 12

In which steps in how to construct fragments of your own where 

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

Your answer is correct.


The correct answer is: 2.

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

Your answer is correct.


The correct answer is: onDestroy()

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

Your answer is correct.


The correct answer is: onCreateView()

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

Your answer is correct.


The correct answer is: 4.

Question 5
Correct
Mark 1.00 out of 1.00

Flag question

Question text

It is a method in the Fragment lifecycle where The fragment instance is associated with an


instance of activity. The fragment and activity are not fully initialized. You usually get a
reference to the operation in this method which uses the fragment for further initialization
work.

Select one:
a. onCreate()
b. onCreateView()
c. onAttach() 

d. onActivityCreated()
Feedback

Your answer is correct.


The correct answer is: onAttach()

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

Your answer is correct.


The correct answer is: 6.

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

Your answer is correct.


The correct answer is: onPause()
Question 8
Correct
Mark 1.00 out of 1.00

Flag question

Question text

It is a method in Fragment lifecycle where Fragment is becoming involved.

Select one:
a. onStart()
b. onResume() 
c. onPause()

d. onStop()
Feedback

Your answer is correct.


The correct answer is: onResume()

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

Your answer is correct.


The correct answer is: 7.

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

Your answer is correct.


The correct answer is: List fragments

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

Your answer is correct.


The correct answer is: 7.

Question 12
Correct
Mark 1.00 out of 1.00

Flag question

Question text

It is a method in Fragment lifecycle where Calling onStop() will stop fragmenting

Select one:
a. onStop() 
b. onDestroyView()
c. onPause()

d. onDestroy()
Feedback

Your answer is correct.


The correct answer is: onStop()

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

d. Single frame fragments


Feedback

Your answer is correct.


The correct answer is: Fragments transaction

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

Your answer is correct.


The correct answer is: onCreate()

Question 15
Correct
Mark 1.00 out of 1.00

Flag question

Question text

It is a method in Fragment lifecycle where When host activity is created, the


onActivityCreated() is called after the onCreateView() method. Instance of activity and
fragment was created, as well as the activity view hierarchy.

Select one:
a. onCreate()
b. onActivityCreated() 
c. onCreateView()

d. onAttach()
Feedback

Your answer is correct.


The correct answer is: onActivityCreated()

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

Your answer is correct.


The correct answer is: 3.

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

Your answer is correct.


The correct answer is: onStart()

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

Your answer is correct.


The correct answer is: Single frame fragments

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

Your answer is correct.


The correct answer is: 1.

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

Your answer is correct.


The correct answer is: onDestroyView()

You might also like