Filters
Question type

Study Flashcards

In which Activity life-cycle method you should do all of your normal static set up such as: creating views and bind data to lists?


A) onResume()
B) onStart()
C) onCreate()
D) onPause()

E) B) and D)
F) B) and C)

Correct Answer

verifed

verified

Which of the following is NOT the built-in layout manager provided by RecyclerView?


A) LinearLayoutManager
B) RelativeLayoutManager
C) GridLayoutManager
D) StaggeredGridLayoutManager

E) All of the above
F) A) and D)

Correct Answer

verifed

verified

Which of the following Material Theme attributes are used to custom the color palette in your application? (Choose Three)


A) android: colorAccent
B) android: colorPrimary
C) android: colorPrimaryText
D) android: colorPrimaryDark

E) B) and D)
F) All of the above

Correct Answer

verifed

verified

Which of the following is not true about <activity> tag in AndroidManifest file?


A) Declares an activity that implements part of the application's visual user interface
B) Contained in <application> tag.
C) Declares a single hardware or software feature that is used by the application.
D) Has an attribute that specifies the name of the Activity sub-class that implements the activity.

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

Which is the correct explanation of ListView?


A) It is necessary to use ListView as a set with ListActivity.
B) You cannot use a ListView when there is no information to be displayed.
C) When displaying a list of Strings using an ArrayAdapter class in ListView, you must save the value in an ArrayList.
D) ListView has a function to display a list of uniquely defined Views other than TextView.

E) A) and C)
F) B) and D)

Correct Answer

verifed

verified

Which of the following is not true about using a WebView in your application?


A) You can retrieve WebSettings with getSettings() , then enable/disable JavaScript
B) You need to add permission "android.permission.ACCESS_NETWORK_STATE"
C) You use loadURL to load a webpage
D) You use loadData to load HTML

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

Which of the following statements is NOT correct about Android fragments?


A) Multiple fragments can be combined in a single activity.
B) The life-cycle of a fragment is totally independent of the activity hosting it.
C) Fragments have their own life-cycle.
D) You can add/remove fragments to and an activity dynamically, i.e. while the activity is running.

E) All of the above
F) C) and D)

Correct Answer

verifed

verified

When publishing an update to your application to the market, the following must be taken into consideration:


A) The package name must be the same, but the .apk may be signed with a different private key.
B) The package name does not have to be the same and the .apk can be signed with a different private key.
C) The package name must be the same and the .apk must be signed with the same private key.
D) The package name does not have to be the same, but the .apk must be signed with the same private key.

E) B) and D)
F) A) and D)

Correct Answer

verifed

verified

Method onDraw() of class android.view.View has the following signature:


A) public void onDraw(Color)
B) public void onDraw(Canvas)
C) public boolean onDraw(Canvas)
D) public Canvas onDraw()

E) A) and B)
F) None of the above

Correct Answer

verifed

verified

To create a blank Wear activity in Android Studio, the project should have a minimum SDK version >= 20.

A) True
B) False

Correct Answer

verifed

verified

Which of the following is a valid sequence of invokes to Activity lifecycle methods? (Select Two)


A) onCreate > onStart > onResume > onPause> onStop> onCreate
B) onCreate > onStart > onResume > onPause> onStop>onRestart
C) onCreate > onStart > onResume > onPause> onStop>onDestroy
D) onCreate > onStart > onResume > onPause> onStop>onResume

E) C) and D)
F) B) and C)

Correct Answer

verifed

verified

Which of the following AsyncTask methods is NOT executed on the UI thread?


A) onPreExecute()
B) onPostExecute()
C) publishProgress()
D) onProgressUpdate()

E) None of the above
F) A) and B)

Correct Answer

verifed

verified

What is the parent class of all Activity widgets?


A) ViewGroup
B) Layout
C) View
D) Widget

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

When using an implicit intent, what process does the system use to know what to do with it?


A) Intent resolution
B) Intent declaration
C) Intent overloading
D) Intent transition

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

Which of the following are benefits for using fragments in your application? (Choose two)


A) Simplify the reusability of UI components.
B) Build different layouts for different device configurations.
C) Add an action bar to your application.
D) Dynamically add and remove UI components to an activity.

E) B) and C)
F) A) and D)

Correct Answer

verifed

verified

Which Method allows setting action to snackbars?


A) setCallback(view)
B) setAction(CharSequence,View)
C) setOnClickListener( )
D) It is not allowed

E) A) and D)
F) A) and C)

Correct Answer

verifed

verified

CardView extends from which of the following:


A) RelativeLayout
B) LinearLayout
C) TableLayout
D) FrameLayout

E) None of the above
F) A) and C)

Correct Answer

verifed

verified

Which of the following files specifies the minimum required Android SDK version your application supports?


A) main.xml
B) <data>
C) java
D) strings.xml
E) build.gradle

F) B) and D)
G) A) and B)

Correct Answer

verifed

verified

What work is suitable for Android Services?


A) Networking Operations.
B) Streaming.
C) Updating Widgets.
D) All answers are correct.

E) All of the above
F) B) and C)

Correct Answer

verifed

verified

What two methods you have to override when implementing Android context menus?


A) onCreateOptionsMenu, onCreateContextMenu
B) onCreateContextMenu, onContextItemSelected
C) onCreateOptionsMenu, onOptionsItemSelected
D) onCreateOptionsMenu, onContextItemSelected

E) A) and D)
F) C) and D)

Correct Answer

verifed

verified

Showing 201 - 220 of 224

Related Exams

Show Answer