Which of the following is required to allow the Android Developer Tools to interact with your view?
A. Provide a constructor that takes a Context and an AttributeSet object as parameters.
B. Provide a constructor that takes a Context object as parameter.
C. Extend class View.
D. Override method onDraw() of class View.
Which method should you use to start a sub-activity?
A. startActivity(Intent intent)
B. startActivityForResult(Intent intent)
C. startService(Intent intent)
D. startSubActivity(Intent intent)
Which of the following is not an Activity lifecycle call-back method?
A. onStart
B. onCreate
C. onPause
D. onBackPressed
What is the name of the folder that contains the R.java file?
A. src
B. res
C. bin
D. gen
Which of the following Activity methods is invoked when the user clicks on an options menu item?
A. onItemClicked
B. onItemSelected
C. onOptionsItemClicked
D. onOptionsItemSelected
In Android Studio 3.0 and higher, a checkbox is available to drag-and-drop from the palette panel.
A. False
B. True
The first image below includes an Android code to generate AlertDialog which is illustrated in the second image. The last line of the code includes "xxxxxxx". Which of the following choices is the correct line of code to replace "xxxxxxx" for the purpose of showing this AlertDialog?

A. SaveAlert.show( )
B. Save-Activity( )
C. Start.activity ( )
D. savealert.show( )
You have an Android application that consists of two activities (MainActivity and SecondActivity) and you
want to pass data in text field (ID: FirstNameJD) of MainAcitivity to SecondActivity. The passed data will appear in SecondActivity inside a TextView widget with Id: HelloMessageJD. You will use Intent to pass this data from MainActivity to SecondActivity. The Following two images include the Android code which will be written in MainActivity.kt and SecondActivity.kt files. Your data will not pass from MainActivity to SecondActivity due to a mistake in the code in SecodActivity.kt. Which of the following choices is a correct solution to make this app run correctly?

A. Add startActivity(intent) to Secondryactivity.kt
B. Replace getStringExtra("name") with putSiringExtra( "name") in SecondActiy.kt file
C. You need to add an if statement to solve this issue in the two files
D. Replace ''name'' with ''pass'' in intent.getSt4ingExtra( ''name'')
The following Android code displays a Toast message. Which of the following is the correct parameter to replace Toast.xyz in this line of code? Toast.makeText(this,"Message saved as draff ,Toast.xyz).show()
A. Toast.sec.4
B. Toasst.shortTime
C. ToastiLEMGTH_LONG
D. Toast. Time.4s
You can embed a web browser inside your application using the WebView class.
A. True
B. False